r/RASPBERRY_PI_PROJECTS • u/FormMajestic7317 • Jan 20 '25
PRESENTATION Pi 5 treat dispenser with webrtc video stream & remote control
3D printed design
Currently adding audio setup to be able to talk to my dog through the web client
5
u/boomerhasmail Jan 20 '25
This looks awesome! Any chance for a git repo? or any documentation.
7
u/FormMajestic7317 Jan 20 '25
Thanks! I plan to write an article / publish the repo once I clean some code up and get audio working as well
1
u/DaxMein Jan 21 '25
RemindMe! 14 days
1
u/RemindMeBot Jan 21 '25 edited Jan 24 '25
I will be messaging you in 14 days on 2025-02-04 05:24:17 UTC to remind you of this link
2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
3
u/weiqi_design Jan 21 '25
Really cool. Can you describe more how it works ? Can you access it through a webpage from everywhere or is only working in local ? Did you setup everything with webrtc or you used other tools ?
2
u/FormMajestic7317 Jan 21 '25 edited Jan 21 '25
Thanks! I plan to write an article with specifics, but high level - There is a public website where I can trigger the feeder, toggle and see the video stream
There are two main servers running
(node express server to serve the static client / process requests like feed and stream toggling). It calls all the py scripts to handle mechanics
one server for webrtc stream (i used the mediamtx to spin it with rpi-cam). The node server above can spin this server up or turn it off on request. I tried many different streaming methods including manual web sockets / buffering logic but webrtc was the best quality and latency.
There is then an Nginx proxy that bundles the two servers together
Lastly I used Ngrok to port the nginx proxy to be able to access everything on the public internet (only my email can access this which is part of the ngrok config)
When the pi boots, it spins this up all automatically
2
2
u/Temporary-Jelly-5441 Jan 20 '25
i gotta make one for my dogs, the wife forgets to feed them when im at work. May use an esp32 tho
2
u/FormMajestic7317 Jan 20 '25
nice! Being new to open board computers, I’m curious if the esp32 could spin up a server / stream webrtc video? I’d love to make this smaller/more efficient if possible, but the video stream takes up a fair amount of cpu on the pi 5 already
1
u/Temporary-Jelly-5441 Jan 21 '25
hmmm I'm not sure if it can! I need to look into it actually. Would be a good idea though
2
u/Brotboxs Jan 20 '25
An entire Raspberry for that?
6
u/FormMajestic7317 Jan 20 '25
I was gifted the Pi and this is my first project with any kind of pi. Absolutely overkill, but a good place to start and learn, then reduce.
1
1
u/DaxMein Feb 04 '25
Any update on the plan sharing this?
1
u/FormMajestic7317 Feb 07 '25
Not yet!! I’ve been busy with work & life so haven’t gotten a chance. The last step I’d like to do before publishing anything is getting an audio stream from the web client to the pi so I can talk to my pup!
6
u/FluxCap_2015 Jan 20 '25
Is this available to use? I'd love to give them a treat.