
Originally Posted by
Rich L
Hello and thank you for your video presentation about processing audio on the teensy. I'm trying to round up hardware and noticed that the 3.2 is out of stock. Is it possible to use the 4.0 interchangeably as long as I keep input at 3.3V and below?
Also, I'm assuming that the potentiometers in the Hackaday8292
workshop are 10K
Note, the pinout for the Teensy 4.0 is different than 3.2 WRT to the audio pins and with the SPI/SD card pins. So you might have to adjust some of the sample programs. Unfortunately, I don't think the example programs have comments of what to modify. As I recall, it was mostly the programs that read from the SD card. For example, Part_1_03_Playing Music has:
Code:
// Use these with the Teensy Audio Shield
#define SDCARD_CS_PIN 10
#define SDCARD_MOSI_PIN 7
#define SDCARD_SCK_PIN 14
// Use these with the Teensy 3.5 & 3.6 SD card
//#define SDCARD_CS_PIN BUILTIN_SDCARD
//#define SDCARD_MOSI_PIN 11 // not actually used
//#define SDCARD_SCK_PIN 13 // not actually used
For the Teensy 4.0 you would want:
Code:
// Use these with the Teensy Audio Shield
//#define SDCARD_CS_PIN 10
//#define SDCARD_MOSI_PIN 7
//#define SDCARD_SCK_PIN 14
// Use these with the Teensy 3.5 & 3.6 SD card
//#define SDCARD_CS_PIN BUILTIN_SDCARD
//#define SDCARD_MOSI_PIN 11 // not actually used
//#define SDCARD_SCK_PIN 13 // not actually used
// Use these with the Teensy 4.0 or 4.1 using the SD card in the audio adapter
#define SDCARD_CS_PIN 10
#define SDCARD_MOSI_PIN 11
#define SDCARD_SCK_PIN 13
// Use these with the Teensy 4.1 using the SD card on the Teensy 4.1
//#define SDCARD_CS_PIN BUILTIN_SDCARD
//#define SDCARD_MOSI_PIN 11
//#define SDCARD_SCK_PIN 13
Also programs that write to the DAC (digital to analog converter) won't work on the Teensy 4.0 since it doesn't have a DAC (i.e. sampleplayer).