Introduction: 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.
Step 1: Components
Our project contains the following elements:
- Arduino Uno board
- Photomicrosensor (ee-sx1137)
- 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)
Step 2: 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.
Step 3: 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.
Step 4: 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!
3 years ago
Looks good, thank you for sharing : )