RPI robot - Software
Installed software
You will get all the needed software, either on an SD card or a NVMe card. Besides Raspibian OS, we included:
- Microsoft VS Code, editor with all the needed extensions to efficiently use C++,
- OpenCV for image recognition,
- GPIO driver for reading and writing digital pins,
- libraries for all the CAN Bus and other peripherals,
- sample C++ code.
Remote console
Normally you will not use a keybard, mouse, and monitor connected directly to the RPI board as the robot should move freely. Therefore, you must connect to it via a remote console. It is the best to use Raspberry Pi Connect. However, if you prefer VNC, take a look at the instructions how to do so.
Remote SSL
RPI is slow. Even typing is tedious. You can speed the process up by using remote SSL connection and do the editing on your desktop computer. Read this receipt. Later, you can use the same web to find some exercises. They are made for a different kind of robot, but almost all the code will be the same, as it uses the same components, besides Raspberry Pi.
VS Code
Start remote console on Your desktop PC, after switching the robot on. Start VS Code by selecting it from drop-down menu.
Click on run and debug icon on the left margin (1).
Click on drop-down list and select "Make & debug..." (2).
Click on green triangle (3).
Program compilation will start. After up to a few minutes, the compilation will end the program will start.
After displaying some text, the result should look like this, in Terminal tab. If you do not see the Terminal tab, click on "Terminal".
Basically, now you are in position to start using all the exercises described in web top.in.hr, except the part where Arduino setup is described. To be specific, all the exercises except 2 - 4, 6 - 8, 10, 12, 14 - 16, and maybe a few more later.
The reason is that C++ code is almost the same for Arduino and Raspberry Pi, except that RPI has a camera, which we will learn to use, too.