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

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. This code in oscManager: ...

    This code in oscManager:

    waveform1.frequency(noteFreqs[noteBuffer[bufferLen - 1]]);
    waveform2.frequency(noteFreqs[noteBuffer[bufferLen - 2]]);
    ...
  2. Replies
    13
    Views
    65

    You're welcome. Glad it's sorted :) Pete

    You're welcome. Glad it's sorted :)

    Pete
  3. Replies
    13
    Views
    65

    OK. I think your wiring is wrong. You have pin 4...

    OK. I think your wiring is wrong. You have pin 4 wired directly to ground and one side of the switch. The other side of the switch is apparently wired to pin 6 and 3V3. I think what that will do is...
  4. Replies
    13
    Views
    65

    That last sketch works for me. Take a photo of...

    That last sketch works for me.
    Take a photo of the wiring and the board and post it here.

    BTW Your original two sketches worked, which shows that there's nothing wrong with the T3.2 so returning...
  5. Replies
    13
    Views
    65

    I'm using a PC and haven't used a MAC for nearly...

    I'm using a PC and haven't used a MAC for nearly 40 years so I can't help with that. I can't think of anything that would cause this.
    One shot in the dark is to try using pin 13 as digital rather...
  6. Replies
    13
    Views
    65

    Your code works for me on a Teensy 3.2 with...

    Your code works for me on a Teensy 3.2 with Arduino 1.8.12 and Teensyduino 1.52

    Pete
  7. Replies
    13
    Views
    65

    Try adding this to setup() ...

    Try adding this to setup()

    pinMode(4,INPUT_PULLUP);

    and be prepared for a lot of "hello". You would be better off sending "hello" only when the pin changes state from HIGH to LOW, rather than...
  8. Oh NO! USB type is serial but the port didn't say...

    Oh NO! USB type is serial but the port didn't say anything. I chose COM 15 and now it works.
    Thanks Manitou.
    Maybe I'm too old for this stuff!

    Pete
  9. Can't open Serial Monitor - Board not available (SOLVED)

    Yesterday I was playing with an ENC28J60 on a Teensy 3.2 (just coz). I couldn't get it to work and gave up. A little while later I went back to playing with a T4 and T4.1. The sketch uploads just...
  10. Replies
    7
    Views
    121

    Glad to help. :) Pete

    Glad to help. :)

    Pete
  11. Replies
    7
    Views
    121

    FYI 1: As expected, it also works on T4.1 on pin...

    FYI 1: As expected, it also works on T4.1 on pin 8
    FYI 2: As far as I can see, the macro TIMER_PWM_PIN which is set to 7 in ...\hardware\teensy\avr\libraries\IRremote\boarddefs.h is not used...
  12. Replies
    7
    Views
    121

    A quick note: it is actually pin 8. I also...

    A quick note: it is actually pin 8. I also couldn't get it to work with pin 7 so I messed around a bit until I decided to use a red LED in place of the IR led and found that the LED flashed when the...
  13. Replies
    1
    Views
    103

    Use an interval timer. #include...

    Use an interval timer.


    #include <IntervalTimer.h>
    IntervalTimer int_tmr;
    .
    .
    void fn_int_tmr(void)
    {
    // Interrupt code here
  14. Replies
    24
    Views
    594

    One thing that I find strange about your code is...

    One thing that I find strange about your code is that you turn off interrupts for an extraordinarily long time. You turn off interrupts during the entire MesurePuissance() function which does Serial...
  15. Replies
    6
    Views
    166

    Post your code. Have you tried a stripped down...

    Post your code.

    Have you tried a stripped down version of your code which only uses one module?

    Pete
  16. Replies
    24
    Views
    594

    Suddenly switching the relays on or off could...

    Suddenly switching the relays on or off could cause large transients in the 12V supply which would in turn feed into the 5V supply and that in turn can make the display or even the Teensy3.5 as a...
  17. Replies
    24
    Views
    594

    Yes, post the full circuit diagram. One thing...

    Yes, post the full circuit diagram.

    One thing to try is to disconnect the wires to pins 3 and 4 of the T3.5 and then run the code again. If I'm reading the code and understand the photos...
  18. Replies
    24
    Views
    594

    Can you take a few close-up photos of how the...

    Can you take a few close-up photos of how the devices are connected and post them here?

    Pete
  19. Replies
    24
    Views
    594

    What has been printed on the serial monitor up to...

    What has been printed on the serial monitor up to the point that it crashes? Does it always crash at that same place?
    Are the same garbage characters always shown on the screen when it crashes?
    Did...
  20. Replies
    24
    Views
    594

    When you say "take the screen out of the I2C...

    When you say "take the screen out of the I2C network" do you mean that you only disconnected the screen or that you also removed the screen code from the program?
    Either way, I suspect there's more...
  21. sat16 is just a macro which is defined to call a...

    sat16 is just a macro which is defined to call a function which ultimately compiles into a single DSP assembler instruction (ssat).
    The notes for adc input in the audio design tool have this to say:...
  22. You'll have to rewrite the loop function if you...

    You'll have to rewrite the loop function if you want to do more than just read the RMC message. The way it is written now, if there are any characters available from the GPS, it hangs until it has...
  23. They are in...

    They are in
    ...\hardware\teensy\avr\libraries\Audio

    Pete
  24. uint8_t is the same as "unsigned char". It can...

    uint8_t is the same as "unsigned char". It can hold numbers in the range zero to 255 or it can hold a single character. The index of the array doesn't exceed 255 so I store the index in a uint8_t....
  25. You aren't making sure that you've read the whole...

    You aren't making sure that you've read the whole line before writing it.
    Try replacing this:

    while (gpsPort.available())
    {
    char GPSRX = gpsPort.read();
    Buffer +=...
  26. Replies
    14
    Views
    232

    The earbud's plug has four contacts on it. Does...

    The earbud's plug has four contacts on it. Does that work properly when plugged into a stereo headphone jack that's got the usual three contacts? Do you have headphones or earbuds with the...
  27. Ooooppss. You're right. And the 8kHz tone...

    Ooooppss. You're right. And the 8kHz tone detection would be worse too.

    Pete
  28. Try declaring these three volatile: volatile...

    Try declaring these three volatile:

    volatile uint8_t opcode3=0;

    volatile bool wire3Received=false;
    volatile bool wire3Requested=false;

    Pete
  29. If this is going to be used in water, that...

    If this is going to be used in water, that changes the numbers. The speed of sound in distilled water is about 1481m/s and in seawater it's about 1531 m/s. That would improve the resolution quite a...
  30. The first two messages start with 0xF0 and end...

    The first two messages start with 0xF0 and end with 0xF7 which are the start and end symbols for a SYSEX message.
    But the other two messages don't. But your code tells the midi library that the...
  31. I don't see how this can possibly work. The time...

    I don't see how this can possibly work. The time between consecutive FFT256 will be 256/44100 = 5.8 milliseconds. Therefore, you can't resolve the time between sending a ping and "hearing" it any...
  32. I think the debouncing is part (or all) of the...

    I think the debouncing is part (or all) of the problem. You handle the I2C read in a callback function, which is essentially an interrupt routine. The first occurrence of the message starts the wav...
  33. I'm not sure if that has answered my question :)...

    I'm not sure if that has answered my question :)
    Can you load a sketch into the Teensy, shown in the diagram in Msg #7, which just plays the audio file while the other hardware shown in the diagram...
  34. Have you verified that the Teensy 3.2 can play...

    Have you verified that the Teensy 3.2 can play that WAV file on its own? i.e. load a sketch which only plays the WAV repeatedly without using Wire1 at all.

    Pete
  35. Replace the if statement with the code I've...

    Replace the if statement with the code I've posted in #9. It should work as-is - give it a try.

    At the moment you don't need arrays.

    Pete
  36. if (kpd.key[0].kstate == PRESSED) { ...

    if (kpd.key[0].kstate == PRESSED) {
    usbMIDI.sendControlChange(controllerD20, 127, channel);
    }
    else if (kpd.key[1].kstate == PRESSED) {
    ...
  37. When you press a key, getKey returns the value of...

    When you press a key, getKey returns the value of the key. But when you release the key, you don't get any notification that the key has been released so your code never sends a zero to a controller....
  38. I haven't used those pins but I believe you just...

    I haven't used those pins but I believe you just need to wire your I2C device to pins 29 (SCL1) and 30 (SDA1) with a 4.7k pullup on each. The software then can refer to them as Wire1.

    Pete
  39. This and all the others that follow are wrong: ...

    This and all the others that follow are wrong:

    if (key = 2) {
    It should be ==

    But IIRC, the library returns the character '1' etc., not the integer 1.
    You could make the code much shorter...
  40. That pinout guide is for a Teensy 4.0 (it shows...

    That pinout guide is for a Teensy 4.0 (it shows the 1062 processor chip).
    On the T3.2, those pins you've highlighted are alternates for SDA0/SCL0

    Pete
  41. Wire.setSCL(16); Wire.setSDA(17); That code...

    Wire.setSCL(16);
    Wire.setSDA(17);
    That code reassigns SCL0(19)/SDA0(18) to SCL0(16)/SDA0(17) - note that this is not SCL1/SDA1. The audio board is hardwired to use SCL0(19)/SDA0(18). I suspect...
  42. One of the documents referenced by Senseair says...

    One of the documents referenced by Senseair says this:

    You need pullups on both pins.

    Pete
  43. Thanks for that Paul. I need to get around to...

    Thanks for that Paul. I need to get around to adding two pots so that varying the resonance and cutoff are easier.

    Pete
  44. That page only mentions the "Teensy 2.0 and...

    That page only mentions the "Teensy 2.0 and Teensy++ 1.0 & 2.0" all of which use AtMega-based processors, which is presumably why ADCSRA is only defined in the avr directory tree...
  45. Replies
    3
    Views
    107

    To add to PhilB's info: The images here...

    To add to PhilB's info:
    The images here show the back of the board as well.
    Putting that info together with info from the datasheet gives this:
    Pin 24 A10 PTE20 UART0-TX
    Pin 25 A11 PTE21 UART0-RX...
  46. You're welcome :) Pete

    You're welcome :)

    Pete
  47. That looks like all you have done is Save the...

    That looks like all you have done is Save the draft. You need to Post it instead.

    Pete
  48. I have since modified my code to define a...

    I have since modified my code to define a WAVE_MAX 32767 and then WAVE_AMP of around 32000 and used those in appropriate places.
    I've got several of the models in the sketch and then pick one using...
  49. Replies
    7
    Views
    204

    How long are the samples and how many do you want...

    How long are the samples and how many do you want to handle?

    Pete
  50. Replies
    5
    Views
    106

    Oh sorry, I see what you're doing now. The...

    Oh sorry, I see what you're doing now.
    The number of files you can play simultaneously is partly dependent upon the speed of the SD card and how it is formatted.

    You can declare an array of the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4