Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. float V;
  2. float V_T;
  3.  
  4. void setup() {
  5. Serial.begin(9600);
  6. }
  7.  
  8. void loop() {
  9. analogReference(DEFAULT);
  10. V=analogRead(A5);
  11. V_T=V*5/1024/0.01; //Formula per la taratura
  12. Serial.println(V_T);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement