 It's me, John Park. It is time for JP's product pick of the week. I have a cool product pick for you So thank you for stopping by to check it out and also maybe to get yourself a big humongous discount on this week's product pick So first thing I want to do in fact is send you to the product page So if you go to this URL or to this QR code right here, however you like to do it You'll end up on this week's product pick page and this show is actually Embedded right inside of the product page so you can watch it from right inside of there if you like that virtual shopping mall Barker type of situation experience and The cool thing is you don't need a coupon code all you got to do if you want this week's product pick is throw it in your cart And it's gonna be on a big humongous discount I'm refreshing my page in the background here to check it out because I believe it's yes 50% off on this week's product pick. So if it's something you're interested in check it out. Oh Hey, thanks John Milton John Milton pointed out a typo in my Is that in the YouTube that I put the wrong date? Let's see if I can fix can I fix that? I don't think I can while it's running. Let's find out. Yeah, sure. I said it was the fourth. I'm not Encouraging time travel. So let's let's correct that here we go. Oh save. Okay, that should update. Thank you John and hey, thanks everyone for stopping by over in the various chats I see you over there in YouTube. So hello Jeff Hunt and Paul Curry old aesthetic Quinn man 16 As well as John Milton. Hello. Thanks for stopping by the YouTube chat if you're somewhere else and you're wondering, hey Who's he talking to? Where's the chat? You might want to check out our discord which is over at a to through dot it slash discord and you can look for the live broadcast chat Channel right there and that's where some people are hanging out. So hello see Grover and Debo dog And blitz CD DIY. Hey, Liz. Hey Jeff. Hey thin man. Hello Jim. Hey Gavin, thank you for jumping in here and hanging out today All right, so this is Perhaps the shortest new new new video from Lady Ada that I have ever experienced so I'm gonna play you a 16-second New new new video from Lady Ada. She will just introduce it a little bit But then I'll give you a lot more detail on this week's product pick. So very briefly take it away Lady Ada. Oh It's our tft shield reborn like feet. Oh technical difficulties. Hold on you get to you get to Hang out here for a second while I Add the right video in all right. It's gonna auto play. Oh, it's our tft shield reborn like Phoenix from the flames This is one of the oldest boards. It did not make it through COVID slash part shortages slash tft pricing Inflation it's been a journey. So The AD 5693 we've had requests for more bits on the DAX People always emailing you. You know the email you get over the day. Where's my Where there's all that more bits we're 12 bit back now the 16 bit deck coming soon, but we got some photos taken The AD 5690. Yeah, I probably should loop it. It's so short Okay, let me give you a proper introduction because if you blink you'll miss it Here's Lady Ada introducing this week's product pick and that'll give you some more details. Here you go The AD 5693 we've had requests for more bits on the DAX People always emailing you. You know the email you get over the day. Where's my Where there's all that more bits we're 12 bit back now the 16 bit deck coming soon, but we got some photos taken The AD 5693 we've had requests for All right, that's enough looping of that. Yes. So there it is. There is my product pick for this week It is the AD 5693 are 16-bit DAX breakout board This has stem a QTE so it's really easy to connect up over I square C See I've got a little cutie pie plugged in here And then you can wire any kind of plug or terminal screw or combination of those things out or use the pins Put little pin headers on there put it into a breadboard or perma proto and you can send out Analog voltages. So this is digitally controlled DAC digital to analog converter It'll take your digital commands, which you can program inside of What can you program in it? You can program it in Arduino. You can program it in circuit Python Now you can also run it in Python using Blinka on our Raspberry Pi or similar computer and this will send out really really highly accurate Voltages so this is great for any case where you want to send out voltages anywhere from zero to three point three volts If you're using three volt logic or zero to five volts if you're using five volt logic And it has a very stable internal 2.5 volt regulator, which is also temperature compensated And so you can tell it to send really accurate really fine-tuned fine grained voltages. So let me Let me plug this back into the demo. We're gonna do in a second and I'll show you a couple of Nifty things about this, but before I do that, let me jump over to the Page here's the product page for this. So this is it's the 80 56 93 R breakout board. It says 16-bit DAC I square C interface you use that with STEM a QT quick cable And if you take a little scroll down, you will find a link to the learn guide so this is a pretty new board pretty new learn guide and Here it is. Thank you Liz for putting this together as well as the library and some examples for this So here's the product page. You can see beautiful picture of it right here notice right there at the top you have a little Optional this doesn't come with a terminal block But optional for one of the terminal blocks that we sell or you can just solder connections wires right onto it and You can use STEM a QT from the little JST ports on the side or you can solder in the header pins and put that down onto a board This is a let me let me grab my notes here because I want to give you a few little facts about it. So Here we are. So you've got 16-bit precision You can use up to two of these on one I square C bus There's a little jumper you can see it on the back there if you solder that shut you can Set the second address so you can you can talk to two of these on one I square C bus if you want And like I said, you can use this with 3.3 volt logic boards and get up to a 3.3 volt output or you can use this on 5 volt boards get up to a 5 volt output You can use gain settings inside of it to jump from the 2.5 volt reference up to your input voltage level up to the the 5 volts at max and We've got libraries for this so if you take a little scroll down head to the pinout page You can see what each of those pins are used for Let's see. Yeah, we'll talk about this for a second. Okay, so voltage in that is a Broken-out pad that you can use if you're plugging into a breadboard or protoboard Or that's the voltage coming in over your I square C So that'll be essentially your your maximum voltage depending on the type of board you're using V ref that's the voltage reference pin. So You can I haven't tried this But I believe there's there are cases where this works better than others where you can feed it a reference voltage Or you can pull that 2.5 volt reference off of there If you want to test it for some of the reason or use it elsewhere in your design And then we have the common ground pin. We have the I square C logic zero clock serial data There is the DAC output. So those are those two terminal block Positions that you see up at the top there as well as two other broken-out pins and that gives you your voltage And then there's the address jumper there. There's also a couple extra pins is the LDAC pin, which you can use a belief to set More permanent settings on to the chip things that you might set in your setup in your code You can have it boot with those settings It's also possible to give it a voltage level that you want it to always send as soon as it gets powered on So it doesn't just drop to nothing until it gets voltage once the the code starts so you can give it a Voltage setting that it'll always use and then there's also a power LED built onto there So as far as code and libraries go if you click on this circuit Python and Python link This will show you a nice little fritzing diagram How to set it up what all the pin assignments are? Either through the I square C Stem a qt cable or through the I square C pins as you see here with this example with a feather And then also how to set it up on your Raspberry Pi or similar single board computer and Then talks about the driver. So we have the library AD 56 9x and that will That covers a few different similar chips, but that's the one we're going to use for this one Which is the 56 93 And then it gives you some example code here and we'll go over some examples in a second. This is a nice one which Sets your I square C bus to a high speed Since this can use a higher frequency I square C bus Initializes the DAC and then in this case creates a little sine wave 100 sample sine wave which it'll then loop so you can see the essentially the full range from zero to the to the maximum value and there's a nice little image on a oscilloscope with the sine wave coming out of it and then of course we have Arduino for it as well So similar setup for how to plug it together and get your libraries ready to use with this Arduino sample code so let me Take some questions in the chat actually so the Question from Tyeth how would this function for synthesizing audio? So this is a great question This is not since we're running over I square C. We're not going to run really high frequency stuff So we're not really going to get into audio rates Unless you have really good hearings we can get into like the 20 Hertz kind of range pretty low low frequency But it is excellent for creating voltages that can be used to modulate things and synthesizers So in fact a demo or show you'll hear some Synthesized sounds which are made with a proper audio rate oscillator, but we can use this DAC to Send either pitch information, which is a volt per octave for pitch or just modulate things to essentially Twiddle knobs for us with the with the DAC So, oh hey Cripnip Cripnip said they just got their first 16-bit bit DAC in the mail today. Whoo way to go Uh Pete Curry in a hurry says three octaves of quantized one volt per octave should be possible then yes And I'll demo that we'll be able to do three octaves of pitch information with this And you get up to five octaves if you used a board that's at five volt logic like an Arduino. Okay, so How about some demos? Let's jump over here to Demo land okay, so you can see here in fact, let me let me give a full view Of the board So you can see here. I've got the DAC board 16-bit DAC board I have it plugged into a QT pie over stem of QT and then output I have the screw terminals going to a little stereo or actually a mono jack a little 3.5 millimeter mono jack and that's heading out to three things so we have a Scope little oscilloscope here. We have a multimeter here showing the voltage and then I also have it plugged into a Synthesizer, so I'm gonna just set my Offset on this oscilloscope to drag the center line down a bit so we can see it so it's already doing stuff here So that's the setup. Let me Show you some things in code and I'm also gonna turn on a little audio So I'm gonna take a moment and just see if anyone can Let me know how the audio levels are I want to make sure that you can hear That sound as well as my voice still I want to yammer on too much happy. Here's this time. Thank you so much All right. Yeah, let's go forward. Okay, so what I'm gonna do. I'm just gonna I've got this Plugged in and ready to go. So I'm gonna resave my code Okay, so now here's what we have I am telling the DAC right now to send out one volt so That means that I'm seeing one volt show up on my multimeter here And I'm seeing essentially a steady line on the oscilloscope and this is at the one volt level and you're hearing that the One volt is being used by my little synthesizer off to the side to tell it what note to play So that's our sort of baseline Now you can see the way this is set in code is this DAC value So if I set this DAC value to let's say it's maximum number which this is 16 bits so I can do 65 five three five And I'll go ahead and save that Okay, so that's that 3.3 volt level And in fact, we don't even need to go that high at 3.3 volt with gain times 2 which is more in the weeds I want to get But that is giving us the sort of top Voltage that it can do let's lower that because that's really annoying. I'm going to go to octave zero So I had some things Pre-saved here so octave zero is sending out zero volts Which you can see here on my meter and on the scope So if I go up to octave one, this is sending this 16-bit DAC command of set the value to 13 120 which is What I calibrated to be one one volt so pretty typically when you're taking a digital to analog converter If you're trying to get really precise so that pitches match then it might not be mathematically Exactly what you expect and in this case we're dealing with I think 15.4 bits because of the 3.3 volt DAC or rather input reference voltage that I'm using so we're setting that 2.5 up to the gain 2 which brings us up to 3.3 So this is nice. We can go and send it individual values and then we can loop through stuff Which is what you heard at first so I'm going to go ahead and uncomment this and what I'm going to do is tell it go from one octave to two octave and let's Just increment one Of the 16-bit values per loop and I'm going to take this delay out of here So it should sweep really continuously and smoothly so listen to this See we get a really nice smoothie and hear it better than you can see it on my multi meters It's a digital meter Now I have it stepping down so those steps you're hearing by the way that's that that smooth thing That's the DAC performing beautifully at giving really precise voltages When I'm stepping down, I'm actually telling it to move in semitones. So again through some math plus Some real calibration. I came up with 1093 as a semitone step for this so Let's look at a different example here and what I'm going to do is instead of adjusting my Turn the volume down instead of adjusting my pitch with this I'm going to say okay We'll leave the pitch alone, but let's twiddle a knob. So here's what our starting point is so I'm gonna Okay, so I've unplugged the DAC Output so this is just my my little synthesizer doing its thing and if I turn a knob Let me go to a different. Yeah, this is busier. You can hear there's a Sort of wave-shaped change that's causing some harmonics So instead of me turning that knob by hand now what I'll do is let's just plug the same Same wave we had going Out from I'm gonna grab a cooler sketch for this which is sort of a low-frequency oscillator designed for This type of output this in here Now watch my scope. So I'm doing a fast sine wave Then I'm doing this kind of stepped wave and then I'm doing a much faster So I go to a different type of effect with it. You can see we're sending out some really cool stuff And we have the precision with the 16 bits to it's if it's a sound if it's a modulation This can do it and it's just plain fun to watch that on the scope there So Let's see. Oh cryptic says I have a fun synth you can use oh man There there there are so many fun uses for this sort of thing and and just look at this You can package up a nice little teeny thing here Especially if you put this together on a little board maybe added a battery to it You can have yourself a fun little DAC that will give you really precise precise results Which is which is really terrific? Let's see. What else did I want to show you? Here's some here's some lovely product pictures of it by the way so you can see a little more clearly some of the outputs there that we're using and Let's see what else did I did I miss anything someone asked by the way in oh, yeah Konstantinopoulos asked in YouTube is there a discord server and they found it so for anyone else who didn't it's at a to Fru I t slash discord and you'll get an instant invite and then look for the live broadcast chat channel and welcome Yeah, miss. Thank you for stopping by Let's see any other questions in the chat let me know He created a hurry. Yeah for some of that I was doing a chromatic Semi-tone sort of quantized so I was sending it those increments, and then you heard when I was just sending it free Free values that weren't quantized any musical values See anything else Is it also meant to drive an LED he says ask Sam J. Ohio. Oh, let me bring up the discord chat By the way, that's an excellent question. I don't know what the current Output is on this. Let me see if that's a an obvious thing to find on the product page And if anyone knows let me know we might need to look at the data sheet for that as well I'm not sure what kind of current This is capable of so I'm not sure about driving LEDs. Oh, thank you type says 20 milliamps. So yeah one LED It's a it's a lot of it's a lot of DAC for for dimming an LED So you you may be better off with other strategies like our current constant current drivers or even just PWM Because you're really not going to drive more than one LED from this Right so What else anything I missed Let me know those were yeah, those were the code samples I wanted to show And and if you look actually let me let me go back to one other real simple example here Let's jump to this view right here, and I'm gonna Copy and save that onto there So here is The basic setup of this all you need to do is import the drivers or the library Adafruit ad 56 9x Set up your i-square c bus you can see in this case. We're going up to the high frequency and then To create the DAC object you simply say DAC equals Adafruit underscore eighty fifty six nine x die Adafruit ad 56 9x on i-square c And then you can feed it a DAC value so any number up to sixty five thousand five hundred and thirty five It'll send out that voltage This one right now. Let's Let's adjust the code here We'll set it to the max This should give me two point five volts that restarts It is not why is it not what did I do wrong is that really running yeah, that is all right Let's get disconnected. What have I done? Do one Quick change here. There we go. So there's something going on. Liz actually is working on the library I think I had a sort of unofficial version running on here So it was not it was setting the gain to zero. I think if I didn't specify So this DAC gain allows you to set either at false It'll use the internal reference two point five volts if you set it to true It will attempt to essentially do a 2x gain So if you have five volts logic and five volts coming in it will go to the to the full five volts on the Three-volt logic it'll go up to three point three as the maximum But you can see here at the reference. This is the two point five It's giving me two point five when I put that up the top if I Let's say have that We should get one point two five you got one point two five volts So it's very easy to set just give it a number and out outcomes your voltage And then you can really have fun giving it different input different types of knobs and sliders sequences Some randomization anything you want Let's see Peacry and hurry says if I chain to the DACs with two addresses, how do I get both of them? I haven't tried it So that's a great question. I would think you're gonna set the address Equals For one of them, maybe call that DAC one and then a second one address equals whatever that second address is I believe that'll that'll work and I think there's an example of some of that code in the In the learn guide also DJ Devon 3 said a multiplexer would allow you to chain them Yeah, I'd be another another way to do it with the same address and you could get more of them on to onto one micro controller Alright, I think that's gonna do it. So before I go remind you head on over here this is The page for our lovely little DAC here and you get it for five dollars 48 cents It's a really nice really nice DAC high-quality 16-bit DAC that you can get for quite a bargain here today maximum of 10 So if you have big big plans, then this is a great time to Snag yourself a bunch of DACs and go to town with those Alright that is gonna do it then let me unplug this pull that out of there and That is my product pick of the week this week. It is the AD 5693r 16-bit DAC breakout For Adafruit Industries, I'm John Park and this has been JP's product pick of the week and I'll see you next time. Bye. Bye