TEENSY-Synth PART 1: BUILD IT

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys it's your pal Dave from notes and volts.com this month we got a really fun project we're going to take ATT 3.2 microcontroller and turned it into a really cool DIY synth [Music] [Applause] [Music] [Applause] [Music] to do this project you're going to need the following a TT 3.2 microcontroller a TT audio board and also two of these double-decker headers that you can also buy it the teensy website these are going to allow us to mount the audio board to the teensy and leave a little space in between and also leaves the pins on the bottom so if in the future you want to breadboard it or attach some other components to it you can easily do that but first of all we're going to need to assemble this alright let's begin assembly first grab your three components the teensy three point to the audio board and the double-decker headers next grab your soldering iron and some solder and you'll want to use a soldering iron with a fairly sharp tip since the pads on the TSE are very small it's very important to make sure that the pins are straight when you solder them to the teensy so to make sure that they are we're going to use a breadboard to line everything up now insert the short side of the headers into the bottom of the audio board like this now place the teensy on the long side of the pins making sure that the labels on the audio board and the titi board match up now you want to place the whole assembly on your breadboard and push it in this will keep everything straight when you solder now we'll solder the top of the board I like to start with the four outer pins and then work my way around be very careful that you don't bridge two pins with solder and also make sure you don't touch any of the components on the board with the soldering iron you now I'll carefully remove the assembly from the breadboard by slowly rocking it back and forth until it comes out the last thing we need to do is flip the board over and solder the TT on the bottom you and that's it we are done all right so now that you have your team tee board all sorted up and ready to go we're going to run a simple test to make sure you've got it working okay so if you've never used teensy before it is very similar to an Arduino and uses the same Arduino software for programming but what you're gonna need to do is install the teen seed we know software that lets you program the teensy so you want to first go to pj RC comm and then go to the teensy tab and then go to getting started there's a good tutorial about how to actually upload the code to the teensy and if you go to this link you can get the teensy loader for your operating system and just follow the instructions install it and one suggestion I would suggest you just select all the libraries to install there's a lot of really great libraries in here and it's easier just to install them now than to do it later do the installation and check it all out and just try to upload the blink program to your TT first like a very simple program and that will make sure your tool chain is correct ok so once you've got that done you're gonna want to go here so PGA RC comm / TT / GUI and you'll get to this audio library system designer tool this tool is really great and makes using the audio library a lot simpler so let's build up a very simple circuit with an oscillator and see if we can test this thing out okay so the first thing we're going to want to do is go to the output section now if you put your mouse over each thing you can actually get a little info on it but we want to use this I to s output device and that's the audio board that we have for our TT just click it and drag one of those onto the screen and you notice that it has two inputs which are left and right stereo now we're gonna scroll down to the cent section and we're gonna take a waveform object and you can see the waveform objects lets you generate all the standard waveform sine saw reverse saw square triangle and what-have-you so we'll drag one of those and that's going to be our sound source our oscillator now finally we need to go all the way down and you see the control section we need to drag one of these sgt l5000 and you can see by the info card the sget l5000 is the chip on the audio shields and we just drag that on to the screen we're not going to connect it to anything there's no connections available it just needs to be there now we'll actually make some connections so touch this little point at the end of waveform and drag a line and connect it to this upper input and then go to the same thing drag a second line and connect it to the lower input so we're taking this mono source and we're going to split it into stereo and that's it now all you have to do is go to export and you'll get all the code you need to initialize these objects and just copy and you can paste it in your Arduino software I've already done this for you so follow the link in the description to download this test program it's called teensy synth part 1 open it up in your Arduino software now all this is the code we generated in the in the system design tool and I could just replace this I'll delete it just to show you and I'll replace it with what we came up with and we'll even kind of follow follow the logic here so you can see we have a an audio synth waveform object which is this guy here we have our audio output I to s which is this guy here we have two patch cables audio connection rate patch cord one which is from waveform one which is this output - I - s1 which is this input and then we have a second patch cord patch cord - it's automatically named by the tool going from waveform one you I - s input 1 so we have 1 into input 0 1 into input 1 and then finally we have our audio control module which is just required to allow the software to talk to the chip on your audio board now if we go down to the set up so the set up I've just got a simple serial beginning not really necessary audio memory you need this and here we're enabling our objects ok so we basically got our our s GTL we're enabling it and then we're setting an initial volume level to 0.32 so this this range can go from 0 which is no volume to 1 which is full volume alright so we've got about 30% volume there then we're taking our waveform object and we're we're assigning it a sawtooth waveform type we're setting an initial amplitude of 0.75 once again this goes from 0 to 1 so that's about 75% we've got a frequency of 50 that's 50 Hertz which is very low tone and we've got a pulse width of 0.15 once again that goes from 0 to 1 so if we just had this we would actually hear that 50 Hertz tone coming from the board but I wanted to make a little more interesting for you guys so what we did is we've got a for loop we're taking our frequency variable from 50 Hertz to 500 Hertz and we're just kind of updating and increasing it so you're gonna get a raising kind of tone and I've got a little delay to kind of slow the ramp if I didn't have that delay it would just be you know so fast so we're kind of slowing it down a bit so you can hear a gradual ramp up and that's it that's our test circuit you may also notice that it's included the audio tool has included an SD card library in a flash library which we're not really using but you know it's fine we'll just we're not gonna get rid of it we'll leave it ok so now we're ready to upload the code what we need to do is plug in USB into the teensy and also an audio cable a 1/8 inch stereo audio cable into our audio boards Jack you'll need to plug this into powered speaker a mixer you know some kind of amplifying device and let's just upload so what we need to do is we'll go to tools we'll make sure our board type is set correctly teensy 3.2 and we can leave the type of serial leave everything else as standard you know make sure your port is correct so first of all a quick tip on using the teensy loader program if you click verify first it will test compile the code see if you got any errors but it will also pop up the teensy loader No and even though this is a small program it's taking a while to compile because of all the audio library things that are going on in the background so now it's it's compiled zero errors everything is good and you'll get your little titi programmer window this is the teensy loader program now go to the upload button and you see we're compiling the sketch and it's uploading and you notice we got a little message here says teensy did not respond to to the request please press the program mode button on your teens he to upload the sketch okay and that is located in here it's this little white button on the teensy board itself and because we used our tall headers I can kind of get my finger in there and there you go seems to be working fine so there's our little ramped up tone but it proves that your soldering job work the TSE is working fine your tool chain works and now we're ready to go on to some more complex stuff in the next part alright guys there you go so you've got a working teensy audio board now and in the next section we're going to look at how we can use software to change parameters on this and we're going to make a more complex since it with a few more oscillators some mixers a envelope and filters so until then I'd like to once again thank my patreon supporters who always appear up here without them none of this would be possible so thanks so much to them and I will see you next time [Music] [Music] [Applause]
Info
Channel: Notes and Volts
Views: 46,417
Rating: undefined out of 5
Keywords: Synthesizer, Electronics, Midi, Arduino, Teensy, Microcontroller, Tutorial, DIY
Id: UJcZxyB5rVc
Channel Id: undefined
Length: 14min 39sec (879 seconds)
Published: Thu May 31 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.