An open source, cost effective, WiFi controlled smart locker created as a senior project.
This software is optional but allows us to run a PHP server locally. If you use another software or pay for cloud hosting this does not pertain to you.
- Download and install XAMPP 8.0.5 for Windows from their website.
- Run the setup script inside the
/src
folder using Powershell. - Launch the XAMPP Control Panel and start both the Apache and MySQL servers.
Open the lock.ino
source code in the Arduino IDE and perform the following:
- Add the ESP8266 server to the
Additional Boards Manager URLs
inFile > Preferences
. - Add the three libraries in the
/dependencies
folder by going toSketch > Include Library > Add .ZIP Library...
- Alter the
domain
string in the source code to be the IPV4 of the device running the Apache server. - Alter the
ssid
string to be the SSID of the router you want the ESP8266 to connect to. - Alter the
password
string to be, you guessed it, the password to the router you want the ESP8266 to connect to. - Upload the code to the ESP8266 and voila.