I found an interesting camera module called Pixy2. It can learn to detect objects with distinct color or specific barcode. And I just got a car kit. So I decided to use the pixy camera and the car to build an auto pilot system. But obviously, a simple one.
I’m using a robot car kit made by Seeed Studio. A servo and a DC motor are integrated onto the car. After you received your purchase, follow the installation guide to assemble the car. Then connect it to a motor driver and a power supply. Give it a test and see if the motor and wheels work well.
Connect the camera to your computer via USB port. Download PixyMon, install and launch it. Then you’ll see the video captured from your Pixy2.
As Pixy2 can detect built-in barcode, you can put different barcodes under different road signs.
All available barcodes can be found here.
Program your car so it can react accordingly to the road sign it detected. Here I provide you with my arduino code. If you are using the same car kit as me, just upload the code to your Arduino board and connect the camera to the board.