r/RASPBERRY_PI_PROJECTS • u/evilspyboy • 8h ago
PRESENTATION I ended up with a 'faulty' 5inch touchscreen and had a spare RPI4 so I made a 'Desk Pal' but less Desk Pet and more SCUMM-like which I kept adding hardware to
I actually had this done a few weeks ago but I didn't have a repo in a state I could share it without all my personal customisations.
https://github.com/evilspyboy/desk-pal
Edit: The readme is longer than 2 sentences for anyone who doesn't let an LLM do everything for them. I wrote sections of it. If that is too longer for you to read, stop here and move onto another post.
This is one of those, that escalated quickly things.
The short version is that I needed a Pi 5inch touchscreen for a separate project and the first one I got had a faulty cable, I claimed warranty and they just sent me a full replacement - then after I did what I had to do, I played around and fixed the cable so I had a spare.
Because spare parts go in draws and get forgotten about I found a 3d model for a display on makerworld. Then I remembered I had a rpi4. The model had spots for mx key switches and I have a few small scripts/applications for various things for me (like a fuel tracker that I feed in the state fuel prices into the predictive FM Times Google Model to give me 5 days ahead pricing) so I then thought I could tie some stuff into the buttons.
I was aware of the desk pet type thing but those seemed a bit boring. What I actually needed was something that would monitor a lot of the smaller things I run so I know they are working when I want to use them every so often and not find out they broke and have to fix them when I do need them. So I defined some semi-standardised monitoring hooks and setup the pi so I could have a character on screen that would animate based on various monitoring hooks so i knew stuff was working without having to check.
Because that is a bit boring I thought about giving it instead of a pet in a voice a more SCUMM like screen for a character to wander around in like Fate of Atlantis Indy's office. With the number of things I had to hook in I needed more spaces so I ended up adding a full web editor to add more animations and more scenes, draw walkable areas, define interaction points, places for animated props to interact with, etc (there is a hidden animated prop that would get a lot of attention in a reddit post but I'll not show it).
So I had this thing which would monitor stuff, and had some buttons to bring up pop ups.
But then the screen needed to turn off when it was dark so I added a lux sensor, then a imu, and a microphone, and a speaker, and a proximity radar...
Basically it still does the same thing but now it knows when someone is at the desk, the screen is kept on until 'bed time' but then will turn off when the light level is low. The radar means it can tell when I'm at the desk in the morning and gives me a quick card of the weather for the day, price of petrol in case I need it, if i have anything on today or tomorrow or this week. It even has a wellness function that between the house of 'worktime' if it detects someone for an extended period it will say hey time for a drink and a stretch (which resets if you actually did go for a walk so it knows you haven't been sitting there the whole time).
I added some games, it ties into mostly local services, a couple of scripts that run directly on the Pi too that I could move off other PCs which are low impact. Gave it a voice, gave it some functionality to act as a MCP server in case someone actually wants to use it have some remote cloud LLM control the character and interact with it.
There is probably more stuff but important things - did an LLM generate the code and art, of course it did I have other stuff to do. I can supervise it but I didn't have time beyond directing the structure of the code and assembly. BUT all the art assets are changeable. If you have time you can go find the Cartoon Network assets that dropped and put them in instead, or make your own, or make your own animations.
The code base is at a level where you can just install it and do the configuration through the web browser interface (from another PC) but you are probably going to use a LLM to do it I accept that. The web browser interface also means you dont have to have a touchscreen or 3d print it like I have you can have it in a draw somewhere and use a spare browser window to show the desk pal.
This is an EXTREMELY long amount of text and I have left stuff off either intentionally or just forgotten. The Github repo has most of the parts I used, where to find the print files, the actual vanilla code (I think I left the wellness check in there) but with an LLM you should be able to customise it a bit more, or you just change all the art and use it too. The IMU I am using died and I have to replace it but I had not added too much to use that. I did include a calibration walkthrough for it and most of the other sensors if you wanted to use it for the game (I hid a breakout clone in there somewhere - but changing all the art will make it yours).