A BLE-controlled RC car powered by PicoRuby on a Raspberry Pi Pico2 W. Control it wirelessly from your browser using a virtual joystick.
| Part | Link |
|---|---|
| RC Car Chassis | https://akizukidenshi.com/catalog/g/g113651/ |
| Raspberry Pi Pico2 W | https://akizukidenshi.com/catalog/g/g130330/ |
| DRV8835 Motor Driver Module | https://akizukidenshi.com/catalog/g/g109848/ |
| Breadboard | https://akizukidenshi.com/catalog/g/g100315/ |
| Jumper Wires (any wires will do) | https://akizukidenshi.com/catalog/g/g102315/ |
| Battery Box | https://akizukidenshi.com/catalog/g/g111523/ |
| 2x AA Batteries | - |
Connect the Raspberry Pi Pico2 W to the DRV8835 motor driver module:
| Pico GPIO | DRV8835 | Function |
|---|---|---|
| GP5 | AIN1 | Right Motor Forward |
| GP6 | AIN2 | Right Motor Reverse |
| GP7 | BIN1 | Left Motor Forward |
| GP8 | BIN2 | Left Motor Reverse |
Use the PicoRuby Terminal to write the firmware to your Raspberry Pi Pico2 W.
- Write
car.rbas/home/app.rbon the Pico2 W (Plain text) - Write
ble_uart.rbas/lib/ble-uart.mrbon the Pico2 W (Compile mode, not Plain)
- Power on the RC car
- Open the controller page: https://hayaokimura.github.io/picoruby-rc-car/
- Click the Connect button to pair with the RC car via BLE
- Drag the joystick knob to drive!
Note: Safari on iPhone does not support the Web Bluetooth API. To control the RC car from an iPhone, use a Web Bluetooth compatible browser such as Bluefy.
MIT

