← Back to portfolio

2024–2025 · iot

Pametni Šparovec — smart piggy bank

Raspberry Pi 3B piggy bank that recognises and sorts coins by color.

PS

A piggy bank with brains. A color sensor reads each incoming coin, a small motor steers it into the correct compartment, and an OLED tracks the running total. Original Raspberry Pi 3B build, later ported to ESP32 for the FamFive variant.

Engineering details

Color is read in HSV space and matched against pre-sampled bins for 1c through 2€. The motor driver uses a small servo for the diverter; an OLED on I2C shows the live total. Persistent state is saved to flash so unplugging does not reset the count.

Tools

Raspberry Pi 3BOLED I2CColor sensorServo

Materials

PLAPETG