I am presenting my Micro:bit Pet project. Many people want pets but cannot have them due to allergies or lack of time. I wanted to create a solution, so I coded a virtual pet that reacts to interactions and emotions.
The Micro:bit Pet responds in different ways: if you touch it, it becomes happy, displaying a joyful image and playing a cheerful sound. When you shake it, the pet shows a surprised face and giggles. However, if you leave it alone for a certain time, the pet reacts accordingly: at 20 seconds, it becomes sad and plays a sad sound; at 30 seconds, it appears tired with a different sound; and after 40 seconds, it shows a mysterious skull image. These timers make the pet feel more interactive and lifelike.
I used the Micro:bit’s LED display to show the pet’s emotions, assigning values to each LED—zeros turn the LED off, and nines turn it on at full brightness. Adjusting these values changes the brightness, making the expressions more nuanced. I also integrated simple sounds for each mood, so interacting with the pet is engaging and playful.
This project helps people experience the joy of owning a pet without the responsibility of feeding, cleaning, or walking it. It demonstrates how electronics and coding can create interactive experiences, making technology fun and meaningful. Completing this project in just one day showed me how quickly ideas can become reality with code.