Want to make An IR sensor array for a simple line following robot? This is the tutorial for you!
This is my journey to create my first IR Sensor array and hopefully it will help you young line follower.
Before beginning let me quickly give the requirements of the sensor so we all know what the end result will be as well as why certain design choices were made. From the problem description, and compatibility requirements we can discern that
The sensor should be able to distinquish between 4 line colours on a white background, In total the sensor should be able to defrientiate between 5 colours.
⚫ Black | 🔴 Red | 🟢 Green | 🔵 Blue | ⚪ White |
---|
Requires 3.3 output and idealy 3.3V input. 5V compatibility is recommended, however it should also work at 3.3V
Checked | Part | Quantity | Description | Link |
---|---|---|---|---|
IR Sensor | 3 | Photo Transistor / IR LED Pair | Here | |
100k Ω Potentiometer | 3 | For adjusting the gain of the photo transistor | Here | |
220 Ω Resistor | 3 | Current limiting resistor for the IR LED | Here | |
N-Channel MOSFET | 1 | To turn the LEDs on and off | Here | |
Protoboard* / Veroboard | 1 | to solder your components to | Here |