- Setup your SD card with Raspbian as explained here
- Fit the SD card into the Raspberry Pi you will be using
- Power up the Raspberry Pi
- Connect the Raspberry Pi to the internet
How to enable I2C and the camera on the Raspberry Pi
Firstly we need to enable I2C on the Raspberry Pi so we can communicate with the RockyBorg motor controller and the camera. We can either do this via the Desktop, or via a terminal.
Enabling I2C and the camera via the Desktop
Start off by opening the Raspberry Pi Configuration menu by clicking on the Raspberry in the top left, and then in the menu clicking "Preferences" then "Raspberry Pi Configuration".

Click OK, then open a terminal and skip to the "How to install the RockyBorg libraries" section further down.
Enabling I2C and the camera via Raspi-Config
Open a terminal in your Desktop or use the command line when your Pi boots and type:sudo raspi-config
When the menu pops up, use the down arrow to highlight "5 Interfacing Options" then press the enter key.

Use the down arrow key to go down to "P5 I2C" and press the enter key.

Press the left key to highlight "Yes" and press the enter key.

You should then see a dialog that confirms that the I2C interface is enabled. Press enter to return to the main menu.

Use the down arrow to highlight "5 Interfacing Options" again then press the enter key.

Use the down arrow key to go down to "P1 Camera" and press the enter key.

Press the left key to highlight "Yes" and press the enter key.

You should then see a dialog that confirms that the camera interface is enabled. Press enter to return to the main menu.

Use the tab key to move to "Finish". Hit enter and exit the dialog.

If you get a dialog asking you to reboot use the tab key to move to "Yes". Hit enter and the Raspberry Pi should restart.

How to install the RockyBorg libraries
To install the RockyBorg software we need to obtain the code from our GitHub page or we can download using the clone command from a terminal. In a terminal window type:git clone https://github.com/piborg/rockyborg
cd rockyborg
chmod +x install.sh
./install.sh
See the RockyBorg Servo Calibration page for detailed instructions.
Comments
Leave a Comment
Leave a Reply