LIVE cartercole.net --:--:-- UTC

// 04 RESTRICTED

carterflock

PYTHON RASPBERRY PI WEBRTC ACCESS RESTRICTED

Remote driving for a Raspberry Pi vehicle with one drive motor and one steering motor, each on an L298N H-bridge. A pygame window on a Mac sends a four-byte UDP packet 50 times a second, a direction and a speed byte for each motor, which the Pi turns into 1 kHz PWM. If packets stop for 300 ms the Pi cuts both motors, and it reports its state back at 10 Hz. Separately, an aiortc server sends the Pi's camera to a browser, with audio both ways. November 2025; nothing records whether it drove.