u/stfuandkissmyturtle

▲ 161 r/rust

I made a desk pet using esp32 + rust

Features

  • Environment Tracking: Monitors humidity and temperature via DHT sensor.
  • Light Sensing: Uses an LDR to determine if the cat should be awake or asleep.
  • Interactive Touch: Touch the sensor to interact with the cat (makes it purr).
  • Work Timer: Long-press the touch sensor to toggle a work timer mode.
  • Persistent Stats: Uses NVS to remember interaction counts and settings even after a reboot.

This project is built using the standard library (std). It relies on the esp-idf-svc and esp-idf-hal crates to wrap the ESP-IDF C SDK. Most of the logic happens in a main loop that polls sensors and updates a internal state machine that drives the OLED display and buzzer.

EDIT: repo : https://github.com/Joshuajrodrigues/esp-pet

u/stfuandkissmyturtle — 5 days ago
▲ 93 r/esp32projects+1 crossposts

Made a esp32 desk pet as a gift for a friend.

It has a humidity sensor, temp sensor (dht22) a light sensor, a small speaker, and a touch module. powered by the usbc.

The cat sleeps when its dark, yawns when coming back to awake, purrs when touched. is thirsty when its hot and shivering when its too cold.

It also has a long press timer, that essentially makes it work as a work timer where it starts buzzing in about 22 mins asking to be pet. (get up and take a break).

Ive never been good at electrical stuff even in college but I really loveee working with esp32 now. I learnt so many things from reading pin out diagrams to soldering to diffrent ways these components talk to each other !

Im gonna make more stuff, i really love this new hobby.

The full thing is mounted and soldered on a prefboard in a watch box with pins because I really couldnt get around to learning 3d printing before their birthday lol.

Anyways here is the github repo and Its made in rust,
https://github.com/Joshuajrodrigues/esp-pet

u/stfuandkissmyturtle — 5 days ago