I’ll be using a HD44780 character LCD to display the voltage output and a 10k potentiometer to vary the input voltage going into the analog input. The Arduino analog inputs can only take in maximum of 5 Volts. Any higher than that you’ll risk burning the Arduino.
Here’s the code :
That’s what I love about Arduinos, it is really really simple to program. The Arduino library is huge and you will often find what you need in the library without having to write your own. Oh yeah, this is the circuit and I’ll compare the readings with my trusty voltmeter in real-time.
I’m starting to like the Arduino Nano and I find myself using it more often than my Uno. If you haven’t read my previous posts about Arduinos, I do have two Arduinos, the Uno R3 and this, the Nano V3.0. First, is because the Nano plugs into a breadboard which is perfect for prototyping and secondly, the Uno R3 is expensive and I don’t want to risk ruining it if I did anything silly.
Without further ado, this is a video showing how the code works :
Thanks for reading 🙂