##// END OF EJS Templates
ADC-v1...
JesusTapia-dev -
r1:fa5f54c0f1e9
parent child
Show More
@@ -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 }
@@ -1,2 +1,2
1 # Codigos-Tesis
1 En este repositorio se encuentran los códigos para la conversión analógica digital.
2
2
General Comments 0
You need to be logged in to leave comments. Login now