usbAudio guidance

MatrixRat

Well-known member
Thanks in advance for reading, hopefully a clear picture.

Convalescing 100 miles from workshop using the opportunity to dive in and play with the Audio library running various examples on a T3.6 , Pin 2 has a button. Pin 3 has level shifter driving 40x Neopixels. Without any audio hardware am hearing encouraging sounds on Win11 laptop.

From elsewhere on this forum:-
USB output requires another module to "drive" the audio process, look at the WavFilePlayerUSB example.
Experimented with SGTL-5000, Dacs and PWM here, any appear to work.

Next step is to teach my T4.0 based Midi Dev Kit how to be a Synth. Here is it's Pin usage:-

Code:
//Pin 0  DIN MIDI RX   // from 6N138
//Pin 1  DIN MIDI TX    //Buffered with HC245
//Pin 2  Not in use
//Pin 3  LED_PIN    //Buffered with HC245, driving  8 Neopixels
//Pin 4  pinLD      //Buffered with HC245 load pin for all shift registers, EncoderTool by @luni
//Pin 5  pinCLK     //Buffered with HC245 clock pin for all shift registers, EncoderTool by @luni
//Pin 6  LOWER_ENC_PINB - for menu and control functions.
//Pin 7  Control MIDI RX - Direct connected to another T4.0 TX via 220R
//Pin 8  Control MIDI TX - Direct connected to another T4.0 RX via 220R
//Pin 9  TFT_DC  - ILI9341
//Pin 10 TFT_CS  - ILI9341
//Pin 11 MOSI  - ILI9341
//Pin 12 MISO  - ILI9341
//Pin 13 SCK  - ILI9341
//Pin 14  LOWER_ENC_PINA - for menu and control functions.
//Pin 15  LOWER_ENC_BUTTON - for menu and control functions.
//Pin 16  QH_B output pin QH of shift register - Muxed Encoder B, EncoderTool by @luni
//Pin 17  QH_A output pin QH of shift register - Muxed Encoder A, EncoderTool by @luni
//Pin 18  Not in use 
//Pin 19  Not in use 
//Pin 20  UPPER_ENC_PINA - for menu and control functions.
//Pin 21  UPPER_ENC_PINB - for menu and control functions.
//Pin 22  LCD_PIN - Display - Display backlight.
//Pin 23  UPPER_ENC_BUTTON  - for menu and control functions.
// No underside pins are connected.
Control Midi communicates with another T4.0 driving 8x8 NeoTrellis for access to 64 button press messages. Blocks of encoder elements can provide a pathologically insane amount of knobs, ideal for a Synth and when I get hold of a soldering iron will move what's connected to Pins 14 and 15 and use SPDIF Audio pathway, meanwhile devving with usbAudio.

For "another module to "drive" the audio process" am thinking that the only option is PWM and so as to avoid any Silicon Sizzling pin conflict that the said PWM object would need to be pointing at two unused pins. Correct?

Pins 24, 25, 28 and 29 are tentatively earmarked so my burning question is if possible, howto point a PWM Audio object to (preferably) any two of Pins 26, 27, 30, 31, 32, 33 and all SD pins?
 
[ snipped ]
From elsewhere on this forum:-

For "another module to "drive" the audio process" am thinking that the only option is PWM and so as to avoid any Silicon Sizzling pin conflict that the said PWM object would need to be pointing at two unused pins. Correct?

Pins 24, 25, 28 and 29 are tentatively earmarked so my burning question is if possible, howto point a PWM Audio object to (preferably) any two of Pins 26, 27, 30, 31, 32, 33 and all SD pins?

In answer to the question of "another module to drive the audio process", <this> very recent post by Paul Stoffregen may be of interest to you.

Hope that helps . . .

Mark J Culross
KD5RXT
 
Updated, coming to life, Stop/Start buttons, blinken lights sequencer, Moog ladder, LFO, encoders working. The fun begins, thanks again!
 
Back
Top