When bumping into someone, the first thing that a British person will say is “sorry”. But there are times where we forget to say this, either because we are in a rush or we simply were not thinking.
This scenario is one that happens all too often, and when it does, it leaves us feeling ashamed and embarrassed. Just like how I’d never want to miss out on a cup of tea because I can’t put the kettle on, I personally do not want to be the victim of this dire problem. So, in this project, we will build an auto-apologizer.
To make your auto-apologizer, you will need the following:
- ISD1820 voice recording module
- MicroPython PyBoard with accelerometer
- 9V battery
- Small speaker
- 3-D printer (optional), cardboard, or wood for your enclosure
- Solid core wire
- 10uF capacitor
How It Works
This project is designed to automatically apologize when the user bumps into an object. The PyBoard has an inbuilt accelerometer that is used to detect changes in velocity, and if the change in velocity has gone beyond a predefined trigger value, the PyBoard sends a signal to the ISD1820 to play the prerecorded apology.
The ISD1820 is a simple record/playback module that can record up to 10 seconds of audio and then play it back upon a pulse on the PLAYE pin.
The schematic shows the PyBoard directly connected to the 9V battery, which is possible thanks to the PyBoard’s onboard regulator. The ISD1820, however, draws its power from one of the 3.3V outputs from the PyBoard.
You can find the full Scheme-It schematic here.
This project is a wearable, which means that the electronics need to be fitted into an appropriate enclosure. Such an enclosure could be made using many different materials, including wood and cardboard, but for added strength, I used a 3-D printer to create an enclosure.
The model was designed in Google SketchUp and then exported as an STL file. This file was then imported into XYZware and sent to a XYZ Da Vinci Jr. 3-D printer. The result was a robust box that housed the electronics, as well as the battery and speaker wires.
PyBoard Code, KiCad Files, and 3D Printer Design
If you’re making your own apologizer, you can download the code and everything else you'll need below.