Daily Archives: 09.02.13

Arduino and infrared reflective sensor

Testing a infrared reflective sensor module. I set it up with an arduino board, running the following sketch: int sensorPin = 10; int value = 0; int prevval =0; int count=0; void setup() { pinMode(sensorPin,INPUT); Serial.begin(9600); } void loop() { … Continue reading

Posted in arduino | Comments Off on Arduino and infrared reflective sensor