KevsRobots Learning Platform
48% Percent Complete
By Kevin McAleer, 3 Minutes
In this lesson you will learn how to setup a Raspberry Pi to run the BrachioGraph Python code. The Raspberry Pi is a small single-board computer that can be used to control the BrachioGraph plotter. By installing the Raspberry Pi OS and the required Python libraries, you can run the BrachioGraph code to create drawings and designs.
Download the Raspberry Pi Imager from the Raspberry Pi website.
Install the Raspberry Pi Imager on your computer.
Insert the microSD card into your computer.
Open the Raspberry Pi Imager and select the Raspberry Pi OS.
Select the microSD card as the storage location.
Click on βWriteβ to install the Raspberry Pi OS on the microSD card.
Once the installation is complete, remove the microSD card from your computer.
Insert the microSD card into the Raspberry Pi.
Connect the Raspberry Pi to a monitor, keyboard, and mouse.
Connect the power supply to the Raspberry Pi.
The Raspberry Pi will boot up and display the Raspberry Pi OS desktop.
Click on the Wi-Fi icon in the top right corner of the screen.
Select your Wi-Fi network from the list of available networks.
Enter the Wi-Fi password and click on βConnectβ.
The Raspberry Pi will connect to the Wi-Fi network.
Open the Terminal from the Raspberry Pi desktop.
Run the following commands to update the Raspberry Pi:
sudo apt update
sudo apt upgrade
Wait for the updates to complete.
Run the following command to install Python:
sudo apt install python3 python3-pip
Clone the code repository from GitHub:
git clone https://www.github.com/evildmp/brachiograph.git
Create a virtual environemnt:
python3 -m venv venv
Activate the virtual environment:
source venv/bin/activate
Run the following command to install the required Python libraries:
sudo pigpiod
cd BrachioGraph
pip install -r requirements.txt
What is Pigpiod?
Note: The
pigpiodservice is required to control the servos using the GPIO pins on the Raspberry Pi.
Run the following command to start the BrachioGraph code:
python3
Python with then load and in the next lesson you will learn how to use the BrachioGraph to create drawings and designs.
You can use the arrows β β on your keyboard to navigate between lessons.
Comments