paper sensor

I have a problem on how i connect the paper sensor to my ATMEGA168. :cold_sweat: :cold_sweat: :cold_sweat:

20141122160929-f3c447c644162f19b4f13c9134c832b3.jpg

Useful keyword: "photo-interrupter".

One side is a LED, the other a phototransistor.

The LED will need to be turned on with a series resistor to reduce the current. The transistor will need to go from the digital input pin to Gnd, with a 10k R from input to 5v.

Look up the data for the particular device to see which side is which.

Weedpharma