Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 6 FirstFirst 1 2 3 4 5 ... LastLast
Results 51 to 75 of 134

Thread: Quad channel output on Teensy 3.6

  1. #51
    Senior Member
    Join Date
    Jul 2014
    Posts
    139
    Quote Originally Posted by PaulStoffregen View Post
    If you're just adding signals with sketch-controlled gain levels, there's probably little to be improved beyond simply using lots of 4 channel mixers. Well, other than the aesthetics of your source code and the fun & challenge of digging into the internals of the library.
    And the removal of 140 audio connections & the lower complexity of the diagram leading to less bugs. Would you write messy C code?

    Paul; please don't disincentivise wanting to make a contribution, this is just the start of a few planned audio objects.

  2. #52
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,638
    Hi, please excuse my late answer.
    The board is working so far, and it's really great.
    I had'nt much time for intensive testing so far, sometimes plans are "upated" by other circumstances.., but I have more time now

  3. #53
    Hi,
    I wired up myself a TDM board for some awesome multiport fun, but cannot seem to compile the code....I keep getting an errors that include the follwing statement "'AudioInputTDM' does not name a type"....It is probably some dumb mistake. Other than adding some libraries I plan to use in the future the code is pretty much auto-generated from the online GUI Audio System Design Tool. Any help would be much appreciated!

    Thanks,

    Here is my code:

    #include <Wire.h>
    #include <TEA5767Radio.h>
    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    #include <control_cs42448.h>

    // GUItool: begin automatically generated code
    AudioInputTDM tdm1; //xy=145,160
    AudioOutputTDM tdm2; //xy=398,160
    AudioConnection patchCord1(tdm1, 0, tdm2, 0);
    AudioConnection patchCord2(tdm1, 1, tdm2, 1);
    AudioConnection patchCord3(tdm1, 2, tdm2, 2);
    AudioConnection patchCord4(tdm1, 3, tdm2, 3);
    AudioConnection patchCord5(tdm1, 4, tdm2, 4);
    AudioConnection patchCord6(tdm1, 5, tdm2, 5);

    AudioControlCS42448 cs42448_1; //xy=148,381
    // GUItool: end automatically generated code

    void setup() {
    // put your setup code here, to run once:
    }
    void loop() {
    // put your main code here, to run repeatedly:
    }

  4. #54
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Quote Originally Posted by Mike McConney View Post
    I keep getting an errors that include the follwing statement "'AudioInputTDM' does not name a type"
    Install Teensyduino 1.37.

    https://www.pjrc.com/teensy/td_download.html

    Click Help > About to see which old version you have...

  5. #55
    Quote Originally Posted by PaulStoffregen View Post
    Install Teensyduino 1.37.
    https://www.pjrc.com/teensy/td_download.html
    Click Help > About to see which old version you have...
    Paul,
    That fixed it! Thank you I really appreciate it!

  6. #56
    Can someone who has tried the TDM board comment on the sound...After soldering up two different TDM boards they both sound pretty horrible. I have a feeling it is due to my sub-par soldering skills, but was just curious if someone could confirm that it is a "me" problem. I am using teensy 3.6, not sure if that makes any difference.

  7. #57
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Mine sounds quite good. I listened through a M-Audio AV40 plugged into one of the output.

    Maybe Frank can comment on how the one I sent to him sounds?

  8. #58
    Darn, that is what I was afraid of. I got to find myself a solder goddess

  9. #59
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Hi Paul,

    You don't by any chance have the gerbers or Eagle file for the CS42448 board, do you?

    Thanks,
    Colin

  10. #60
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Gerbers, yes. Eagle, no, I don't use Eagle, so no Eagle format files.

    Are you wanting to get this board made from some place other than OSH Park?

  11. #61
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Actually I just wanted to compare your board to the one that I designed. I already ordered some of your boards from OSH Park, but I'm thinking about doing another with the active outputs. Any design reference would really help. By the way, this is fantastic work, and I really appreciate you putting it out there.

  12. #62
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,638
    Quote Originally Posted by PaulStoffregen View Post
    Mine sounds quite good. I listened through a M-Audio AV40 plugged into one of the output.

    Maybe Frank can comment on how the one I sent to him sounds?
    Hi,

    somehow, i've missed this post..

    Yes, the it sounds very good. I havn't had any problems.

  13. #63
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Quote Originally Posted by synthcat View Post
    Any design reference would really help.
    I just copied the passive single ended circuits right from the CS42448 datasheet. I added a CAT811T reset chip, and connected the digital signs to Teensy, and added some decoupling capacitors. Everything else is the exact circuits from the CS42448 datasheet, just replicated 8 times for the outputs and 6 times for the inputs.

    I never made *any* schematic at all. I just put the parts into the layout and connected them.

    Except for complex analog circuits, I almost never draw a schematic. For me personally, it seems like a waste of time. I know this sounds crazy to many people, but consider the schematics so many people "draw" these days, especially in the maker / open hardware world. They're usually just the parts scattered around a sheet with net names attached to all the pins. What's the point in that, other than going through the motions to satisfy some "work flow"? Especially for quick prototypes like this CS42448 test board, I personally can make the whole thing very quickly by just wiring up the stuff right in the layout. That gives me more time for coding, documentation, answering questions and actually helping people with their projects.

    Quote Originally Posted by Frank B View Post
    Yes, the it sounds very good. I havn't had any problems.
    Erin (aka "Soldering Goddess") does excellent work.

  14. #64
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Hi Paul,

    Thanks for the reply. Would you mind sharing the gerbers? I don't usually start with schematics either, but just seeing the board connections would be a huge help. I should have your boards from OSH Park in a few days, but in the meantime, I'd like to compare your layout to mine if that's possible.

    Thanks again,
    Colin

  15. #65
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Quote Originally Posted by synthcat View Post
    Would you mind sharing the gerbers?
    Ok, here you go.

    Of course this is only a 2 layer board where you can see all the connections on OSH Park's previews, but maybe a dedicated gerber viewer is easier?
    Attached Files Attached Files

  16. #66
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Thank you so much!!!

  17. #67
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Hi Paul,

    Thanks again for the gerbers - they've been a huge help so far. The one thing I can't figure out is how you're getting power to analog voltage. Pins 53 and 44 (VA) seem to be connected to GND via the 10nF caps, but I don't see how they're getting 3.3V. Can you clarify?

    Thanks!
    Colin

    Click image for larger version. 

Name:	VA_PWR.jpg 
Views:	85 
Size:	136.7 KB 
ID:	11055

  18. #68
    Senior Member
    Join Date
    Dec 2014
    Posts
    253
    There looks like a via right below the top 10nF capacitor. Does that connect to power?

  19. #69
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    No, that one goes to GND

  20. #70
    Quote Originally Posted by Mike McConney View Post
    Can someone who has tried the TDM board comment on the sound...After soldering up two different TDM boards they both sound pretty horrible. I have a feeling it is due to my sub-par soldering skills, but was just curious if someone could confirm that it is a "me" problem. I am using teensy 3.6, not sure if that makes any difference.
    I just made a 2nd batch of 3 boards. This time I broke down and made them with solder paste & a stencil. All 3 look great, but for some reason the audio still sounds like it is being passed through a kazoo. In other words, there is some noise and it has a hum. The hum is not constant but instead associated with the audio. Is it possible I am frying the codec chip? I was maybe a little careless with the reflow temperature, I just used a frying pan on my stove. But I took it off right after the past started flowing. Looking at the chip datasheet shows nothing about reflow temperature but absolute maximum storage temperature is 150C and I also noticed in the revision history that a change was made to the temperature values, but I could not find the old values for the temperature. I would find it surprising if the reflow is below 260C, but maybe this temperature revision is a sign that these chips are pretty sensitive to higher temperatures. Anyway if anyone has an idea of what I might be doing wrong I would appreciate it.

    Thanks,
    Mike

  21. #71
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Quote Originally Posted by synthcat View Post
    Pins 53 and 44 (VA) seem to be connected to GND via the 10nF caps, but I don't see how they're getting 3.3V. Can you clarify?
    VA is powered by 5V from Teensy's VIN pin through a ferrite bead (just to the right of Teensy's VIN pin).

    VA is *not* connected to 3.3V at all. 5 volts is used for the analog power.

    Quote Originally Posted by jwatte View Post
    There looks like a via right below the top 10nF capacitor. Does that connect to power?
    The via just below the 10nF capacitor and just above pin 43 connects to a vertical trace on the bottom side which runs all the way up to the top of the board, where another via connects it to a horizontal trace over to the ferrite bead and a 10 uF capacitor, which low-pass filter the 5V power to provide a (hopefully) clean 5V power for VA.

    Here's a screenshot with the VA net selected (white). You can also see all the pads connected to GND are in a dull green color and the pads connected to 3.3V are a dull light blue color.

    Click image for larger version. 

Name:	sc.png 
Views:	137 
Size:	204.2 KB 
ID:	11057
    (click for full size)

  22. #72
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Thank you! I suspected this as of late last night, but this makes it perfectly clear.

    Cheers!

  23. #73
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Hi Paul,

    Just wanted to say that I just finished building and testing your board and it sounds great! Thanks for all the effort you have put into this endeavor.
    Cheers,
    Colin

  24. #74
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,166
    Any chance for a photo? Your's might be the only one in the world not soldered by me or Erin...

  25. #75
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Here is the board wired up to the Teensy 3.6:

    Click image for larger version. 

Name:	20170803_143036.jpg 
Views:	149 
Size:	75.7 KB 
ID:	11162
    Click image for larger version. 

Name:	20170803_172734.jpg 
Views:	141 
Size:	82.2 KB 
ID:	11163
    Click image for larger version. 

Name:	20170803_172805.jpg 
Views:	122 
Size:	83.0 KB 
ID:	11164

Posting Permissions

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