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. The AudioEffectEnvelope object can be used to...

    The AudioEffectEnvelope object can be used to fade in/out the playsdwav. In its simplest, you just play a wav. If you want to switch to another one, you stop the first, wait for it to stop playing...
  2. Thread: I2C woes -

    by el_supremo
    Replies
    4
    Views
    69

    The colour bands on the resistors in the photo do...

    The colour bands on the resistors in the photo do start with 4 and 7, but the third band doesn't look red (4.7k). It looks more like yellow (470k).

    Pete
  3. Save a few cents for a solder flux pen:) Pete

    Save a few cents for a solder flux pen:)

    Pete
  4. Excellent. Onwards and upwards :) Pete

    Excellent. Onwards and upwards :)

    Pete
  5. Before the virus thing disrupted our lives I had...

    Before the virus thing disrupted our lives I had got interested in cooking omelettes using the Japanese technique of rolling them in layers using a rectangular frying pan.

    Here's one after I've...
  6. My multimeter has a continuity checker. 19401...

    My multimeter has a continuity checker.
    19401
    If you place the probes on two pins that are shorted, the meter beeps. Otherwise it is silent. That makes it easy to check a lot of adjacent pins...
  7. After I've soldered pins to the audio board or...

    After I've soldered pins to the audio board or Teensy, I always grab my multimeter and do a continuity check between all adjacent pins to make sure none of them are shorted.

    Pete
  8. In the first photo of the audio shield, pin 20...

    In the first photo of the audio shield, pin 20 doesn't seem to have much, or any, solder on it. It is the LRCLK pin for the audio so it needs to have a good contact.
    Along the back row, there appear...
  9. Replies
    9
    Views
    185

    I haven't used an I2S MEMS microphone so I can't...

    I haven't used an I2S MEMS microphone so I can't help with that.
    I notice in your photo that you are using the jumper wires with round ends. It has been my experience that those are not particularly...
  10. Replies
    9
    Views
    185

    The sine wave is probably going to be very loud...

    The sine wave is probably going to be very loud compared to audio from i2s. You would also be best to make the sum of the amplitudes in the mixer equal to one as I did - i.e. 0.5+0.25+0.25.
    You...
  11. Replies
    9
    Views
    185

    Try adding these at the beginning of the setup()...

    Try adding these at the beginning of the setup() function:

    AudioMemory(8);
    mixer.gain(0,0.5);
    mixer.gain(2,0.25);
    mixer.gain(3,0.25);

    Even if there's not much contribution from the...
  12. Replies
    9
    Views
    185

    You also haven't set the amplitudes of the three...

    You also haven't set the amplitudes of the three inputs to the mixer.

    Pete
  13. Your problem might be that you are updating the...

    Your problem might be that you are updating the volume thousands of times a second. Updating it only when the volume pot has changed should fix it.
    Replace this:

    int knob2 = analogRead(A2);
    ...
  14. Have you tried playing one of the samples...

    Have you tried playing one of the samples from the PJRC website? They are stereo files. If the WaveFilePlayer example plays one of them without problems, it isn't likely that you have a hardware...
  15. Replies
    14
    Views
    1,885

    Sticky: It's just a warning. The value of (QUERY_FLAG |...

    It's just a warning.
    The value of (QUERY_FLAG | OPCODE_STANDARD_QUERY | RECURSION_DESIRED_FLAG) is 0x0100 (=256). The htons macro will change this to 0x0001 but in doing so, the compiler recognizes...
  16. I've tried your code and it plays both files...

    I've tried your code and it plays both files correctly except that there's a whining sound which is quite loud when I listen with headphones but is hardly noticeable when I record it on a Tascam...
  17. I stand corrected. I hadn't expected that I2C...

    I stand corrected. I hadn't expected that I2C would allow sufficient control to maintain the symbol timing.
    You would certainly be better off using the encoder to generate the WSPR signal.

    Pete
  18. Replies
    4
    Views
    297

    FWIW: I just got around to playing with your code...

    FWIW: I just got around to playing with your code in this post.
    You can get it to generate audio by turning on waveformMod1

    waveformMod1.begin(0.5, 55,WAVEFORM_SAWTOOTH);
    in setup().

    Pete
  19. If I understand you correctly, that is not going...

    If I understand you correctly, that is not going to work. I haven't used an Si5351 but I don't see how you use a frequency from the Teensy to "tune" the Si5351. The Si5351 is a clock generator, not a...
  20. Can you explain this in more detail? How does the...

    Can you explain this in more detail? How does the audio output affect the clock generator?

    Pete
  21. @Lapasuc Yes, that's what I saw. Pete

    @Lapasuc
    Yes, that's what I saw.

    Pete
  22. My previous test was done on a T3.2 - my bad,...

    My previous test was done on a T3.2 - my bad, sorry.

    I've now repeated the test using a T4 and a 10-turn 1k trimpot.
    With the Arduino code, I can get values from 504 to 512 but with Pedvide it...
  23. 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
  24. Post some code which demonstrates the problem...

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

    Pete
  25. Yes, it does. Pete

    Yes, it does.

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

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

    Pete
  27. 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...
  28. 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
  29. 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
  30. 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
  31. Replies
    2
    Views
    93

    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...
  32. 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...
  33. Replies
    4
    Views
    187

    .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
  34. 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
  35. 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 =...
  36. 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...
  37. Replies
    12
    Views
    283

    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
  38. 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...
  39. 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
  40. 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...
  41. Replies
    5
    Views
    264

    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
  42. Replies
    5
    Views
    219

    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...
  43. 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...
  44. 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...
  45. Replies
    3
    Views
    123

    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...
  46. Replies
    3
    Views
    123

    Which VL53L0X library are you using? Pete

    Which VL53L0X library are you using?

    Pete
  47. 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:...
  48. 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
  49. 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...
  50. Replies
    9
    Views
    354

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4