Mark Foster
Published © MIT

IoT Lockbox: App Controlled Locker

IoT Lockbox allows you to securely store packages, mail, lab samples, etc. It can be accessed by scanning its QR code with the mobile app.

BeginnerFull instructions provided8 hours3,021

Things used in this project

Hardware components

Azure Sphere MT3620 Starter Kit
Avnet Azure Sphere MT3620 Starter Kit
×1
Atoplee Electric Lock Assembly Solenoid DC 12V
×1
3S 11.1V LiPo Battery
Any power source around 12 Volts will do to power the electric lock solenoid.
×1
Mailbox or strong box
×1
Corner Brace
×1
22AWG Wire
This is to connect the solenoid to the relay board and the battery.
×1
RELAY click
MIKROE RELAY click
×1

Software apps and online services

Microsoft Azure IoT Central
Microsoft PowerApps
Microsoft Power Automate

Hand tools and fabrication machines

Drill / Driver, Cordless
Drill / Driver, Cordless
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Battery wired to the relay board on the Avnet MT3620 Starter Kit

This shows how the battery is wired to the relay board on the Avnet MT3620 Starter Kit. The wires leading inside the mailbox lead to the solenoid electric lock.

Code

PowerApps Barcode Scanner OnScan function code

Plain text
This code takes the scanned QR code value and sends it along with it triggers the Power Automate flow. The Power Automate flow uses an IoT Central Connector to update the MT3620 device relay setting.
'PowerApp->Updateadevice,Delay,Updateadevice2'.Run(BarcodeScanner1.Value)

Credits

Mark Foster

Mark Foster

2 projects • 5 followers
Geek dad, software engineer, manager.
Thanks to Brian Willess.

Comments