akk47
Published © MIT

Digital electroscope with arduino -

I thought of making my very own digital electroscope using arduino to detect charges on object in volts !

AdvancedFull instructions provided700
Digital electroscope with arduino -

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Solderless Breadboard Full Size
Solderless Breadboard Full Size
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

Code

Code for digital electroscope with arduino

C/C++
/*
 * This code is written by Aryan Kurkure ;
 * It has been given MIT license ;
 * If this code is shared it may be used with considerable importance ;
 * For making a digital electroscope;
 * Learning arduino with aryan , all rights reserved .
 * To see more projects go to - https://www.youtube.com/channel/UCvzUMpZFM8wyFQIDD_b3TPQ/videos .
 * Subscribe to learning ardunio with aryan to get more projects .
*/

//Add the lcd library as we are going to use it.
#include <LiquidCrystal.h>

//Create a lcd object for using it later in the code for connecting, printing etc.
LiquidCrystal lcd(12,11,5,4,3,2);

//Create a connection.
const int sensor = A0;

//Create a variable for storing A0 pin's value .
int value;

//Create a variable for charges in volt .
int charges;

void setup() {
  // put your setup code here, to run once:

  //Start the lcd screen and classify its size .
  lcd.begin(16,2);

  //classify the A0 pin as input .
  pinMode(sensor,INPUT);

}

void loop() {
  // put your main code here, to run repeatedly:

  //Read the values from A0 pin .
  value=analogRead(sensor);

  //Change the value to charges .
  charges=value/204.6;
  
  //Set the cursor for 1rst line .
  lcd.setCursor(0,0);

  //Print on the screen .
  lcd.print("Electric charges");

  //set the lcd cursor to 2nd line for printing values .
  lcd.setCursor(0,1);

  //print value .
  lcd.print(charges);

  //print 'volts' symbol after value .
  lcd.print(" Volts");

}

Credits

akk47

akk47

7 projects • 9 followers

Comments