Wednesday, 24 July 2019

Teensy Audio Tutorial & Workshop

This looks like a good way to start learning about Arduino & Teensy microcontrollers.
The Teensy looks great  esp fro audio... Comes from a company called PJRC.
You can create all sorts of effects .... delay, chorus, reverb etc
It can also synthesize sounds etc etc.
You can get multichannel sound out of this  chip.

The Teensy 3.2 seems to be very popular. It's used in the Faderbank, and many Eurorack mosules such as the Radio Music / chord organ and the TELEX Teletype.

The Hackaday page is here
https://hackaday.io/project/8292-microcontroller-audio-workshop-had-supercon-2015

This uses a Teensy 3.2 and the audio adapter board

The workshop PDF is here.


....

 Audio library delay line demo





The analog pins are labeled A0 to A9

Connect the buttons to pins 0, 1, and 2
The pots connect to A1, A2 & A3

Audio input I2S. .... also called I²S (Inter-IC Sound).
" is an electrical serial bus interface standard used for connecting digital audio devices together. It is used to communicate PCM audio data between integrated circuits in an electronic device."
I2S is unrelated to the bidirectional I2C (IIC) bus. (Wikipedia).
https://www.cypress.com/file/133906/download

The I2S component operates in master mode only. It also operates in two directions: as a transmitter (Tx) and a receiver (Rx). The data for Tx and Rx are independent byte streams.

The Display:
https://www.pjrc.com/store/display_ili9341.html

Adding Pushbuttons.
To read the pushbutton, you must configure the pin to work as an input. (pinMode)
Then you can use digitalRead to actually read the pin.
There is no need to add a pullup resistor since the Teensy board provides a pullup resistor on every pin. This is built inside the chip itself.
Connect the pushbutton by wiring one side to ground and the other side to a pin.
You can activate the pullup resistor by using INPUT_PULLUP with pinMode in your setup function.

Adding Potentiomers
This uses the analog input side of the teensy.
Connect one of the outside pins to ground, and the other to 5V
The middle pin goes to the analog input
------------------------------------------------------
The microphone
Digi-Key Part Number 668-1296-ND

https://www.digikey.com.au/products/en?keywords=668-1296-nd





---------------------------------
The thumbnail pot
Digi-Key Part Number 3352T-253LF-ND
https://www.digikey.com.au/products/en?keywords=3352t-253lf-nd




---------------------
Putting the two boards together with headers

I'm using these
I removed the bottom spacers
Then soldered them to the main teensy board.

Next, attach female headers

Insert audio board & solder


--------------------------------------------------------------------------
Links
+Arduino workshops for beginners
+ Teensy Tutorials
+ PJRC Audio design system for Teensy
+ Teensy Audio Library
+ Sparkfun - 4 channel audio
+ Microcontroller Index Page
+ i2c protocol 
+ Kickstarter 3.6

No comments:

Post a Comment