Skip to content

QuyDatNguyen/CG2111A---Remote-control-mapping-robot

Repository files navigation

Accessing the bot

SSH into the robot, and cd to ~/cg2111a/Desktop/cg2111a_git!

ssh pi@raspberrypi.local
cd ~/cg2111a/Desktop/cg2111a_git

Commands

  1. Check which port is the Arduino being connected to the RPi. If it is not ttyACM0, change the defined port in alex-pi.cpp
ls /dev/ttyACM*
  1. Sync code on the RPi to latest version from GitHub (if needed).
git stash --all && gh repo sync && git log -1
  1. Use VNC to compile & upload code to the Arduino. The ino file is on the desktop, you can just open it. (Ignore the warning about making a folder by clicking Cancel -> Ok, it will open normally)
  1. Run code for RPi side (and pray it works).
gcc alex-pi.cpp serial.cpp serialize.cpp -pthread -o alex-pi && ./alex-pi

Extra: Steps 2 to 4 in one command:

sh letsgo.sh

Troubleshooting

  • Check if the port is defined correctly! Sometimes its not ttyACM0
  • Anything else ask me (kyuu)

About

CG2111A Project "Alex to the rescue" - A remote control mapping robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors