Summary of Arduino Voltmeter With OLED Display
Concise summary (under 100 words): This guide shows how to build a simple Arduino UNO voltmeter with an SH1106 1.3" OLED, a two-resistor voltage divider, and jumper wires. It explains required parts, wiring the OLED to Arduino SPI pins, constructing the divider (100k to ground, junction to A0, 10k to measured source), and uploading code using the Arduino IDE and U8glib library. The meter measures 0–50 V (exceeding this may damage the Arduino).
Parts used in the Arduino Voltmeter:
- An Arduino UNO board
- OLED display - 1.3 inch 132x64 with SH1106 controller
- Resistor 100k
- Resistor 10k
- A breadboard
- 9 jumper wires
Hello !
I’m going to show you how to make a voltmeter* with Arduino UNO, an OLED display, 2 resistors and 9 jumpers for less than 5 minutes. With it you will be able to measure Voltage from 0 to 50V (if you exceed it you may damage your Arduino !). Lets begin !
*”A voltmeter is an instrument used for measuring electrical potential difference between two points in an electric circuit” – Wikipedia
Step 1: Parts and Software
For the voltmeter you will need:
- An Arduino UNO board
- An OLED display – 1.3′ 132×64 with SH1106 controller
- 2 resistors – 10 k and 100k
- A breadboard
- 9 jumper wires
You will need the Arduino IDE that you can get from:
https://www.arduino.cc/en/main/software
and the U8glib library for the OLED that you can get from:
https://code.google.com/archive/p/u8glib/
or
https://github.com/olikraus/u8glib
Step 2: Making the Voltmeter
I order to measure voltage we will a build a simple voltage divider, but first place the OLED board on the breadboard. Then connect pin 13 to CLK, pin 11 to DIN, pin 9 to CS, pin 8 to D/C and pin 7 to RES.
Pins: 13, 11, 9 are the SPI Bus of the Arduino UNO board.
Now we build the voltage divider, plug the resistors on the breadboard and connect them for each other, the other side of the 100k resistor connect to ground, the connection between both reistors to analog 0 and the other side of the 10k resistor to the source you wish to measure, like on the schematic above.
After that move to the next step.
Step 3: Code
In this step, we are going to see how to program the voltmeter that you just built. You can find the whole code for the voltmeter on the corresponding GitHub repository: https://github.com/KonstantinDimitrov/Arduino_OLED…
We are now going to program the board. The first step is to plug in the USB cable in the board and the other side in your PC.
Read more: Arduino Voltmeter With OLED Display
- What parts are needed to build the voltmeter?
An Arduino UNO, a 1.3 inch 132x64 SH1106 OLED, 100k and 10k resistors, a breadboard, and 9 jumper wires. - What software is required to program the voltmeter?
The Arduino IDE and the U8glib library for the OLED. - Which Arduino pins connect to the OLED?
Pin 13 to CLK, pin 11 to DIN, pin 9 to CS, pin 8 to D/C, and pin 7 to RES. - How is the voltage divider wired?
The 100k resistor connects to ground, the junction between 100k and 10k goes to analog A0, and the other side of the 10k goes to the measured voltage source. - What voltage range can this voltmeter measure?
It can measure from 0 to 50 V; exceeding 50 V may damage the Arduino. - Where can I find the voltmeter code?
The full code is available on the project GitHub repository linked in the article. - How do I upload the code to the Arduino?
Plug the Arduino into your PC via USB, open the Arduino IDE with the project code, and upload to the board.
