Tamagochi pet
Hardware- 10 Devlogs
- 28 Total hours
Reacts to shade, petting, and more. (Physical hardware)
Reacts to shade, petting, and more. (Physical hardware)
working on a software version of my project 🔥
I main micropython but I’m adjusting to python for this and learning the different ways things are written, and figuring out how to make faces.
Can anyone tell me if theres a designer that gives you the code when you draw something on a canvas? similar to lopaka??
The software version is projected to have more features for computer control than the hardware version. After finishing the faces and overall logic, I will add the additional side controls for it, like light and stuff
built an extension for the pet. It connects to the pet using gnd and 4 labeled gpio pins, though the 4th one connects to 0 and not 40.
It works somewhat like a stream deck; It opens 2 games, 2 code editors, a browser, and shuts off or closes tabs on my computer without needing special permissions, it is built for windows though.
Most of the hours logged came from trial and error. Most of the time the buttons wouldnt register, spam the same commands, double clicks wouldnt register, and it was a mess for hours.
did some bugfixes involving screen bugs during personality swaps, and the pet “forgetting” its personality.
please suggest additional ideas.
Rewired to remove clutter. Back isn’t looking too good but the front is, when I run out of ideas ill probably build a shell for it
please make recommendations
Added another personality, shy. added “cores” that determine the personality when plugged in, red for moody and blue for shy. unplug for normal. The shy personality features new unique faces. led colors and shaken face remain same
Ignore devlog: Tried making online demo but i pressed a button and all my tabs refreshed all at once and reset my work. Im publishing the devlog because i still did the work and i dont want it to go to waste (IGNORE THIS DEVLOG)
Added extra personality.
If you plug a red LED in, it will get a more of a moody personality. It will look angry, sleep angry, and will usually just be angry (shaken face does not change.)
unplugging the red LED will make it instantly revert to default personality
let me know other interchangeable personalities I should add, or other software and hardware suggestions. Thanks.
Added a gyroscope so the pet can become dizzy when shook. It features a red backlight, and remains dizzy for about 5 seconds. It was really a 20-30 minute setup after learning how to code and use one, and installing the libraries, but that extra addition turned into hours of additional troubleshooting since I was unfamiliar with the hardware. I eventually got it working after plenty of trial and error, and the real issue was just a couple lines of code.
I’m unfortunately not getting much views, which is discouraging, but if you do come across this and decide to click on it, please suggest something in the comments. Thanks.
Added status lights; finishing off full basic functionality for the pet. any additional features would be improvements, hardware additions, and wiring.
full explanation of functions below:
The “pet” is a TFT resistive touchscreen. Its face, as you can see, is a simple white and black pixelated look.
4 functions (for now):
lonely - after 30 seconds of no interaction, after waking up or not being pet, it will become lonely, which is a sad face of course. The backlight glows a gloomy blue, slightly purple.
neutral - base face, the pet is neutral when it isn’t lonely, had just woken up, and had recently been pet. the 3 other moods can occur when it is neutral. the backlight is white.
sleeping - when the ambient light is low enough the pet will sleep. It cannot be disturbed and cannot become lonely until woken up. This is what i personally thought was a nice addition to the pet and would bring more realism and life to the pet. This is done by having a photocell near the face for most light accuracy. the backlight features a light purple blue.
happy - when you pet it (or interact with the screen), it will smile. the blush being blue and not red was both intentional and unintentional feature. The color system is inverted same with the screen rotation. I did not know how to correct it but i felt the blue looked different and I kinda liked it so I didn’t spend extra time troubleshooting. the backlight features a bright hot pink color.
PLEASE add any suggestions and I will likely consider, like adding a thermistor, weather, USB OTG, etc.
When i feel like it, I may add a USB mode where it can do things on my computer when plugged in, like opening an app or powering off my computer.
(the 35 minutes logged was for fixing the code and adding the lights. Not the full code itself.)
added functionality to the pet and added made a separate smaller one. It now has multiple moods with the ability to sleep when lights are dimmed enough.
working on the wiring of the tomogachi pet n stuff no coding yet has a touchscreen now