Tests for the Yahboom ROS Control Board used by the Room View Bot
- using repo https://github.com/Roblibs/Rosmaster_Lib
list devices and add acces rights with sudo chmod a+rw /dev/ttyUSB0
run script from https://github.com/Roblibs/Rosmaster_Lib/blob/V3.3.9/add_rule.sh
sudo ./add_rule.sh my_ros_boardthe run
uv run main.pyjoystick discovery
sudo apt update
sudo apt install bluetooth bluez bluez-tools python3-evdev
bluetoothctl
#> power on
#> agent on
#> default-agent
#> scan on
#> [NEW] Device XX:XX:XX:XX:XX:XX Wireless Controller
#> pair XX:XX:XX:XX:XX:XX
#> trust XX:XX:XX:XX:XX:XX
#> connect XX:XX:XX:XX:XX:XX
#> quit
ls /dev/input/
sudo apt install joystick
jstest /dev/input/js0
sudo apt install python3-pygamesubscribe to topics and post on influxdb
uv run tsdb/ros_to_db.py| State | Per-cell Voltage | Total (3S) Voltage |
|---|---|---|
| Fully charged (max safe) | 4.20 V | 12.60 V |
| Nominal / mid-charge | 3.70 V | 11.10 V |
| Recommended recharge point (~20% left) | 3.65–3.70 V | ≈ 10.95–11.10 V |
| Low but safe | 3.50 V | 10.50 V |
| Critical / don’t go below | 3.00 V | 9.00 V |