ESP32 and ADS1115 ADC- Voltmeter project

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello in this video i will test this external analog to digital converter and here is my simple test project simple voltmeter if i compare it with real voltmeter you will notice that her results are pretty the same sometimes there can be a different of a couple millivolts right now my voltmeter and my multimeter i are connected together and to my power supply and when i when i change voltage you can notice practically the same results there is only slightly difference but i have more than 10 multimeters and they will all give different results on a third decimal so i'm pretty happy with accuracy of this little guy analog to digital converters are used to convert analog signal to digital signal and most development boards have or maybe it is better to say most microcontroller have a built-in analog to digital converters but if you want something more precise you will need an external adc for example arduino uno has a 10 bits adc with with a 10 bits maximum range is 1000 1024 so if you feed the 5 volts to analog pin voltage will be represented as a number between 0 and 1024 so if i connect uh 5 volt to an analog pin i will get 1024 and if i connect two and a half volts i will get 512. but uh life is not perfect in reality you will never get exactly 5 volts from 5 volt pin and 10 bit resolution is not that great esp have even better resolution adc uh 12 bits but there is problem with voltage reference uh results are not linear after 2.5 volts and so on i will not go in details but esp32 have a bad analog to digital converters with this module i have much better results this module is based on a ds-1115 chip which is a 16-bit analog to the digital converter with microcontroller or with board is uh is done using i square c protocol so it is very easy to use and connect in code you can set different voltage references and i choose to use 4.096 volts voltage reference in this simple setup voltage is shown as a value between 0 and 32 752 there are a few settings you can try to set in the library but i wanted to make this to make this simple code is in description so feel free to check it out as you can see in code i used only simple map no software calibration external components magic force or similar is used i'm not using a voltage divider right now this lead is connected directly to a0 pin so i can measure only voltages between 0 and 4.0 96 volts if i try to measure higher voltages i can damage this module or even esp32 board keep in mind that if you want to build this with the voltage divider i could measure higher voltages but i will use accuracy this was a just testing project i'm not trying to replace my multimeters but this can be useful for i don't know testing batteries and also to monitor voltage of something for example or some solar kit or something i don't know don't forget that this is esp32 so you can always send the data to your phone cloud server or something like this regular multimeters can't do that connection is very simple i'm powering this module with with 5 volts from my usb or from a vein from a voltage in pin on esp32 ground is ground serial clock is connected to pin 22 and esp32 serial data is connected to pin 21 on uh esp32 so default i square c pins and that's it is this red lead is connected to a0 and black lead is connected to ground if you want to learn how to connect this good looking tft display you can find many videos on my um on my channel and also feel free to subscribe and don't forget to check links in description so that's it for today i hope you like my little voltmeter code is free like always feel free to play with it and tell me what you think overall this is very useful module to have when you need better precision and when you need to monitor i don't know some analog values from many different sensors or or if you just want to measure voltage of something i'm still learning how to use it properly because there is many function in library but we will see what i learned in future videos thank you goodbye and have a nice day i hope you like my little meter goodbye
Info
Channel: Volos Projects
Views: 51,623
Rating: undefined out of 5
Keywords:
Id: u-1TRpLGH04
Channel Id: undefined
Length: 7min 45sec (465 seconds)
Published: Tue Apr 12 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.