ADS1115 4 Channel ADC & PGA With I2C Interface

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's happening guys what we're looking at today is the uh 16bit ADC that I bought from Teemo a couple weeks ago this is an ads 1115 chip and as you can see there from the connections sdl SDA it's i squ c and you can see from the next pin address that we can change the address of it so you can theoretically run multiple of these units which as you can see have four channels which can be configured as four single-ended channels or two differential channels and that is really cool now I have them set up here on the Arduino uh as a single-ended okay so we have a one input line going here and then these are our two squ C lines going back to the Arduino here I just have a potentiometer plugged into VCC and ground and it is acting like a voltage divider so I can send a uh differing voltage signal over to the Arduino all right so what I'm going to do now is I'm going to bring up uh a separate window here so you can see the output from the Arduino we can talk a little bit about this okay so now you have a screen down here you can kind of see what's going on so you have actually the the program you can see the entire program there except for the top line which just says include wire which is the i squ c um if you look over there at the box it says com22 that is our serial port and all the way at the bottom you see the current value which is 2. 3801 blah blah blah blah very nice digit Precision on there so anyway what I've done here on the Arduino is I just put this potentiometer here so if I turn it well now we're maxed out and it is reading uh 4 64 or so let's uh let's hook up a multimeter get everything in here hook up a multimeter and we'll be able to uh get kind of a running what's going on anyway I bought this like I said from teu it was uh $348 which is I think a pretty dog on good deal for a 16bit ADC this I squar C right and yes it comes with a complete manual just like the other ones in what English um French German Spanish Italian and an Asian language quite possibly Korean but I don't know so anyway there you go you can see we are reading 4.68 volts there 4.62 volts there yeah there's there's a discrepancy there's always going to be a discrepancy all right let's adjust our potentiometer here take it down take it down take it down try about right about 1.8 volts we're getting 1.83 on the ADC we see 1.85 here is pretty good take it down see we get like one Volt or how about a half a BT yeah it's looking good we see see our reading over there we see our reading here so everything's pretty good but Paul you say the Arduino has an ADC true it does it has a 10bit ADC which gives you a maximum value of a one 24 right and a 16bit ADC gives you a maximum value of 65,000 35 whatever that whatever the 65 number is can't recall it off the top of my head so if you're going to use this within Arduino what it gives you is a ton more Precision but where really makes sense to use it is with a Raspberry Pi that doesn't have an ADC now you have four ADC lines or you know two you want to focus there you go then I hit the camera you can have either four single-ended ADC lines or two differential ADC lines which gives you oh even even more Precision that mean I love it this is a really really tiny little package here and like I said it uh comes with full documentation 30 300 reads per second um programmable gain amplifier you know if you look uh at the uh where that you know the screen over there look down where it says under serial begin you see it says ads set gain I have it set for 2/3 there's your programmable gains you can set all of those gains and it tells you what each bit will be so currently we have our gain at 2/3 where one bit is equal to 1875 molts and that's your program will gain amplifier which allows you to take very very very small readings and translate them into uh something that can be useful so I think that is pretty cool I think the price is super cool for the functionality it adds to devices like a Raspberry Pi that don't contain an ADC uh I'm not sure about the esp32 I'd have to I'd have to check that out but hey even if you want more like you know on your Arduino you have Focus there you go you have seven analog pins a z we have eight a z through A8 right come on why don't you focus there you go a z through eight so you have those analog pins well if you're using all them for something you know what you can uh trade two of them for four more and you can chain these they are absolutely Daisy chainable all you need to do is give them each their own voltage and ground and then all of the uh address lines the serial and the clock will be parallel connected back to the Arduino or whatever microprocessor you're using and then this address line here can go high low or you know in the middle to give you the different addresses and you can have up to four of these on your system you know giving you uh a multiple more analog reads yeah pretty cool I will place a link to it down below you guys can uh check it out at your leisure and if it's something you like you know something you can pick up good to throw in the toolbox all right I hope you guys enjoyed this if you did give me a thumbs up feel free to comment share and don't forget to subscribe big thanks to all the patrons big thanks to you guys for watching that's it I'm out peace
Info
Channel: learnelectronics
Views: 3,534
Rating: undefined out of 5
Keywords: temu, arduino, analog, digital, adc, ads1115, raspi, raspberry pi, 16 bit, i2c
Id: tmVbPqSIUu8
Channel Id: undefined
Length: 7min 55sec (475 seconds)
Published: Fri Dec 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.