0% found this document useful (0 votes)
206 views4 pages

Arduino OLED Voltage Meter

This document describes how to build an Arduino OLED voltage meter. It includes a list of materials needed, schematic diagrams, code to display the voltage reading on the OLED screen, and photos of a demo. The voltage meter takes an analog input from pin A0 on the Arduino, converts it to a voltage reading between 0-5V, and displays the reading on a connected 128x64 pixel OLED screen. Instructions provide the code, library, and wiring needed to measure and display voltage readings in real-time.

Uploaded by

Danish Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views4 pages

Arduino OLED Voltage Meter

This document describes how to build an Arduino OLED voltage meter. It includes a list of materials needed, schematic diagrams, code to display the voltage reading on the OLED screen, and photos of a demo. The voltage meter takes an analog input from pin A0 on the Arduino, converts it to a voltage reading between 0-5V, and displays the reading on a connected 128x64 pixel OLED screen. Instructions provide the code, library, and wiring needed to measure and display voltage readings in real-time.

Uploaded by

Danish Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

technology workshop craft home food play outside costumes

Arduino OLED Voltage Meter


by neranjan.ghost on July 23, 2015

Table of Contents

Arduino OLED Voltage Meter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Arduino OLED Voltage Meter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Things That you going need for this project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 3: Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

http://www.instructables.com/id/Arduino-OLED-Voltage-Meter/
Intro: Arduino OLED Voltage Meter
Arduino OLED Voltage Meter is a simple code that i wrote to read analog input and convert in to voltage and show up on OLED Display this device can be use to check 0
– 5V DC

Step 1: Things That you going need for this project


i2C 128x64 OLED Display

6 X Jumper wires

1 X 1M Resistor

1 X Arduino Uno

1 X Project Board

Image Notes
1. Jumper Wire
2. project board
3. Arduino UNO
4. 128x64 OLED 0.96" IIC/I2Ca
5. 1M

Step 2: Schematics
connect all components as shown on the schematics

http://www.instructables.com/id/Arduino-OLED-Voltage-Meter/
Step 3: Code
you can download Arduino Sketch by click this link below:
https://github.com/NJ-Ozz/Arduino-OLED-voltage-rea...

You also gonna need this library for OLED Display :

https://github.com/adafruit/Adafruit_SSD1306

CODE :

/*code by Neranjan Walakulpola


for more help and diagram visit http://www.http://circuitfreak.net/index.php/2015/05/05/arduino-oled-voltage-meter/ */

#include #include #include #include

#define OLED_RESET 4 Adafruit_SSD1306 display(OLED_RESET);

#if (SSD1306_LCDHEIGHT != 64) #error("Height incorrect, please fix Adafruit_SSD1306.h!"); #endif

void setup() {

// Set up the display display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Initialize with the I2C addr 0x3D if not working use 0x3C (for the 128x64)
display.setTextColor(WHITE);

} void loop(){

delay(1);//delay time 1 mili second display.clearDisplay();

display.setTextSize(1);//text size display.setTextColor(WHITE);//text color display.setCursor(0,0); display.println("Analog Read V1.0");//display out text 1st line
display.setTextColor(BLACK, WHITE); display.println(); display.println("A0");//define analog pin display.setTextSize(1); display.setTextColor(WHITE);//text color
display.println(); display.setTextSize(2);//text size display.setTextSize(2);//text size int sensorValue = analogRead(A0); // Convert the analog reading (which goes from 0 -
1023) to a voltage (0 - 5V): float voltage = sensorValue * (5.0 / 1023.0); // print out the value you read: display.print(voltage); display.println("V"); display.display();

Step 4: Demo
Hope you found this use full for you as a beginner if you have any question leave a comment thanks watching this keep coding ;

visit:

http://circuitfreak.net

for more projects

http://www.instructables.com/id/Arduino-OLED-Voltage-Meter/
Advertisements

http://www.instructables.com/id/Arduino-OLED-Voltage-Meter/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy