@@ -0,0 +1,19 | |||
|
1 | #define pinADC 15 | |
|
2 | int analogValue=0; | |
|
3 | //int IPP=; | |
|
4 | float Vout=0; | |
|
5 | int VminPot=1;//con esto quiere decir que potencias | |
|
6 | float Vref=3.3;// Voltaje de referencia | |
|
7 | void setup() { | |
|
8 | Serial.begin(115200); | |
|
9 | } | |
|
10 | ||
|
11 | void loop() { | |
|
12 | // put your main code here, to run repeatedly: | |
|
13 | analogValue = analogRead(pinADC); | |
|
14 | Vout = analogValue * Vref / 4095; | |
|
15 | Serial.print(Vout); | |
|
16 | Serial.print(" "); | |
|
17 | Serial.println(VminPot); | |
|
18 | ||
|
19 | } |
General Comments 0
You need to be logged in to leave comments.
Login now