Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: johanbilen

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    215

    Frank B, yes just discovered that Serial.print()...

    Frank B, yes just discovered that Serial.print() round things off. So I'll guess I can go back to using pow() then :-)
    Thanks
    Johan
  2. Replies
    7
    Views
    215

    pow() function alternative

    Hi, i have had trouble with the pow() function not having the precision I need (floats).
    I wrote a small library to replace the pow() but wonder about the for-loop, will that slow things down?
    ...
  3. Replies
    9
    Views
    216

    Hi, I posted some wrong code: This formula...

    Hi, I posted some wrong code:

    This formula blocks Serial1:
    pow(1.06,byteToReceiveFromSerial_high)-pow(1.06,byteToReceiveFromSerial_high);

    This formula lets data through:...
  4. Replies
    9
    Views
    216

    Defragster, when I activate the nonblocking...

    Defragster, when I activate the nonblocking formula the Serial monitor displays "Read successful", if I activate the blocking formula the Serial monitor gets blank. If I switch Serial1 to either...
  5. Replies
    9
    Views
    216

    El Supremo, I have modified my original formula...

    El Supremo, I have modified my original formula that calculates MIDI note to frequency. The formula in my code example is only to demonstrate that if a float is used instead of an Int the read of...
  6. Replies
    9
    Views
    216

    This formula blocks ONLY Serial 1

    Hi,
    I have a one Teensy sending out two byte to another Teensy.
    After hours and hours of troubleshooting my project I found that Serial1 on the receiving Teensy seems to be blocked by the formula...
  7. Replies
    6
    Views
    312

    Edit: please remove the last stepCount++

    Edit: please remove the last stepCount++
  8. Replies
    6
    Views
    312

    Hi Qcontiuum, I haven't compiled this since...

    Hi Qcontiuum,

    I haven't compiled this since I'm writing this in notepad, but maybe this could help?
    I think you should consider using arrays to slim down the code a little.



    unsigned int...
  9. Replies
    4
    Views
    200

    I'm having a LED light up (GATE IN) when a output...

    I'm having a LED light up (GATE IN) when a output (GATE OUT) connected to the input is set high (I'm making a modular synthesizer).
    I have four inputs (Pin 6/17/24/26) and four outputs (Pin...
  10. Replies
    4
    Views
    200

    I have a LED connected to the input and the LED...

    I have a LED connected to the input and the LED is lit even though there's no connection to it.
    /Johan
  11. Replies
    4
    Views
    200

    Audio Adaptor and T3.5 pin 6

    I'm trying to use pin 6 on T3.5 with an audio adaptor. I'm getting 2.5 volt even though I'm using the pin as an input. Is this because it is connected to a pullup-resistor on the Audio Adaptor? I'm...
  12. Replies
    4
    Views
    301

    That seems to be the case, thank you! /Johan

    That seems to be the case, thank you!
    /Johan
  13. Replies
    4
    Views
    301

    Thanks, unfortunately I can't find information...

    Thanks, unfortunately I can't find information regarding if these chips can tri-state or not.

    /johan
  14. Replies
    4
    Views
    301

    Multiple SPI-devices configuration

    Hi,
    I have a couple of question that I hope some of you may shed some light on:

    1. Would these four SPI devices (see below) generate some kind of conflict?

    2. The MCP4922 gives out a voltage...
  15. Replies
    0
    Views
    127

    How to convert SPI DAC into -+5V

    I'm running a MCP4728 via SPI from Teensy.
    The output from the DAC is 0-4.096V.
    Does anyone have a schematic that converts the 0-4.096V into -+5V?
    And is there a library for the MCP4728?
    Thanks...
  16. Replies
    14
    Views
    986

    These are my circuits so far, I would like some...

    These are my circuits so far, I would like some feedback please:

    5V gate input:
    18884

    5V gate output:
    18885

    0-8V Controlled Voltage Out
    18886
  17. Replies
    14
    Views
    986

    Thanks Neurofun, it seems that the more I...

    Thanks Neurofun, it seems that the more I research about this teensy/CV-thing the more complicated it gets...
    Before Paul mentioned it in his reply I was not aware that the analog inputs only...
  18. Replies
    14
    Views
    986

    RetroD, I simulated the second circuit you posted...

    RetroD, I simulated the second circuit you posted and it worked like a charm.

    Regarding Teensy->DAC->Opamp, I found a circuit from...
  19. Replies
    14
    Views
    986

    Thanks retroD, so VIN would be the CV-signal and...

    Thanks retroD,
    so VIN would be the CV-signal and AnalogInverted would go to an analog input on the teensy?
    The analog inputs have been very unstable when I have used potentiometers, would the...
  20. Replies
    14
    Views
    986

    Eurorack voltages to/from Teensy

    Hi, I want to interface with eurorack modules using a Teensy and I have some questions that some of you may be able to shed some light on.

    Since the digital pins are 5V tolerant I guess these...
  21. Replies
    0
    Views
    275

    Chameleon Modular Synthesizer

    Hi, I would just like to present my project. It's a modular synthesizer and I've made a short video clip with some FM noises:
    https://youtu.be/JIcUNfIICYw
    For details, see the description of the...
  22. Replies
    5
    Views
    439

    Thanks for your help guys, I finally got my own...

    Thanks for your help guys, I finally got my own DAHDSR library working so I'll stick to that for the moment.
  23. Replies
    5
    Views
    439

    Thanks, what is 128 samples of 16 bit integer...

    Thanks, what is 128 samples of 16 bit integer that it returns? I would like something that returns a value say 0.023 eg the level of the envelope between something like 0.000-1.000.

    I have written...
  24. Replies
    5
    Views
    439

    Getting values from objects

    Hi, is it possible to read the output of lets say an ADSR object from the audio library?
  25. Replies
    3
    Views
    408

    Hi, I just saw that a similar question to mine...

    Hi, I just saw that a similar question to mine was posted in the "Audio Project" forum. Thanks for the answer theremingenieur but I will consider my adapter dead.
    /Johan
  26. Replies
    3
    Views
    408

    Troubleshooting Audio Adapter

    Hi, I soldered on an audio adapter underneath a T3.5 (I have a similar setup working just fine so I know the pin alignment is correct). I don't get any sound when running the "play synth music"...
  27. rcarr thanks, the issue was indeed the missing...

    rcarr thanks, the issue was indeed the missing "=" when bit shifting!
  28. 14-bit mark parity bit UART communication error

    Hi, I can't seem to get this code working. Its aim is to be able to send 14-bit values via UART.

    Transmission is done in 4 steps.
    Step 1: Bitshift the whole unsigned integer left.
    Step 2: Divide...
  29. Replies
    3
    Views
    690

    Could this work for a 14-bit communication? ...

    Could this work for a 14-bit communication?

    HIGH BYTE
    BIT 0: STATUS | BIT 1-7: DATA

    LOW BYTE
    BIT 0-6: DATA | BIT 7: UNUSED

    TX-UNIT
    *********
  30. Replies
    3
    Views
    690

    So in 9 bit mode would this work? TX-UNIT...

    So in 9 bit mode would this work?

    TX-UNIT
    *********
    unsigned int valueToSend;
    valueToSend=4167;
    UART.write9bit(highByte(valueToSend)+255);
    UART.write(lowByte(valueToSend));

    RX-UNIT
  31. Replies
    3
    Views
    690

    16-bit resolution using UART

    Hi, to increase the resolution when communicating between Teensys using UARTS would this code work? It increases the read amount five times compared to just communicating via 8-bit, but with the...
  32. Replies
    1
    Views
    435

    Glitches in audio when writing to TFT

    I have noticed that I get glitches in the audio coming from the Audio Adapter when writing data to a TFT-screen (connected with alternate pins 20/21 recommended by PJRC website). The Audio Adapter...
  33. Replies
    6
    Views
    3,614

    C1 Chameleon Demo

    I made a demo, showing some of the C1's functions.

    https://youtu.be/mMU0hU-sZo8

    /Johan
  34. Replies
    6
    Views
    3,614

    I don't know how GitHub works but I will educate...

    I don't know how GitHub works but I will educate myself on the matter and upload my libraries there for anyone to use.

    The USB isolator looks fine but comes with quite a hefty pricetag...

    The...
  35. Replies
    6
    Views
    3,614

    C1 Chameleon Project

    Hi, I would like to present my small project, a monophonic subtractive synthesizer called the C1 Chameleon.

    Front panel PSD
    https://app.box.com/s/a04zmme5n4t1t4tpo9okgtdjylhw3n6o

    Prototype...
  36. Replies
    7
    Views
    1,886

    Hello, one step forward, two step back. Now I...

    Hello, one step forward, two step back.
    Now I realized that the ILI9341 library for the TFT uses pin 7 for SDI, which is one of the UARTS.
    That leaves me with only two UARTS if I want to use the...
  37. Replies
    7
    Views
    1,886

    Thanks. Fortunately I have a T3.2 on a breakout...

    Thanks. Fortunately I have a T3.2 on a breakout board lying around so I don't have to solder.
  38. Replies
    7
    Views
    1,886

    When I initiate Serial2 the audio adaptor stops...

    When I initiate Serial2 the audio adaptor stops working. I figured this is because the Serial2 is tied to pin 9/10. How do I initiate Serial2 without it affecting the audio adaptor if I use the...
  39. Replies
    7
    Views
    1,886

    Audio Adaptor blocking second UART

    Hi, the audio adaptor uses pin 9 on Teensy 3.2 and therefore stopping me from using RX2. Is there a way around this (for t3.2) so I can use the audio adaptor as well as all three UARTs? I want to use...
  40. Thanks Paul, by connecting VIN to VIN the...

    Thanks Paul, by connecting VIN to VIN the sinewave is not distorted anymore.
  41. "Could also be a ground loop issue, if you're...

    "Could also be a ground loop issue, if you're listening by connecting the audio to an external amp or other grounded stuff."
    I listening through headphones connected to the audio adaptors headphone...
  42. Distorted sinewave when powering from another Teensy

    Teensy#1 is powered by USB and playing a sinewave that sounds like a sinewave should.
    When I power Teensy#1 from another Teensy by connecting:

    1. Teensy#1 GND to Teensy#2 GND.
    2. Teensy#1 VIN...
  43. Hi ulonix, modulating the frequency of sine_fm...

    Hi ulonix, modulating the frequency of sine_fm worked well but I wanted to be able to modulate different waveforms so I ended up writing my own LFO function using wavetables instead.
  44. Thanks Frank B, as soon as I started treating the...

    Thanks Frank B, as soon as I started treating the values as bytes I am able to run as fast as 38400 bauds without errors!

    I rewrote the code as follows:

    SENDER:

    int x;

    void setup() {
    ...
  45. Thanks LenSamuelson for your reply, I tried...

    Thanks LenSamuelson for your reply,

    I tried your suggestion to lower the speed with which the transmitting Teenys sends values:

    int x;

    void setup() {
    Serial1.begin(9600);
    }
  46. Cannot communicate between two Teensy 3.2 via UART

    Hi, I'm having trouble sending and recieveing serial data using the UART.

    The setup is as follows:

    TEENSY 3.2 #1 - Sending on pin 1.
    CODE:

    void setup(){
    Serial1.begin(9600);
    }
  47. I'm afraid to admit it, but I mixed up the wiring...

    I'm afraid to admit it, but I mixed up the wiring of the LRCLK and TX-wire, something I discovered when I was about to take the photo, thanks Paul.
    (Going to double-check my wiring before posting...
  48. (SOLVED) No GND = sound, GND = No Sound on Audio Adaptor

    Hello,
    My Audio Adaptor is suddenly not working correctly.
    I have connected TX/RX/LRCLK/BCLK/MCLK/SDA/SCL to the Teensy 3.2 as described in "http://www.pjrc.com/store/teensy3_audio.html" and have...
  49. Yes, I did watch the video and understand that it...

    Yes, I did watch the video and understand that it is possible to modulate sine wave frequency using different waveforms. However I want to be able to modulate the frequency of several different...
  50. Thanks Paul, great to hear that it's already on...

    Thanks Paul, great to hear that it's already on the wish-list, modulation of oscillator frequency is a important component in building a basic synthesizer (which I am) so I'm looking forward to it...
Results 1 to 50 of 59
Page 1 of 2 1 2