My son : "The reason of my poorly grade at school is due to smartphone!"
46nori : "OK, I'm gonna make a machine confiscating your phone!!"
- Lock the box for the specific period of time.
- Emergency unlocking via Internet by IFTTT widget.
- Particle Photon
- STM32F205 120Mhz ARM Cortex M3
- 1MB flash, 128KB RAM
- Battery backup
- WiFi 802.11b/g/n
- Servo Motor : SG-90
- LCD Display (16x2 characters) : SC1602BSLB-XA-GB-K
- 4 buttons for configuration
- 5V external power supply
- Acrylic Box : MUJI 無印良品 / 重なるアクリルケース2段フタ付引出・大
- Open the tray and put the smartphone. (You can put anything actually.)
- Set countdown timer. (Hour and minutes up to 24hour 59minutes.)
- Push the start button.
- Tray will be locked, and remaining time is shown.
- Tray will be unlocked when the countdown timer is expired.
- Emegency unlock widget (IFTTT) is able to unlock in anytime. (But it is only owned by parents. :-P )
- You need to create a Particle account in advance.
- Your Photon needs to have been set up and connected to Particle server by WiFi.
- Open Particle IDE on Web Browser.
- Create files in the src/. And copy & paste the each content of files.
- Push build button on IDE.
- Push flash button on IDE so that download the firmware onto your Photon.
- To equip the sensor in order to prevent from locking at incorrect position of tray.
- Hall effect sensor or photo reflector is candidate.
- To implement
bool UISTMBridge::IsCaseClosed()
as return true if the tray position is correct.
Front View
Button Layout
Rear View
5V AC Adopter outlet