Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 22 of 22

Thread: Just noise with Teensy 3.6 and Audio Adaptor Board

  1. #1
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18

    Just noise with Teensy 3.6 and Audio Adaptor Board

    Dear forum members,

    I have attached the audio adaptor board to the teensy 3.6. The "SdCardTest" sketch and the "Part_1_03_Playing_Music" sketch both works (based on the output of the serial monitor), but I just hear noise. I have recorded the output of the headphone with my mobile: https://dl.dropboxusercontent.com/u/...audioboard.m4a

    Does anybody has an idea what's wrong?

    Peter

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,155
    I have attached the audio adaptor board to the teensy 3.6
    Exactly how did you do this? A photo would be good.

    Pete

  3. #3
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18
    Here it is:
    Click image for larger version. 

Name:	IMG_2249.jpg 
Views:	1411 
Size:	195.9 KB 
ID:	9257

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Quote Originally Posted by Frickelpiet View Post
    Here it is:
    Click image for larger version. 

Name:	IMG_2249.jpg 
Views:	1411 
Size:	195.9 KB 
ID:	9257
    You might want to check every single connection.
    Would have been much easier to stack the boards..

  5. #5
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18
    I have checked and double checked every single connection.

    + 3,3 V is connected to a pololu regulator (3,3 V)
    GND is connected with GND of the regulator and the teensy

    All other connections are as follows:

    Code:
    LRCLK pin 23
    TX    pin 22
    SCL   pin 19
    SDA   pin 18
    VOL   pin 15
    SCLK  pin 14
    RX    pin 13
    MISO  pin 12 
    MCLK  pin 11
    SDCS  pin 10
    BCLK  pin 9
    MOSI  pin 7
    MEMCS pin 6

  6. #6
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,342
    deleted, was wrong info

  7. #7
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18
    I have figured out that the wires are the problem. I think they are too long. Sometimes the board plays the test files until I touch the wires.

    Peter

  8. #8
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,155
    Or perhaps one or more of those wires has a bad solder joint?

    Pete

  9. #9
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,534
    What about pull up resistors for the I2C bus to stabilize the signals?

  10. #10
    Member
    Join Date
    Jun 2016
    Location
    rural West Virginia
    Posts
    61
    I had a similar problem with a T3.2 and an audio adaptor connected by wires that were about 3 inches long. It seems that there can be some clock skew and cross coupling in those wires, especially without a good low inductance ground between the two boards. This causes the clock and data to get out of sync, resulting in noise. Adding some copper foil under the wires and separating each one cured the random rude sounds. Kapton tape holds the wires to the copper foil, which is grounded in multiple places. Other sound anomalies were cured by replacing the cheap SD card with a true Class 10 card. The project has worked perfectly ever since. Pictures are before and after the added ground. Click image for larger version. 

Name:	BarryBox_4_x.jpg 
Views:	1076 
Size:	166.7 KB 
ID:	9267Click image for larger version. 

Name:	BarryBox_5_x.jpg 
Views:	1172 
Size:	169.0 KB 
ID:	9268

  11. #11
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18
    I have added the pullup resistors as recommended, and with them the audio board works better. But sometimes I still get the noise. I think I will solder the audio board on the top of the teensy.

  12. #12
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,582
    Maybe small series resistors on the MCLK and BCLK outputs could also help?

    Same sort of trouble we've seen many times with OctoWS2811... before PJRC started selling the board with 100 ohm resistors and connectors for using CAT5 or CAT6 cable. The fast edges of the clocks and long wires can cause a lot of crosstalk.

  13. #13
    Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    25
    Fighting with the same Issues at the moment.
    https://forum.pjrc.com/threads/40903...-Audio-Adaptor

    Seems to be the I2S Signal.
    No problems with a T3.1 with the same setup.
    I'll try the hint with the resistors when i'm back in office.

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,582
    Please post photos of how you've actually connected the wires. Show (don't tell) how you've really connected everything.

  15. #15
    Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    25
    So this is the actual Setup:

    Click image for larger version. 

Name:	20170107_231403.jpg 
Views:	1157 
Size:	144.5 KB 
ID:	9331

    Problem seems to be Pin 11 - MCLK.
    Adding a 1K Resistor improved the stability a lot. (chaos when touching the resistor pins - same as before)
    Im sorry I could not find the 10K Resistors. It stopped working with a 130K Resistor.

    then I bridged Pin 11 from Teensy and Audio Board with a piece of a Guinness can....
    (ok... in fact, i used one of the wires of a resistor.... i'm still not in office, so i have to improvise)

    problems were gone then.

  16. #16
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    18
    Since I have soldered the Audio Adaptor Board on top of the teensy everything works flawless.

    Click image for larger version. 

Name:	IMG_2338.jpg 
Views:	1241 
Size:	167.9 KB 
ID:	9573
    Last edited by Frickelpiet; 02-02-2017 at 04:28 PM.

  17. #17
    Junior Member
    Join Date
    Jun 2018
    Posts
    1

    MCLK Fixed for me

    Quote Originally Posted by nemation View Post
    So this is the actual Setup:

    Click image for larger version. 

Name:	20170107_231403.jpg 
Views:	1157 
Size:	144.5 KB 
ID:	9331

    Problem seems to be Pin 11 - MCLK.
    Adding a 1K Resistor improved the stability a lot. (chaos when touching the resistor pins - same as before)
    Im sorry I could not find the 10K Resistors. It stopped working with a 130K Resistor.

    then I bridged Pin 11 from Teensy and Audio Board with a piece of a Guinness can....
    (ok... in fact, i used one of the wires of a resistor.... i'm still not in office, so i have to improvise)

    problems were gone then.

    Made an account just to say that the MCLK fix worked for me. Sounded raspy and like the sample rate was constantly changing. Adding the 1K on MCLK fixed it entirely. I also have pull ups (1K) on the I2C bus as well, but I'm not sure if they are doing anything at the moment.

    Thanks!

  18. #18
    Junior Member
    Join Date
    Jan 2017
    Posts
    17
    I struggled with this too. I used 300mm jumper wires that I had laying around with a teensy 3.2. and an audio adaptor perfectly fine for ages. As I was now testing a Teensy 3.6 I got very odd crackling, and general noise as well. I could faintly hear the actual audio in the background though.

    Adding the 1K on MCLK totally fixed it.

  19. #19
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,534
    The BCLK and MCLK signals are RF @ 2.82 and 11.29MHz. It should be self-understanding to treat such signals in an appropriate way, keeping the wiring as short as possible to prevent parasitic inductance and to reduce the EM stray field. 300mm jumper wire is definitively not state of the art, and though a series resistor might cure several symptoms by damping the inductive effects of this wild wiring, it is not the optimal way to go since other problems like phase jitter might arise. Even when only prototyping a project, one should always do it already with a CE and/or FCC certification of the final commercial product in mind.

  20. #20
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,582
    Using short wires is the best way.

    But I can tell you, PJRC will soon make a revision to the audio shield to add a 100 ohm resistor to the MCLK signal.

  21. #21

    noise t3.6 and audio adapter board

    Quote Originally Posted by PaulStoffregen View Post
    Using short wires is the best way.

    But I can tell you, PJRC will soon make a revision to the audio shield to add a 100 ohm resistor to the MCLK signal.
    I have the same noise issue I think - hissy/whistling digital noise on input, with an audio shield stacked directly on top of a T3.6. Again, on a 3.2 it works ok.

    I have a rev C audio shield - does this have the MCK resistor?

    TIA.

  22. #22
    Junior Member
    Join Date
    Oct 2019
    Posts
    1
    I have a Devin Townsend Ocean Machine Delay & Reverb "Pedal", which can (among other things) record 1 minute 21 seconds of looped audio that you can play with and record (mix) into. Should I do a quick tear down and see what it uses for memory?

    It was manufactured by Moor and designed in Shen Zen, so I have no idea what to expect inside as they make a lot of pedals, amps, and audio gear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •