PiArm is a Raspberry Pi based DIY robotic arm outfitted with 6-axis digital computerized servo motors and 360 degrees of rotation liberation designed and developed for kids, makers, and techies.
Steps for PiArm software installation:
-
Open Terminal and download the code by writing:
git clone https://github.com/sbcshop/PiArm.git
-
Your code will be downloaded to '/home/pi' directory. Use 'ls' command to check the list of directories.
-
Go to directory 'PiArm' and run the command to change the permissions of 'configGUI' and 'controlGUI' python files:
sudo chmod +x configGUI.py controlGUI.py
You are now able to run these two softwares for your PiArm. The control software is to control the movements of PiArm, while the config software is to config the servo motor.
Kindly make sure that Serial Communication is enabled and serial console is disabled in the Raspberry Pi configuration.
-
Click on the 'Servo Config' shortcut icon to configure your motor, or if you wish to give movements to PiArm or control it, click on the 'PiArm' shortcut icon.
-
You can also move these 2 icons to your desktop for your convinience.
One of the variants of PiArm has a LCD mounted on its chest. You can configure this screen using few simple steps.
Steps for LCD configuration
-
Open terminal and go to the 'LCD-show' directory inside 'PiArm' directory with:
cd /PiArm/LCD-show
-
Run 'lcd_conf.py' file as superuser with display size as first arg and rotation angle as second:
sudo python3 lcd_conf.py 7 0
Note: Only two display configuration sizes are available 5 and 7 inch and the rotation can be 0, 90, 180, and 270 degree only.
After you enter this command, your system will ask you for reboot. Enter 'y' and reboot your Pi.
- While your system is rebooting, you will have to connect the HDMI and MicroUSB Cable.
Note: In case you see your screen resolutions distorted, you just have to press the on/off button the the LCD screen at its back. This will restore its resolution.
Ultrasonic sensor can be used for PiArm movement on object detection. For using ultrasonic sensor with PiArm follow below steps:
- Open Terminal and go to the PiArm directory:
cd PiArm
- Run 'sensor.py':
Note: Use 'ultrasonic' class for measuring distance, 'example_ultrasonic' class can be used for operating PiArm by changing the commands accordingly.
python3 sensor.py
Servo Config
PiArm Control Software
SB Shop https://shop.sb-components.co.uk/products/piarm-the-diy-robotic-arm-for-raspberry-pi