Intro: Light Following Plant Robot
In this instructable, I will show you how to make a robot that moves a plant towards light. This project was partially inspired by one of my older instructables, the planterbot. This project is mostly for fun; if left unattended, this robot can fall off a table or hit a wall. Sorry for the bad photos, the lighting wasn't as great and it is difficult to take good pictures of black acrylic.
Step 1: Parts and Tools
Here are the parts and tools that you will need to make this project:
4x 1k Ohm resistor
2x 2n2222a NPN transistor
1000 mAh battery (included with board)
Small piece of acrylic (~4"x4")
Soldering Iron and solder
Computer with latest version of the Arduino IDE an linkit ONE drivers
Hot glue and hot glue gun
Step 2: Wiring
Use the attached circuit diagram to wire the circuit.
Step 3: Mount Sensors
Glue the LDR connected to A1 to the left side of the robot frame (side with the left wheel) and the LDR connected to A2 to the right side of the frame.
Step 4: Code
Download the attached code and open it. Now, upload it to the linkit ONE board. Original code was made by Chowmix12 under the BY-SA-NC license. I changed some of the pin numbers used so it would work with the linkit ONE board.
Step 5: How It Works
This robot follows light by using two LDR's. Each LDR detects light by varying voltages when the amount of light changes. When one LDR detects more light than the other, the motor opposite to to the sensor moves forward, while the other motor stays still. This makes the robot able to turn towards light. When the sensors have a sufficient amount of light, the robot stays still.
Step 6: Mount Board
Use a small amount of hot glue in each corner of the linkit ONE board. This should keep it secured to the chassis. Next, hot glue a small scrap piece of acrylic to the top of the board. Now, all you need to do is put a plant on top of the robot! A small ceramic pot should be heavy enough to stay still, but if you need to, use some glue to hold it in place.
Step 7: Done!
Thank you for viewing this instructable! If you liked it, please "like", comment or share.