Mesuring Voltage Using Arduino Uno

Arduino

 

Previous Videos -:

Use Joystick With Arduino uno Sinhala Tutorial -: https://youtu.be/E2htKrY6bco
10 Arduino Projects You Can Build – https://www.youtube.com/watch?v=I4PzAHVIRXg
Arduino Pid Sinhala Tutorial – https://www.youtube.com/watch?v=0kfkOexfid0
Arduino Sinhala PIR Sensor Tutorial – https://www.youtube.com/watch?v=31I9ww6760Q
Arduino Sinhala Keypad Tutorial – https://www.youtube.com/watch?v=7hVn8Ur9Sx8
Arduino Sinhala Servo Tutorial – https://www.youtube.com/watch?v=yxEWI1EB8QQ
Best Arduino Simulator – https://www.youtube.com/watch?v=T40z48wRRxQ
Arduino LCD Tutorial – https://www.youtube.com/watch?v=-2ZLAm6ipbg
Shrinking Arduino Project Using Attiny – Makelk – https://www.youtube.com/watch?v=ePAq56opTqU

Code – :

  1. int v = A0;
  2. float vout = 0.0;
  3. float vin = 0.0;
  4. float r1 = 30000.0;
  5. float r2 = 7500.0;
  6. int val = 0;
  7.  
  8. void setup() {
  9. pinMode(v,INPUT);
  10. Serial.begin(9600);
  11. }
  12.  
  13. void loop() {
  14. val = analogRead(v);
  15. vout = (val*5.0)/1024.0;
  16. vin = vout/(r2/(r1+r2));
  17. Serial.println(vin);
  18. delay(500);
  19. }

2 Comments

  1. Minura Kavishanka 3 Oct 2018 5:32 pm

    PDF document danna puluwannam godak hodai.ilagata bluetooth module eka karanna.

    • Crazzy Doo 12 Oct 2018 1:50 pm

      Thnx for your reply minura , PDF plwn unoth danna try ekak dennm, oyt youtube go app eka pawichchi karanna plwn data aduwen balanna one nm, aniwa ilagata bluetooth module eka gana video ekak hadannm, thanx

Leave a Reply

%d bloggers like this: