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

Thread: Just noise with Teensy 3.6 and Audio Adaptor Board

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

    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
    776
    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
    7
    Here it is:
    Click image for larger version. 

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

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

Name:	IMG_2249.jpg 
Views:	83 
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
    7
    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
    1,061
    deleted, was wrong info

  7. #7
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    7
    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
    776
    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
    654
    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
    50
    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:	29 
Size:	166.7 KB 
ID:	9267Click image for larger version. 

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

  11. #11
    Junior Member
    Join Date
    Dec 2016
    Location
    Germany
    Posts
    7
    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
    13,747
    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
    13,747
    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:	34 
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
    7
    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:	38 
Size:	167.9 KB 
ID:	9573
    Last edited by Frickelpiet; 02-02-2017 at 04:28 PM.

Posting Permissions

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