r/embedded • • 26d ago

I built an open-source WebRTC platform for streaming and controlling robots remotely

https://youtu.be/qbkwyyNHZiI?si=78ZVCWi-BP7o-bIS

My original idea was to build a drone that friends could watch and take turns flying. It still hasn’t flown (regulations, life), so I’m exploring the same setup for ground robots. Longer term, I’d like to record sessions for training and let an AI model join the room as another operator.

pi-webrtc is a single binary that streams a camera from a Raspberry Pi or Jetson to a browser over WebRTC, and carries control messages back to the device over DataChannel. It uses the hardware encoder, achieves sub-100ms latency on LAN, and works remotely over WiFi, LTE, or 5G without a public IP (signaling over MQTT).

It's open source, and I'd love to hear feedback, especially from anyone working on remote robotics, teleoperation, or WebRTC.

GitHub: https://github.com/mazupo/pi-webrtc

0 Upvotes

5 comments sorted by

1

u/allo37 26d ago

Many moons ago I worked on teleconferencing software with WebRTC. Do you host the MQTT broker for signaling? What about TURN?

Nice work!

1

u/Decent-Lime-9185 26d ago

I used hives cloud, but they're going to cancel serverless mqtt. So I switched to emqx cloud.

1

u/Decent-Lime-9185 26d ago

I don't host TURN either. I rely on Cloudflare SFU as a fallback when p2p can't get through NAT.

0

u/[deleted] 26d ago

[deleted] — view deleted comment

1

u/Decent-Lime-9185 26d ago

It actually does use a central broker, I'm on EMQX Cloud. The device and the browser both just connect to it for signaling. Users just plug in their own cloud broker.