This project provides software for an ESP32 smart lock. It connects your lock to Apple HomeKit using NFC technology. The system supports Matter, which allows your lock to talk to different smart home platforms over Wi-Fi or Thread.
To install and manage your smart lock, your computer must meet these basic needs:
- Operating System: Windows 10 or Windows 11.
- Connection: A USB-C or Micro-USB cable to connect your ESP32 board to your computer.
- Network: A stable Wi-Fi connection for the initial setup of your smart home devices.
- Browsers: Google Chrome, Microsoft Edge, or Firefox.
You need to obtain the latest firmware files to install the application on your hardware. Follow these instructions to acquire what you need:
- Visit the official releases page.
- Look for the section marked Latest.
- Click the zip file or the executable installer listed under Assets.
- Save the file to your desktop for quick access.
The smart lock relies on the ESP32 chip. This chip acts as the brain for your door lock.
- Plug your ESP32 board into your computer using the USB cable.
- Windows will search for the correct drivers. If the device does not show up, download the CP210x USB to UART Bridge VCP drivers from the manufacturer website.
- Keep the board connected throughout the entire process.
Follow these steps to put the software onto your ESP32 device:
- Open the folder where you saved the download.
- Double-click the installer file.
- Follow the instructions on your screen.
- Select the COM port that matches your ESP32 device. You can find this in your Windows Device Manager under Ports.
- Press the Install button.
- Wait for the progress bar to finish.
- Unplug the device once the screen says Success.
Once the code lives on the ESP32, you need to connect it to your home network:
- Plug the ESP32 back into a wall power adapter or the lock housing.
- Use your phone to search for new Wi-Fi networks.
- Select the network named Matter-Lock-Setup.
- Your phone will open a web page.
- Type your home Wi-Fi name and password into the boxes.
- The device will restart and join your home network.
This lock supports Apple HomeKey. You can tap your iPhone or Apple Watch against the lock to open the door.
- Open the Apple Home app on your iPhone.
- Tap the Plus icon and select Add Accessory.
- Scan the QR code provided with your lock hardware.
- The app will prompt you to add the lock to your home.
- Follow the steps in the Home app to enable HomeKey.
- Your lock will appear in your Apple Wallet.
You can change how your lock behaves through the internal web interface:
- Find the IP address of your lock in your router settings.
- Type that address into your web browser.
- You will see a dashboard with your lock settings.
- Enable Auto-Relock to have the door lock itself after a set time.
- Adjust the NFC sensitivity if you find that the lock does not detect your phone right away.
- Save your changes. The lock will update its behavior immediately.
If the lock stops responding, check these points:
- Power: Ensure the power supply provides enough voltage. A weak power supply causes the ESP32 to restart.
- Cables: USB cables sometimes break. Try a different cable if the computer does not see your board.
- Wi-Fi: Keep the lock within range of your router. Thick walls reduce signal strength.
- Reset: Press the small button on the side of the ESP32 board to perform a hard reset. This clears temporary errors.
- Firmware: If issues continue, return to the download link and ensure you use the newest version of the software. Updates fix bugs and improve performance.