This project is aimed toward building a Raspberry Pi robot which utilizes machine learning to follow a leader object based on its color.
-
Follow the instructions in section 5 “Hardware Implementation” of the report to build the same robot we used.
-
Make sure to have a separate power supply for the motors and the Raspberry Pi.
-
To run the Raspberry Pi server you have to make sure you are running Raspbian OS on your RPI.
-
Install socket/OpenCV/python3 if you have any missing libraries (everything is installed by default on Raspbian OS).
-
Run MOTOR.py on your Raspberry Pi. This is the main code for the server and FAR’s following algorithm.
- Note that you have to configure the IP address and the port of the socket according to your Raspberry Pi (You can refer to the comments in the code to find the instructions regarding this).
- Run client.py on your Linux Machine. This is the code for the client that sends the color to the Raspberry Pi.
- Note that you have to configure the IP address and the port of the socket according to your Raspberry Pi (You can refer to the comments in the code to find the instructions regarding this).
- You can also change the HUE/Color you want to send to Raspberry Pi (You can refer to the comments in the code to find the instructions regarding this).
- You are all set. FAR should be working at this point.
- Presentation File "Docs/Team3_Presentation"
- Source Code Files in the Directory "Source Code"
- Manual for Running the Code "Docs/Team3_Manual"
- Report and Design Document "Docs/Team3_Report"