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.02 seconds.

  1. Replies
    17
    Views
    181

    Both of those sketches worked for me on a T4 with...

    Both of those sketches worked for me on a T4 with a 4.7k pullup to 3.3V on DQ - once I had wired the DS18B20 properly and changed the code to use a different pin (7).

    Pete
  2. Thread: I2C woes -

    by el_supremo
    Replies
    14
    Views
    251

    I haven't got a TMP102 but I tried the scanner...

    I haven't got a TMP102 but I tried the scanner code in message #1 on a Teensy LC and it finds all 5 addresses that I have on a board here - Chronodot real-time clock (2 addresses), EEPROM (2...
  3. Thread: I2C woes -

    by el_supremo
    Replies
    14
    Views
    251

    The Sparkfun TMP102 board has built-in 4.7k...

    The Sparkfun TMP102 board has built-in 4.7k pullup resistors so you don't need to add them. Try it without them.
    Also, pins 18 and 19 are the default I2C pins. Comment these two lines - probably...
  4. FYI: There are two wee mistakes in my...

    FYI: There are two wee mistakes in my explanation.

    This should say:


    Pete
    P.S. Sorry, don't know the answer to your question about arm_cfft_q15
  5. What the routine is doing is copying 128 16-bit...

    What the routine is doing is copying 128 16-bit numbers (the real portion) and adding a 16-bit zero word after each one - the zero is the imaginary part of the number.
    If you specifically copy the...
  6. Replies
    5
    Views
    111

    I've just dug into the code and the vast majority...

    I've just dug into the code and the vast majority of that 22k is statically allocated, so increasing AudioMemory is unlikely to help.
    If I get time today, I'll play around with your code.

    Pete
  7. Replies
    5
    Views
    111

    The audio design web page says this about...

    The audio design web page says this about freeverb:

    The "22K of RAM" suggests that you need to allocate more memory for it. Try:

    AudioMemory(64);

    Which Teensy are you using?

    Pete
  8. I ran your sketch on a T3.6 with Rev C board....

    I ran your sketch on a T3.6 with Rev C board. Using a Win10 64 Pro PC with Arduino 1.8.12 and TD 1.52 B1.
    I generated the attached spectrum using Goldwave which reads the audio directly from the...
  9. 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...
  10. Thread: I2C woes -

    by el_supremo
    Replies
    14
    Views
    251

    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
  11. Save a few cents for a solder flux pen:) Pete

    Save a few cents for a solder flux pen:)

    Pete
  12. Excellent. Onwards and upwards :) Pete

    Excellent. Onwards and upwards :)

    Pete
  13. 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...
  14. 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...
  15. 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
  16. 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...
  17. Replies
    9
    Views
    212

    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...
  18. Replies
    9
    Views
    212

    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...
  19. Replies
    9
    Views
    212

    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...
  20. Replies
    9
    Views
    212

    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
  21. 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);
    ...
  22. 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...
  23. Replies
    14
    Views
    2,089

    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...
  24. 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...
  25. 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
  26. Replies
    4
    Views
    318

    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
  27. 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...
  28. 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
  29. @Lapasuc Yes, that's what I saw. Pete

    @Lapasuc
    Yes, that's what I saw.

    Pete
  30. 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...
  31. 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
  32. Post some code which demonstrates the problem...

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

    Pete
  33. Yes, it does. Pete

    Yes, it does.

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

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

    Pete
  35. 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...
  36. 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
  37. 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
  38. 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
  39. Replies
    2
    Views
    98

    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...
  40. 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...
  41. Replies
    4
    Views
    192

    .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
  42. 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
  43. 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 =...
  44. 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...
  45. Replies
    12
    Views
    310

    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
  46. 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...
  47. 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
  48. 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...
  49. Replies
    5
    Views
    276

    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
  50. Replies
    5
    Views
    224

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