This README explains how to run the Brushless 17 Click demo every 30 seconds on your Red Pitaya, along with what was done to complete the project.
-
✅ Added
brushless_17.pyto theExamples/python/folder- On the latest Red Pitaya OS 2.00, the following approaches did not work:
- Modifying system GPIO files manually
- Using the C API (which also touches those GPIOs)
- Python macros provided by Red Pitaya
- ✅ Only direct register access using the Python API worked successfully
- On the latest Red Pitaya OS 2.00, the following approaches did not work:
-
✅ Added
dc_motor.pyandgpio.pyas test scripts in the same folder -
✅ Added systemd unit files for portability:
-
✅ Added
initialize_startup.shfor quick deployment and integration into Red Pitaya’s boot process
-
Wire the motor and Click board as shown in the image

- Yellow → 1
- Green → 2
- Blue → 3
- Blue → H1
- Green → H2
- Yellow → H3
- Red → +5V
- Black → GND
- Ground → GND
- Output → +
- The analog pin should be wired to 3.3V (3v3) using the Terminal Click and a jumper, since only the AIN pin is routed to the Click Shield. The AN pin cannot be set to HIGH directly.
-
Power up your Red Pitaya
-
Connect to it via browser
-
Go to Development → Web Console
-
Log in as:
- Username:
root - Password:
root
- Username:
-
Run the following commands:
git clone https://github.com/IvanRuzavin/RedPitayaClickShield chmod +x RedPitayaClickShield/initialize_startup.sh ./RedPitayaClickShield/initialize_startup.sh
# View logs for the systemd service
journalctl -u brushless.service
# View output from the script itself
cat /tmp/myscript.log
# Check the current status of the systemd service
systemctl status brushless.service