Welcome to Rider Pi Robot repository
0. Notes (Must Read)
CM5 Version Notes
CM5 Version Notes1. Prerequisites for Running Python in CM52. Voice-Related Functions and Usage in CM5 Version (Key must be entered first)3. Lag Issues4. Robot Resuming Standing5. Differentiating Between CM4 and CM5 Versions6. Fan Speed Control
1. Prerequisites for Running Python in CM5
The following commands are only required when remotely accessing Rider-Pi using a desktop-less tool like PuTTY. For other desktop-enabled tools, such as VNC, these commands are unnecessary.
(Jupyter Lab programs require no further action; simply run the program within the Jupyter Lab interface.)
All Python-related programs require running within a Python virtual environment.
To enter the virtual environment, run the following command (if the terminal was opened remotely via VNC, it will default to entering the virtual environment):
source ~/.bashrcIf you see the following image, it means the terminal has entered the virtual environment:

Then execute Python-related commands, such as:
xxxxxxxxxxpython3 xxx.pyTo exit the virtual environment, use the following command (generally no action is needed):
xxxxxxxxxxdeactivateAs shown in the image below: This exits the virtual environment.

Recommendation: Install Python-related third-party libraries within the virtual environment. This can reduce many unnecessary execution errors.
2. Voice-Related Functions and Usage in CM5 Version (Key must be entered first)
- When waking up via voice, the heat dissipation structure may affect wake-up recognition.
- If voice wake-up is difficult, you can manually wake up by pressing the button in the upper left corner of the screen.
- When recording sound, you need to speak loudly in standard Mandarin.
- If voice wake-up is difficult, in a relatively quiet environment, run the following command to re-record a segment of the current environment's fan noise:
xxxxxxxxxxcd ~/RaspberryPi-CM5record -r 16000 -f cd -d 8 fannoise.wav #Wait for 8 seconds of recording timeThis will allow the wake-up noise reduction algorithm to filter out the fan noise, resulting in a more sensitive wake-up effect.
3. Lag Issues
When the Rider-pi's battery level drops below 25%, running a standalone example without closing the main program will cause the terminal to lag and the program to become unclosable.
Solution: Power off and restart the Rider-pi, then close the main program, and finally run the corresponding standalone example.
4. Robot Resuming Standing
If the robot (Rider-pi) displays a red light on its top and its legs retract, it indicates that the robot has entered a locked state. It needs to be straightened for approximately 2-3 seconds, after which the robot will automatically resume standing.
Locked State:

Straighten by hand

Restore Balance

5. Differentiating Between CM4 and CM5 Versions
Appearance
Observing the hardware screen, a noticeable fan sound is present upon power-on, indicating it's the CM5 version of the Rider-Pi. The CM5 version also has a cutout on one side of the screen, as shown in the image below:

Hardware

Features
The CM5 version adds the following features:

6. Fan Speed Control
By default settings, the fan is always on. To adjust the fan speed based on temperature, follow these steps:
- Run the terminal
xxxxxxxxxxshell sudo nano /boot/firmware/config.txt
Find the interface shown in the image:


Configure the fan according to your needs. The meaning of each parameter is as follows:
#fan_temp0/1/2/3 represents the temperature (360000 represents 36℃)
#fan_temp0/1/2/3_speed represents the corresponding fan speed (maximum value 255)
#fan_temp0/1/2/3_hyst represents the hysteresis temperature