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. I put a 25k ohm potentiometer on A9 and your code...

    I put a 25k ohm potentiometer on A9 and your code prints values in the range 504 to 512 with ADCLibrary = 0 or 1.

    510
    509
    511
    510
    509
    509
    510
    510
  2. Post some code which demonstrates the problem...

    Post some code which demonstrates the problem (and don't crosspost)

    Pete
  3. Yes, it does. Pete

    Yes, it does.

    Pete
  4. For code to do decimation, see this post...

    For code to do decimation, see this post by DerekR.

    Pete
  5. I presume this should be "spliced". If the ground...

    I presume this should be "spliced". If the ground wires are only twisted together, they probably aren't making good electrical contact. They should be soldered. Twisting the JST cables may cause the...
  6. You need the Rev D board for a Teensy 4.0. The...

    You need the Rev D board for a Teensy 4.0. The pinouts are a bit different and IIRC there's also an extra resistor in there too. See https://www.pjrc.com/store/teensy3_audio.html

    Pete
  7. I commented all the Serial.print statements and...

    I commented all the Serial.print statements and your code works for me on a T3.6 with Arduino 1.8.12 and TD 1.51 beta1.
    The code looks good too - you are handling the audio buffers correctly.

    Pete
  8. A file on an SD card must be in standard 8.3...

    A file on an SD card must be in standard 8.3 format. Naming the file, for example, hellmth3.wav should get it going.

    Pete
  9. Replies
    2
    Views
    49

    Two things. This code if (0 < ctl

    Two things. This code

    if (0 < ctl < COUNT_A) {
    sens = SENSITIVITY; //default sensitivity
    } else {
    sens = SENSITIVITY;
    }
    Has a problem because although the condition (0...
  10. FWIW - WSJTX uses a sampling frequency of 12000Hz...

    FWIW - WSJTX uses a sampling frequency of 12000Hz when generating and decoding FT8 messages and the tone spacing is 6.25Hz - not 15Hz. The default sampling frequency of the audio board is 44100Hz but...
  11. .play only accepts a "const char *" for the...

    .play only accepts a "const char *" for the filename, not a String. Change "String mySounds[]= {" to "const char * mySounds[]= {"
    and then remove the & from the calls to .play.

    Pete
  12. Try changing the mixer1 amplitudes to this: ...

    Try changing the mixer1 amplitudes to this:

    mixer1.gain(0,0.5);
    mixer1.gain(1,0.5);
    so that the total gain through the mixer is 1.

    Pete
  13. Are you using the headphone output and do you...

    Are you using the headphone output and do you have the volume control potentiometer on the audio board?
    If so, you could try changing this:

    sgtl5000_1.volume(0.4);
    to this:

    int n =...
  14. I forgot to mention that on your SD card, the...

    I forgot to mention that on your SD card, the sample input WAV file must be named 02Kick3.wav. The original name in the distribution, "02 Kick 3.wav", is too long to fit the 8.3 format required for...
  15. Replies
    12
    Views
    185

    I think this statement from page 1044 of the...

    I think this statement from page 1044 of the reference manual (Rev 1) is the one you need:


    Pete
  16. It turned out to be easy to change the code so...

    It turned out to be easy to change the code so that it wrote the data in smaller pieces (256 byte blocks).
    Having done that it was also easy to change it so that it writes the data as audio to the...
  17. Each instance of fft1024 requires 8 audio memory...

    Each instance of fft1024 requires 8 audio memory blocks to hold the samples for the FFT. Just to be safe, I would allocate a bit more than 8*number_of_FFT1024.
    But 16 works. Go for it :)

    Pete
  18. I've had another look at the code and compiled...

    I've had another look at the code and compiled the example code on my PC. It runs without any problem. I then added some debugging statements to print out the size of memory requested in each call to...
  19. Replies
    5
    Views
    195

    Why do you say that? I haven't used PWM, so...

    Why do you say that?

    I haven't used PWM, so maybe there are some limitations I don't know about, but the pinout diagram for the 3.5 shows 19 pins that are PWM capable.

    Pete
  20. Replies
    5
    Views
    169

    The connections to the Teensy's power and ground...

    The connections to the Teensy's power and ground look to me like you have just stuck the jumper pins in the holes without any solder.
    18926
    There also appear to be other connections to the boards...
  21. I've had a brief look at the code and one of the...

    I've had a brief look at the code and one of the things you'll have to be mindful of is that it was written for processors which have gigabytes of ram. In such an environment, what often happens is...
  22. I don't get that error message. What I get is...

    I don't get that error message. What I get is that continuePlaying is undefined. In the original example code, continuePlaying is defined between startPlaying and stopPlaying but in your code it...
  23. Replies
    3
    Views
    78

    I can't get your code to compile with the Pololu...

    I can't get your code to compile with the Pololu library. But it does compile if I change the first three lines to this:

    //#include <i2c_t3.h>
    #include <Wire.h>
    #include <VL53L0X.h>
    Try it and...
  24. Replies
    3
    Views
    78

    Which VL53L0X library are you using? Pete

    Which VL53L0X library are you using?

    Pete
  25. Those two are in the Teensy3.* version of the...

    Those two are in the Teensy3.* version of the setI2SFreq function. There is a thread about a version of that function for the Teensy4.
    Frank's original message:...
  26. I can't help with specific parts location or ID...

    I can't help with specific parts location or ID but here's the schematic:
    https://www.pjrc.com/teensy/schematic.html

    Pete
  27. amp1 reduces the amplitude of the inverted signal...

    amp1 reduces the amplitude of the inverted signal by 0.5 but the non-inverted signal isn't attenuated at all.
    Try adding an amp in the non-inverted path and set it to 0.5. This should also ensure...
  28. Replies
    9
    Views
    273

    Ooops. My bad. But the output of imxrt-size.exe:...

    Ooops. My bad.
    But the output of imxrt-size.exe:

    ITCM : 18944 B ( 7.23% of 256 KB)
    DTCM : 406208 B (154.96% of 256 KB)
    OCRAM: 79456 B (15.16% of 512 KB)
    Flash: 28720 B ( 1.41% of 1984...
  29. Replies
    9
    Views
    273

    I can't figure out why it works when there's no...

    I can't figure out why it works when there's no delay because there are two problems that I see.
    memcpy copies a specified number of bytes. You have specified the number of samples. Both instances...
  30. The setup function does not contain a...

    The setup function does not contain a Serial.begin(9600) statement.

    Pete
  31. Replies
    4
    Views
    167

    I know that feeling :) Glad to be of help. ...

    I know that feeling :)

    Glad to be of help.

    Pete
  32. Replies
    4
    Views
    167

    Here's a simple use of the play and record queue...

    Here's a simple use of the play and record queue objects. By default it plays stereo audio from line input to output (headphones). If a button is pushed, it simply swaps the left and right channels....
  33. Replies
    4
    Views
    167

    Have a look at the play and record "queue"...

    Have a look at the play and record "queue" objects in the audio library.

    Pete
  34. yes. But if you don't have a circuit diagram,...

    yes. But if you don't have a circuit diagram, it's unlikely that the serial output will tell you much.

    Do you at least know what the thing was supposed to do?

    Pete
  35. That does seem to be "contact" bounce. Try the...

    That does seem to be "contact" bounce. Try the bounce library to handle the pin with a debounce time of 1 ms and increase if necessary.
    See the Examples|Bounce|change code (or the one in Bounce2)
    ...
  36. Ah, thanks Paul, you're right. I have a vague...

    Ah, thanks Paul, you're right. I have a vague memory of installing something from Frank @DD4WH to do with fast convolution filtering.

    Take the rest of the year off - you've earned it :)

    Happy...
  37. TD 1.47_b4 problem compiling audio library

    Arduino 1.8.10 TD 1.49_b4
    I've run into a problem compiling the audio library. I used this same code on Nov 3rd (to record WWVB during the change of DST from on to off) but I don't remember which...
  38. @vjmuzik: your code is not going to work because...

    @vjmuzik: your code is not going to work because it reads from Serial1 several times in a row without checking to make sure that there's anything in the buffer to read.

    Pete
  39. Your example output is parts of two separate...

    Your example output is parts of two separate messages and you didn't read all of the data. The fourth byte indicates 7 data bytes but you stopped printing after the 6th byte.

    Try incorporating...
  40. The audio library is there but USB Audio isn't...

    The audio library is there but USB Audio isn't done yet.

    Pete
  41. The pdf has a description of the protocol you are...

    The pdf has a description of the protocol you are trying to read. The first byte that the motor sends is always the "head byte" which is 0x3E. You'll see that your example has one of these in it. The...
  42. Each byte, or each response? Which motor is it...

    Each byte, or each response?
    Which motor is it and can you give examples of the response?

    If it sends each response with a CR and/or LF at the end, you can just store the response until the CR/LF...
  43. Replies
    11
    Views
    375

    Adding this code at the top of CWModem.ino will...

    Adding this code at the top of CWModem.ino will remove the error messages. I don't know if it will produce working code though - there may be other problems with memory spaces still to be resolved,...
  44. Glad the envelope worked out. I haven't used...

    Glad the envelope worked out.
    I haven't used releaseNoteOn. I did a quick scan through the code and couldn't figure out how/what it really does. I'll try to have a more detailed look and maybe play...
  45. The click is caused when the sound level is...

    The click is caused when the sound level is abruptly dropped to zero. Instead of a mixer, try using an AudioEffectEnvelope with delay,attack,hold and decay all set to zero milliseconds. Set the...
  46. I'm using Arduino 1.8.10 and Teensyduino 1.49b2....

    I'm using Arduino 1.8.10 and Teensyduino 1.49b2. I can compile the PropShield example in the Mahony library and MahonyAHRS.h (installed with Teensyduino) does contain begin().

    Which version of...
  47. Replies
    14
    Views
    251

    I've realized that what is needed using this...

    I've realized that what is needed using this method is an amplifier and a mixer - not two mixers. A mixer always outputs an audio buffer even when all inputs are zero gain.
    18398
    When the amplifier...
  48. Replies
    14
    Views
    251

    Ah. Good question. Not the way I've shown it. I...

    Ah. Good question. Not the way I've shown it.
    I think another mixer between i2s1 and reverb1, which is turned on or off at the same time as switch1, should do the trick. The mixer won't output...
  49. Replies
    14
    Views
    251

    Ah. Good question. Not the way I've shown it. I...

    Ah. Good question. Not the way I've shown it.
    I think another mixer between i2s1 and reverb1, which is turned on or off as well as switch1, should do the trick. The mixer won't output anything and...
  50. Replies
    14
    Views
    251

    Add a mixer to bypass each effect. 18393 Set...

    Add a mixer to bypass each effect.
    18393
    Set the gain of one input to one and the other input to zero.
    Naming each one "switch", as I've done, instead of "mixer" will help to keep track of which...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4