Photomicrosensor to Arduino
by AndreyOoops in Circuits > Arduino
8360 Views, 3 Favorites, 0 Comments
Photomicrosensor to Arduino
Hi! In this instructable I will show you how to connect a photomicrosensor to an Arduino board.
Photomicrosensor is a small optical sensor, that consists of an emitter (infrared LED) and a receiver (phototransistor) (in our case), that are located opposite each other. When something nontransparent blocks the light emitted by the LED, the conductivity of the phototransistor changes. This change can be determined by discrete components or by a microcontroller.
Components
Our project contains the following elements:
- Arduino Uno board
- Photomicrosensor (ee-sx1137)
- Breadboard
- Jumper wires (Male-Male)
- 220-330Ω resistor
- 10KΩ resistor
- LED + 330Ω resistor (You can use the built-in LED on the D13 output)
- Soldering iron, solder, printed circuit board (optional)
Connecting Everything Together
First you need to connect the photomicrosensor with a 10K pull-up and a 330Ω resistors to the Arduino board. An LED is connected to pin D13, which is activated when the beam is interrupted.
Programming
The next step is to programm your Arduino board. As you can see, the sketch is small and easy to understand, so you won't have much problems with it.
Downloads
Finished Project!
It's time to test this all! When we put a piece of paper inside the sensor, the LED turns on. Everything works! Thank you for reading this Instructable!