Connected Safe With ESP 8266
by Digijeunes in Workshop > Home Improvement
323 Views, 1 Favorites, 0 Comments
Connected Safe With ESP 8266
Presenting another addition to our series on connected devices, this project offers a practical solution for safeguarding your belongings from unwanted access, such as from siblings.
By utilizing the ESP8266 and harnessing its WiFi capabilities, we have developed a straightforward safe that can be conveniently operated through a user-friendly web interface. Its functionality provides a secure and accessible way to open and close the safe as needed.
Supplies
Scheme
No need even to prototype anything, just solder some legs to your wemos and plug the servo motor's wires.
When this is done we can already try to upload the code to our card.
Code
When your prototype is ready you can open the previously downloaded file in Arduino IDE. Make sure you select the right ESP Wemos D1 mini and then upload (Follow this tutorial if you never upload to an ESP card).
You need to change the variables ssid and password to the one of your own wifi.
Upload the code to the board and open the serial monitor. When connected to the same WiFi, it should display to you an IP address.
Open a web browser and navigate to it. Click the button to check if your work has been a success.
To customize the appearance of the webpage, you have the flexibility to modify the HTML and CSS code. Open the file and navigate from lines 133. These lines contain the code responsible for defining the visual elements and styling of the webpage.
For exemple: background-color: #77878A can be changed with any hexadecimal color code. (eg: #FF0000 is red , #000000 is black...)
Making the Box
Print each piece of the box.
Attach the gear securely on top of the servo motor. Typically, the screws provided with servo motors are adequate for this task. As you screw the servo motor in place, ensure that the slider is positioned correctly. Apply gentle pressure on the slider towards the back while securing the servo motor.
Next, fix the Wemos board inside the box, ensuring that the USB port faces the designated hole. Once the glue has dried, your box is now ready for use.