Teensy 4.0: First Steps + Speed Test

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
- oh so excited so um this is part 2 of my teensy 4.0 unboxing slash getting started I did an overview and unboxing earlier today which you can find on this same channel and there's also a link to that in the description of this video and to cut that one off because my teensy do we know install was not working I realized that that is because I had two separate installs of our do we know one on the amount of Mac so one in Macintosh HD slash applications and then one in my personal users Applications folder and I had to run the in the teens need we know installer on a different version than the one I'm actually using so all the instructions are still valid you can grab the software from this thread which is linked in the description or you can find it elsewhere on the tnc site all you got to do is look for the teen seed we know installer so in this iteration I'm gonna go ahead and actually install the software I have tested this on this other piece which I forgot to take out of the bag earlier this is really exciting you know what this is this is the audio what do you call it add-on that I was talking about earlier that three years ago we looked at I think Moldova was with us for part of that and it was like a super it looks like it's from 2016 anyway but this is with the previous version of the audio shield and now I can appear to have this sort of new version of that which is very exciting so this looks like the same classic audio shield with perhaps a couple of minor differences but then also it's about this whole extra breakout which has a beautiful clear acrylic mounted base plus the little rubber feet switch is May this looks so nice and this is a breakout that appears to be specifically for the team Z 4.0 because it's got some things like the coin sell for the real time real time clock it has a USB port which I assume would be for a peripheral device and then this one that is the one that hooks so then this is like the host port and this is the client port where this one becomes the peripheral to your computer versus this one where you're hooking up another peripheral to your teen see over here you've got your canvas breakouts and then over here you've got a bunch of seven different serial Alex which is ridiculous I guess interfaces it end up you go power light you do have the on/off button connected to that on/off pin that we talked about earlier and yeah super cool so this is your whole dev board for it and it's clearly made by Josh Park you've got the beautiful purple color which I'm not sure you can see very well and those beautiful that beautiful gold plating and the white silk screen which is still familiar just to orient you on what I was talking about a second ago with the on/off switch on here oh yeah also provides a power shutoff feature by connecting a push up push button to the on / off pin the 3.3 volt power supply can be completely disabled by holding the button for 5 seconds and turned it back on by a brief button press if a coin cell is connected to V bat teensy 4.0 s RG C also continues to keep track of date and time while the power is off that is so cool and it can also be overclocked well beyond 600 megahertz I will not be attempting that today I will be attempting something much simpler which is this this benchmarking thing so I'm gonna put this away for a second but this is where I verified that it does work to install this stuff now so we won't get stole that in the middle unless something else untoward happens which is always very possible but hopefully won't happen yeah so the previous to that he sent me to compare with and let's get this in focus is pretty busy on the top but is unpopulated on the bottom in comparison with the 4.0 which has components already on the bottom so you can't just like mount it flat on a PCB of your own you would have to I mean never mind that it's not really designed for that anyway you know castellated edges or whatever but if you had aspirations of that it's not going to be as possible this time around you've got in order to cram everything on this board into such a tiny tiny footprint and have it stay the same it's understandable that things would need to be a little bit denser and so they are so let's try it first I'm gonna hook up this seems e 3.2 to try not to pull on my USB cable cuz it's acting up today huh if the camera goes out it's my bad yeah right now we have this teensy 3.2 hooked up and what I'm gonna do is open up the arduino ide and upload this code that we looked at earlier which is the RSA signature speed demo which you can download from github and the link to that is in the description to the video so it looks at the this header file with the local RSA signature assisting functions and whatnot we've got this variable which stores a known correct signature that was generated on a computer using this command and then it goes ahead and tries to generate that same signature using sha-256 digest and RSA 2048 which is a lot 2048 bit RSA um and then it compares the two to make sure that it's actually the same so here's your verifying the computed result on 141 or two so this is what I'm gonna upload I won't show you the arduino application screen because it's a bunch of extra work but what i will do is i'll show you the serial monitor when that comes up in fact i wonder i forget whether i can have a serial monitor up and have it persist when I upload I'm gonna see if that's possible [Music] so here's the serial monitor as is I hide that for now and I'm gonna go ahead and try to let me select my board which is the TZ 3.2 is slash 3.1 and this is installed when you run the teensy do we know installer you don't have to do it through the boards manager and since it's the first time uploading to this board specifically I'm gonna hit compile a little check mark ooh or do we know what are you doing why are we not responding that's not optimal oh boy it's being very slow fortunately I got a readout that was pretty good earlier despite this I'm gonna try closing this year in a monitor and doing this again in the meantime I'm getting a little bit of a beach ball so let's close that okay okay it compiled its clean tiling now it should go pretty fast right now let's see if I can just show you what's going on in that window it's compiling as you can see being pretty slow oh don't fall all right felt very precarious situation right here ah come on maybe it takes longer to compile it for the three point two in the meantime let's see if people are saying anything any questions so far yeah Jose says me too I sonde ya boi now on venom come on it's so slow that being slow oh I think Arduino is just not liking me today if I close some of these tabs I've definitely had issues before when I did the previous Arduino tutorial example I had problems with having too many programs running and since then I try and make sure to cut it down as much as possible in advance but I'm still having a little bit of trouble ok ok cool cool cool this looks good ok done compiling now in order to upload this and then hit upload and I gotta hit the program button need to put it in program mode wants to compile again and era compiling no currently busy with another operation oh there's always something hmm well what if I swap it out with the 4.0 let me try it one more time first though this is gonna end up being something very silly and embarrassing I swear to you it just worked actually you know it's already uploaded on the other board which means that hey there we go now when I open the serial monitor I'm gonna show you that another window that's not it here we go and hey look at this we have our is a signature speed test signature computation took 1.30 nine seconds and it says the signature is good cool so remember that 1.30 nine seconds kiss this is very important this is one of the key benefits of the new board you're gonna be stunned amazed stupefied okay now I'm going to compile this bad boy for the TT 4.0 I'm gonna hit compile it's going slowly again why do you do this to me or do we know it makes me so sad come on hmm look at the comments again yeah well you know what we can do we can look at the audio tutorial kit the old one so my guess is that this is the same shield as before in which case it would have a spot yeah there is a spot for the mic to be hooked up between the mic and ground lines which you can see here here and it looks like pretty much the same shield which would make sense if they're pretty compatible yeah you've got a volume pin and stuff like that and this is where your micro SD card goes in with some audio files or whatever you want to be playing and it appears to be pretty much the same shield just on this extra breakout for a slash dev board for the whole team Z 4.0 super cool in the meantime let's check on Arduino it still says it's compiling huh hey it's done okay let's try this again so hit upload dip the button to put it in program mode you only have to hit the button the first time you program a new TZ so the next time I upload something to this board I shouldn't have to do that I put this away let me take us back to our serial monitor in a second so it's compiling so much stress I mean if all else fails I'll just show you the other one that I already compiled and uploaded we're out of the woods already we've got our 1.30 nine on the teensy 3.2 running this benchmarking program which computes you valid Shaw at RSA generated hash of a certain file Oh why does it hate I don't know um in the meantime let's take a look at the audio GUI that he's designed for this because that's also really cool ooh automatic mode has been disabled because the board returned to bootloader mode very quickly well it uploaded so that's fine I'm gonna take a screenshot of this error message I you just got but all seems to be well I'm gonna show you the serial monitor window again and this time it will have a different name hmm here's our sketch and for some reason my serial monitor window isn't coming up yay let's try this again I've been serial under I'm not really getting the output window there's some reason what if I hit reset maybe that error message actually meant something after all but I'll show you on the other one that setups the audio system Oh gorgeous that worked immediately and how immediately well it's a 0.0 85 seconds instead of 1.30 9 it took point 0 85 seconds I'm just gonna see how small that is comparatively that is point zero six of the amount of time it took the other one what if I say one over point zero six it's like 17 times faster which is a lot supercool where's the TT 4.0 page again 17 times faster does that look about right yeah actually on this it's about 10 times faster on this chart and we just got well okay that's a different demo but yeah we just got 17 times faster running this same sketch to generate the hashes on a teensy four versus a teensy 3.2 so it's way faster if you want to do hardware security stuff if you want to do audio stuff I personally I'm looking to use it for audio stuff for like fast Fourier transforms boryang however you say it other like real-time audio processing stuff once you hook up a mic to this device then you can get it doing a real-time audio processing so like that you can do extra speakers out there here's this mic connection and yeah even on the 3.2 you could already do that do like a voice effects and stuff you can make your own effects pedal for guitars and things I saw someone hook up a bunch of effects pedals to a lap steel and it sounded amazing and I kind of want to do that with my mandolin now Adam it is so cool anyway so yeah real-time proof that this guy is super fast way faster than these three point-two in the same package and with a ton of extra features awesome job Paul thank you so much for sending this our way especially this audio guy I was not expecting that at all this is so cool I can't wait to do stuff um and check out the audio code generator audio system design tool for the teensie audio library it's linked from her make that page which is in the left hand sidebar of this of pjr c-calm where is it here we go just scroll down to audio and go to main page this person despite us having very similar hair this person are three years ago anyway this person is not me but they seem very cool and yeah from that page you can get to this audio design tool right here and basically yeah it's drag-and-drop sort of like node-red and you can see a number of examples of it all in that previous documentation that I talked about thanks for watching I hope that you get a chance to explore with the new teensy 4.0 released just today fresh off the lines the factory lines I don't know um yeah go get you one get one of these audio shields it is a great great way to work with audio processing and I lost my previous one because I gave it away to someone who had a last minute emergency project so it's very exciting to have one again I don't know experiment with doing like real-time audio filters and and filter pedals and stuff like that it's gonna be so good so good power management super fast operation all that good stuff maybe I'll put some filters on my audio for this this broadcast we'll see anyway enjoy hack on
Info
Channel: Hackster.io, an Avnet community
Views: 23,699
Rating: undefined out of 5
Keywords: hackster, teensy 4.0, teensy board, teensy 4.0 board, new teensy board, arm cortex-m7, cortex-m7, 600 mhz, arduino board, arduino-compatible board
Id: RNvE98Dbib4
Channel Id: undefined
Length: 19min 28sec (1168 seconds)
Published: Thu Aug 08 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.