![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
calib sensor
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:cb4f2b95e2a7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Feb 18 18:49:36 2017 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +/* + This basic program could be usefull to calibrate the IR_Sensor + Run the program , bet a dark target with the sensor and roatate the trimmer until the second led on the PCB with the sensor shutdown. + +*/ + +AnalogIn ir(A2); + + +DigitalOut led(LED1); + +int main() +{ + float lettura=0; + while(1) { + lettura=ir.read()*3.00; + printf("lettura = %f\n",lettura ); + + } +}