Smart Lock(er)

by Northstrix in Circuits > Microcontrollers

1509 Views, 9 Favorites, 0 Comments

Smart Lock(er)

IMG_20210202_195914.jpg

In this project, I'll show you how to make a smart lock. You can later attach it to a more reliable mechanical lock or use it as it is. A while ago, I began working on a project called smart locker. Back then, it wasn't intended to be a fully functional smart lock, just a lock for the locker. But now I've finally decided to add an OLED display to it and update the code to make it more user-friendly. I've also decided to write an instructable for it. Anyway, the repository on GitHub is still called smart locker.

Supplies

ESP8266 x1
SSD 1306 OLED Display x1
MG90S Servo x1
RGB LED x1
470 Ohm resistor x1

Flash ESP

IMG_20210128_192048.jpg

You can find code here: https://github.com/Northstrix/ESP8266-based_smart_...
(In case you'll decide to download the whole repository, it's v1.4)
Don't forget to modify these two strings to match your credentials.

const char* ssid = "Mobile Hotspot 1290"; // Your SSID (Network's name)
const char* password = "seasidehills199"; // Password from your network

Assemble the Circuit

s.png
IMG_20210202_195557.jpg

Look at the following schematic diagram and connect each element to ESP8266. Don't use a piece of the ruler as a deadbolt. I've only used it for demonstration purposes.

Power Up the Device

IMG_20210202_195732.jpg

Wait 'till the Device Will Connect to Your Access Point

IMG_20210202_195742.jpg

If It's taking so long, try to reboot ESP. If the device still can't connect to your network, check if the credentials are correct.

Enter the IP Address From the Display in Any Browser

IMG_20210202_195808.jpg

That one shouldn't be hard. Just enter the IP address and press enter.

Press the Button

IMG_20210202_195856.jpg
IMG_20210202_223746.png

After the device had successfully connected to the access point, press the button to open the lock.

Enjoy the Result

IMG_20210202_195919.jpg
IMG_20210202_195938.jpg

Don't forget to press "I Made It!"