RIT MDRC's robot competing in Harvard's Pacbot Competition.
- A Raspberry Pi 4b
- An Arduino Uno
- A USB-B to USB-A adapter
- Adafruit Motor Shield v2
- USC-C to USB-A cable for powering the Raspberry Pi
- 5 distance sensors (Sharp 0A51SK F 02)
- The Pacbot shell
- Motors (2x DC motors, 30:1 Micro Metal Gearmotor LP 6V with Extended Motor Shaft (Item #2202))
- 2 Wheels
- 1 caster wheel
- Code from MDRC pacbot repo (https://github.com/RIT-MDRC/MDRC-PacBot.git)
- Put the distance sensors in the holes of the Pacbot shell.
- Plug the motor shield into the Arduino.
- Ensure the microSD card is inserted into the Raspberry Pi.
- Plug the raspberry pi into a power source using the USB-C to A cord.
- Plug the arduino into the Raspberry Pi using the USB-A to USB-B cable.
- Plug the motors into the motor shield using the M1 and M2 slots.
- Plug the power wires of the sensors (red + black) into the 5v power of the motor shield
- Plug the data wire (white) into the analog input of the motor shield.
- Put the wheels on the motor axles.
- Plug the 9V battery into the motor shield using the 5-12V wire slots.
- SSH into the raspberry pi:
ssh pi@mdrcpi4.student.rit.edu
- Run ls /dev/tty* to find the serial port of the Arduino (similar to "USB0").
- Locate motorControllerPassthrough.py and run it on the Raspberry Pi with the argument of /dev/tty/USB0 (replace with serial port).
- On your computer, locate motorControllerPassthroughClient.py and run it:
python3 motorControllerPassthroughClient.py ws://mdrcpi4.student.rit.edu:8765
- Type "f", "b", "l", "r", or "s" (stop) to control the robot, or "q" to quit the program.
To learn more about the software, see the doc in the MDRC google drive https://docs.google.com/document/d/10UM2JkGd73kfUx4oTEAEH53nK31bbPSw4fjkly4F9ZI/edit