Teensy Audio without the Shield - Using ADC, DAC, DUAL PWM

  Рет қаралды 19,472

Gadget Reboot

Gadget Reboot

Күн бұрын

Not everyone has the Teensy audio shield with the I2S 16 bit interface, so I will investigate using standard ADC analog inputs for audio in, built in DAC for audio out, and a dual PWM output as an alternate audio DAC interface.
The input and output passive circuits are found in the Teensy audio design tool GUI as seen in the video:
www.pjrc.com/teensy/gui/index...
The sketches used are from the Teensy example sketches in the Arduino IDE for audio passthrough hardware testing.
Dual PWM details and general PWM calculations
www.openmusiclabs.com/learning...
www.edn.com/design/analog/432...
www.edn.com/design/analog/444...
www.ti.com/lit/ug/tidu027/tid...
Patreon: / gadgetreboot
Pinterest: www.pinterest.ca/GadgetReboot
Twitter: @GadgetReboot / gadgetreboot
Music from the KZbin music library:
Biz Baz Studio - Reckless Shred

Пікірлер: 32
@futuretrees
@futuretrees 3 жыл бұрын
I had no idea this tool was interactive! The schematic sidebar was extremely helpful. Thank you!
@KentSuzuki
@KentSuzuki Жыл бұрын
What an amazing tutorial and experiment - thank you! I'm trying to get audio into the Teensy for triggering LEDs (audio quality is not important), so this ADC method is perfect!
@victorclaros8967
@victorclaros8967 3 жыл бұрын
Amazing lesson !! great balance between theory and practice
@TheNormalUniverse
@TheNormalUniverse 3 жыл бұрын
Awesome video friend! Can't wait to watch more
@peanut71968
@peanut71968 4 жыл бұрын
Really nice demo! Thank you !
@taj_ninny
@taj_ninny 2 жыл бұрын
Thank you, i've learned a lot, love the way you explain things!
@davedugan3987
@davedugan3987 3 жыл бұрын
Loving this series, thanks so much for the time and effort.
@romanstetson9321
@romanstetson9321 2 жыл бұрын
sorry to be off topic but does any of you know of a trick to log back into an Instagram account? I was dumb lost my account password. I would love any tips you can offer me.
@coenkaden2889
@coenkaden2889 2 жыл бұрын
@Roman Stetson instablaster :)
@romanstetson9321
@romanstetson9321 2 жыл бұрын
@Coen Kaden I really appreciate your reply. I got to the site through google and im in the hacking process now. Seems to take a while so I will get back to you later with my results.
@romanstetson9321
@romanstetson9321 2 жыл бұрын
@Coen Kaden It did the trick and I now got access to my account again. Im so happy! Thanks so much you saved my ass :D
@coenkaden2889
@coenkaden2889 2 жыл бұрын
@Roman Stetson no problem xD
@SyncdAlien
@SyncdAlien 4 жыл бұрын
Very very interesting, thank you! 👍
@GadgetReboot
@GadgetReboot 4 жыл бұрын
Yeah I actually learned a few things along the way on this project so I think it’s even helpful to me.
@electronic7979
@electronic7979 4 жыл бұрын
Helpful video 👍
@DustinWatts
@DustinWatts 4 жыл бұрын
Good video! I am waiting for my Teensy 4.0 to arrive. Im very interested in doing some audio effects with it.
@roccotuna
@roccotuna 4 жыл бұрын
Just a heads up. Teensy 4.0 doesn't support AudioInputAnalog yet. Found this out the hard way.
@michielvaninbroukx2508
@michielvaninbroukx2508 3 жыл бұрын
@@roccotuna Anny updates ?
@StevDoesBigJumps
@StevDoesBigJumps 6 ай бұрын
A summing amplifier might work better for multi PWM. The other one seems to be impedance dependent. Also, you didn't nearly filter the pwms hard enough if you intend to run that signal through a tweeter, should be fine for midrange speakers though . If you use a dual opamp, you can use the first side to make the summing amplification to stack the signals and the other side of the opamp for a 2nd or 3rd order filter.
@theengineer9910
@theengineer9910 4 жыл бұрын
Nice DSP project i ve never used a teensy but after this i gotta
@docchicken165
@docchicken165 4 жыл бұрын
THX ! very interesting. You are a pro! One qustion. I am building an Teensy FX Pedal for my fender electric bass. just looking at the schematics: What do you think is better to us as an input mic in or line? now i am using line in but the low frew are distorted - i already played with the gain but no difference...
@GadgetReboot
@GadgetReboot 4 жыл бұрын
I haven’t tried the mic input on the audio shield and I haven’t seen the schematic lately to see if there’s anything obvious on the board, for example I wonder if there might be some interaction between the output impedance of a pickup and any input components on the audio board, so maybe an op amp in between would help isolate everything and keep everything from interacting. And possibly use the opamp to reduce gain even further if the hardware itself is being over driven. Do you have an oscilloscope to look at any signals? Is the bass an active pickup output? I wonder if its signal swing is a bit strong and it’s just over driving the input, and attenuating it would help before it even gets to the audio board. Is there any difference if you turn the volume way down on the bass itself to help lower the signal going in to the audio board?
@odissey2
@odissey2 3 жыл бұрын
For those who interested in the PWM DAC material, shown in the video, here are the links www.openmusiclabs.com/learning/digital/pwm-dac/dual-pwm-circuits/index.html www.edn.com/combine-two-8-bit-outputs-to-make-one-16-bit-dac/ www.edn.com/a-faster-pwm-based-dac/ www.edn.com/cancel-pwm-dac-ripple-with-analog-subtraction/
@werkstattkreuzberg4234
@werkstattkreuzberg4234 Жыл бұрын
Very nice!
@BeniRoseMusic
@BeniRoseMusic 3 жыл бұрын
Thanks for this video! What’s the deal with the stepping on the DAC, that’s due to sample rate not bit rate right? Why can the Teensy write to the audio board faster than it can the DAC?
@GadgetReboot
@GadgetReboot 3 жыл бұрын
The audio board runs with a data clock a couple of MHz so it would have enough time to get stereo audio and do what it needs with it. I can't remember all the details of the experiment now but yeah the sample rate on the analog input would be un-optimized with all the arduino overhead code and configurations causing it to sample inefficiently, and moving the data from ADC to DAC adds overhead after the sampling is done, and if it's at 10 bits (I think that's the default) it's losing resolution there too. I've used 3 different I2S audio chips on various boards and it's way better.
@BeniRoseMusic
@BeniRoseMusic 3 жыл бұрын
@@GadgetReboot Ah, makes more sense that it's losing fidelity sampling on the way in, forgot that your test used the board input. I guess it could also be on the way out if the I2S pin gets faster writes than the DAC does due to the way the chip is set up.
@mitchblocher2087
@mitchblocher2087 3 жыл бұрын
It would be interesting so see this with the 4.6 that came out last month. There has been some MAJOR MAJOR upgrades including 600Mhz clock speed on a 32bit processor
@TooSlowTube
@TooSlowTube 2 жыл бұрын
Did you mean 4.1? There's Teensy dev/platform 4.6.0, but I haven't seen a Teensy newer than 4.1
@PeetHobby
@PeetHobby 9 ай бұрын
Is called PWM DAC, two-path PWM.
@GnuReligion
@GnuReligion 4 жыл бұрын
Was hoping to learn how this PWM addition werks! I have a guess. Some MCUs, like the Logic Green clone of the ATMega328, have multiple internal voltage references that can be tied to an I/O pin. If you have 10 bits to scale a voltage reference of 1.024V, each tic is 1mV. If you use the 4.096 reference, each tick is 4mV. Add them together and get a 5V range at 1mV, which is more steps than can be represented with 10 bits. Teensy probably has INTERNAL1V1 and EXTERNAL 3.3V reference capabilities, at least. (shrug) May be completely wrong though.
@GadgetReboot
@GadgetReboot 4 жыл бұрын
I think the teensy does have an internal 1.2 and external 3.3 option. I feel like I have a 95% understanding of it in my brain but only a 23% capability of expressing it to the rest of the world using stick figures and crayons. Kind of like how I was frustrated a year ago when I did the video on the audio spectrum analyzer using FFT and I couldn’t exactly figure out how it worked so I had to gloss over it. Still bugs me.
Teensy Audio and LED Panel PCB:  SmartMatrix Compatible
11:08
Gadget Reboot
Рет қаралды 10 М.
Teensy Digital Delay using ADC and DAC
17:30
Gadget Reboot
Рет қаралды 6 М.
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 142 МЛН
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
00:37
Levsob
Рет қаралды 7 МЛН
12-bit DAC Arduino MCP4725 How To Use It - Stable Voltage Reffrence
11:21
Phase Shifting with DSP using the Teensy
24:24
NA5Y
Рет қаралды 14 М.
ESP32 Audio Input Using I2S and Internal ADC
10:43
atomic14
Рет қаралды 119 М.
The "Monolith", a Teensy-Powered Interactive Synthesizer!
18:54
Adam Savage’s Tested
Рет қаралды 116 М.
The Class D audio amplifier - Basics (1/3)
18:49
FesZ Electronics
Рет қаралды 28 М.
Teensy 4.1 - Piezo Drum Trigger Signal Conditioner Interface (4-ch)
15:09
Teensy 4.1 // MCU Monday
8:14
Hackster.io, an Avnet community
Рет қаралды 29 М.
Teensy Audio Library, Delay Line Demo
3:10
PaulStoffregen
Рет қаралды 31 М.
ESP32 Audio: I2S & Built-In DACs Explained
6:06
atomic14
Рет қаралды 43 М.
Getting Started With Teensy 4.0
12:00
learnelectronics
Рет қаралды 22 М.
Apple watch hidden camera
0:34
_vector_
Рет қаралды 52 МЛН
3.5.A Solar Mobile 📱 Charger
0:39
Gaming zone
Рет қаралды 320 М.
Куда пропал 3D Touch? #apple #iphone
0:51
Не шарю!
Рет қаралды 726 М.
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 21 М.
Pratik Cat6 kablo soyma
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН