How To Make Arduino Ohm Meter - Kiyani Solutions
How To Make Arduino Ohm Meter - Kiyani Solutions
Step 1 :
First we need to connect 16×2 LCD to Arduino, pin number 1, 5, 7, 8, 9, 10, and 16 of the LCD
goes to ground and its pin number 2 and 15 to 5V supply of Arduino and pin number 4, 6, 11,
12, 13, 14 of the LCD goes to pin d2, d3, d4, d5, d6, d7 of Arduino respectively. Now we need to
connect a 2.2 k resistor to pin number three of the LCD and ground to control the contrast of the
LCD display, we can also use 10K trim pot for variable contrast control. Now we need to connect
a 1k resistor to pin A0 of Arduino and ground. To test an unknown resistor, we need to connect
is to pin A0 of Arduino and 5V pin of Arduino.
Step 2:
Now connect the Arduino to you PC and upload the code to Arduino
Arduino code
Copy
https://kiyanisolutions.com/how-to-make-arduino-ohm-meter/ 1/3
18/03/22 18.33 How to Make Arduino Ohm Meter - Kiyani Solutions
#include <LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
int analogPin = 0;
int raw = 0;
int Vin = 5;
float Vout = 0;
float R2 = 0;
float buffer = 0;
void setup(){
lcd.begin(16, 2);
lcd.setCursor(0, 0);
void loop(){
raw = analogRead(analogPin);
if(raw==0){lcd.setCursor(0, 1);
if(raw){
Vout = (buffer)/1024.0;
buffer = (Vin/Vout) - 1;
R2 = R1 * buffer;
lcd.setCursor(3, 1);
if(R2>999.99){
lcd.print(R2/1000);
}else{
lcd.setCursor(3, 1);
Components:
1 X Arduino Nano https://s.click.aliexpress.com/e/_dW4c8vp
1x 16X2 LCD https://s.click.aliexpress.com/e/_dTNRVcG
1x 2.2K Resistor https://s.click.aliexpress.com/e/_dW4c8vp
1x 1K Resistor https://s.click.aliexpress.com/e/_dW4c8vp
jumper wires https://s.click.aliexpress.com/e/_d7tugcP
Circuit Diagram:
https://kiyanisolutions.com/how-to-make-arduino-ohm-meter/ 2/3
18/03/22 18.33 How to Make Arduino Ohm Meter - Kiyani Solutions
Gerber Files
Arduino Code
...
https://kiyanisolutions.com/how-to-make-arduino-ohm-meter/ 3/3