In this video, I am going to show how to build an Arduino voltmeter with Arduino, tft shield, tft display and ADS1115.
--------------------
CODE AND LIBRARIES
--------------------
CODE - https://github.com/HX2003/arduino_voltmeter
UTFT LIBRARY - http://www.rinkydinkelectronics.com/library.php?id=51
URTOUCH LIBRARY -http://www.rinkydinkelectronics.com/library.php?id=92
ADAFRUIT ADS1X15 LIBRARY -https://github.com/adafruit/Adafruit_ADS1X15
--------------------
Welcome to another video! This is hx2003 and for today we are going to build an Arduino voltmeter, it is very useful and practical project.
Let’s get started.
With this project we can measure voltage of, lets say a battery and put it in into graph, lets see the project in action.
On the tft display, we can see a graph showing up with a few more buttons.
I have connected the positive and negative terminal of the rechargeable battery to the voltage sensor module’s pins.
You will see the voltage, it is _____.
We can clear the graph, stop and start the graph measurement and also control the scale the graph.
And if we compare the readings with a Multimeter, we can see that the reading is spot on!
Take note of the maximum input voltage of the voltage sensor 5 volts or it could damage our board. If we need to increase the voltage range of our voltmeter, we can add a simple voltage divider and some minor edits to the code. From my experience, it did not work when resistor had a value of 10k, so use higher values like 150k.
To build this project, we need an Arduino due or mega, an ADS1115 voltage sensor, 40pin type tft touch screen, with a resolution of 480 by 272 pixels, with ssd1963 driver, and tft shield, the one i’m using is the ElecFreaks TFT LCD MEGA SHIELD V2.2 This shield works even though am using a arduino due for it’s faster processing speed. Just take note if you are using this shield on the arduino due, the spi pins for the sd card need to be rewired. And some wires.
The ADS1115 has a 16bit analog to digital converter, 0.1875mv resolution much more resolution than the standard arduino boards.
For the connections, simply connect the VCC and GND on the ADS1115 to the arduino power supply and the ADDR pin to ground. Connect the sensor’s sda and scl pins to the arduino’s sda and scl pins. Add a resistor between A0 and A1 of ADS1115 to avoid floating pins. Then plug in the the tft shield and the tft display.
On to software side of the project, as you can see, the code is simple, all we need is a library for the tft display and the voltage sensor, links of the libraries and code will be in the description. All we do is perform some calculations and display it onto the display. You may need to calibrate the touch screen, to do so, use the URTOUCH library, calibration sketch example.
In all, it is a easy project to build, useful and educational. Thanks for watching. I hope you enjoyed this video, don’t forget to like, comment and subscribe.
--------------------
EVEN MORE PROJECTS
--------------------
Arduino tft lcd colored bar meter + FREE CODE!!! -https://www.youtube.com/watch?v=8HfOyRfHlAU
Arduino tft lcd Displaying images -
https://www.youtube.com/watch?v=q0QXTGRck58
Arduino tft lcd running UTFT Demo on SSD1963_480 -
https://www.youtube.com/watch?v=lCTX-ffS2Wk
Arduino wifi clock using Arduino nano and WeMos wifi module -
https://www.youtube.com/watch?v=0WTqW8or9c8
--------------------
Thanks for watching this video! Let me know what you think by rating and commenting on this video.
Find me on Twitter►
https://twitter.com/theHX2003
Subscribe here►
https://www.youtube.com/channel/UCPamkQrA83zUnGIO8go73eA?sub_confirmation=1