Visualizando la temperatura a traves de la adquisicion de señal en el canal A0 usando el sensor de temperatura LM35

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
diego_27
Date:
Tue Nov 30 19:17:47 2021 +0000
Commit message:
Visualizando la temperatura a traves del canal ADC con un sensor LM35

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 30 19:17:47 2021 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+Serial bt(PA_9,PA_10,9600);         //Comunicacion con el modulo HC-06         
+AnalogIn T(A0);
+int main(){
+    float t=0;
+    while(1){
+        wait(.2);
+        t=T.read();
+        t=(t*6)*100;
+        bt.printf("Temperatura en Orizaba, Veracruz es de: %f  \r\n", t);
+        }
+    
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 30 19:17:47 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file