It’s just what the title says; a Tamagotchi. The only difference is that this one is designed by me! It’s designed from the ground up. The idea was to use a Tamagotchi that’s happy when it’s standing up right and it has company. Thus, we need the following.
- RCWL-0516 Radar Sensor
- Tilt sensor
Consequently, we have 2 inputs for our finite state machine. We want to have 3 states; happy, neutral and moody. When he’s moody, he likes to beep and irritate his company. So we also need a buzzer and 3 LED’s in preferably 3 colors.
The Github Repository alongside code and comments can be found here.
If it’s not standing up, it will go from happy to neutral to moody, wether or not he has company. If it’s set up right and he has company he’ll get neutral and happy again. And trust me, you want him to be happy. He’s a little screamer…
The reason the wiring looks so complex is beacause the Tamagotchi is allowed to only consist out of logic gates. All the Arduino does is making pins high and low through I2C. The PCF8574 and Logic gates do all the work.