diff --git a/ADC_ZX47/ADC_ZX47.ino b/ADC_ZX47/ADC_ZX47.ino new file mode 100644 index 0000000..032236f --- /dev/null +++ b/ADC_ZX47/ADC_ZX47.ino @@ -0,0 +1,19 @@ +#define pinADC 15 +int analogValue=0; +//int IPP=; +float Vout=0; +int VminPot=1;//con esto quiere decir que potencias +float Vref=3.3;// Voltaje de referencia +void setup() { + Serial.begin(115200); +} + +void loop() { + // put your main code here, to run repeatedly: + analogValue = analogRead(pinADC); + Vout = analogValue * Vref / 4095; + Serial.print(Vout); + Serial.print(" "); + Serial.println(VminPot); + +} diff --git a/README.md b/README.md index b3b156c..f832766 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Codigos-Tesis - +En este repositorio se encuentran los códigos para la conversión analógica digital. +