I am new to Arduino. I want to connect Spark fun Photo Interrupter with Arduino Yun. I also Have the breakout board for Photo Interrupter. Can anyone tell me which pin to connect where in arduino? I want to do this for small project. Here are the links for the Sensor and board: https://www.sparkfun.com/products/9299 and https://www.sparkfun.com/products/9322d
n1ist:
Vcc to +5V, GND to ground, and SIG to a digital input pin. SIG will be low when the beam is NOT broken, and high when it is.
/mike
Hello thank you mike for your answer. Can you provide me a sample code for the sensor? i want to count the interrupts like if an object passes through the slot, '1' should be sent to serial monitor and otherwise a 0 should be sent. How can I do that?