Steps to get the environment working:
- Open bluetooth
- Connect the boeboth with the computer. The pin code is 0000. The number of the bot must match the number on the dongle!
It’s ok that it will not show connected after connecting, it’s for handshake only.
- Open the terminal
- Type cad
- Type botcommander
- Connect to the robot
Now write your code in the suitable editor. To compile and upload the code:
- Compile the code using botcommander
- If there is any previous code already running on the bot, clear it using the pushbutton on the Boe-Bot! The connection will disconnect if you don’t. It is possible to reconnect after this.
- Upload the code you just compiled
- The robot should automatically start running your code.
- Don’t forget to clear the old code before uploading a new one.
- Form a team of 2 to 3 members. If possible, use the same members for the next two labs as well.
- Take a look at the robot manual http://priit.ati.ttu.ee/Sissejuhatus_erialasse/Boe-Bot_manual_3.pdf
- Download the sample codes https://blue.pri.ee/ttu/files/BotCommander.zip
- All tasks have the same structure: task, final solution and program codes – remember to check the given program codes in the BotCommander program folder
- Take a look at the final solution: https://www.youtube.com/watch?v=D-Es5e_m_BQ&feature=youtu.be
- Calibrate the Boe-Bot with standstill code. Try to understand the code. (0_calibrate.c)
- Take the moving forward and backward code and program the robot to move forwards and backwards. (1_move.c).
- Test the QTI sensor with QTI sensor code using file (2_qti.c)
- Now you have all the knowledge to detect the line and move the robot. Program the Boe-Bot to move along the black line. (3_line.c)
Bonus: Detecting obstacles
- Take a look at how detecting obstacles using top IR emitter works (4_top_ir.c)
- Implement this in your line following code (5_line_ir.c)
Don’t forget to return the robots and bluetooth dongles! Log out of the machines, restore order in your workplace.