This is the source code for the WiFi Doorbell Sensor from Firefly Electronix. Visit our website for more information. https://www.fireflyelectronix.com/product/wifidoorbell
- Support for OTA (Over-the-air) Updates - v1.2 Release
- Support for TLS/SSL Secure Client (Http port 443 and MQTT port 8883)
- Download the latest .bin file from our releases https://github.com/fireflyelectronix/wifidoorbell/releases
- Press and hold SW1 within 10 seconds after installing the battery
- Connect to the WiFi Network - Firefly-xxxxxx
- Open your browser and navigate to 192.168.244.1 (Updating does not work throgh Apple's Captive Portal that pops up automatically)
- Click on Update
- Click on Choose File and Select the .bin file that was downloaded in step 1
- Click on Update - It will automatically restart after update is completed. Settings will be kept after the update and not erased.
-
Download and install Arduino IDE (tested with version 1.8.8)
-
Add ESP8266 to File -> Preferences -> Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json
-
Install ESP8266 Board Tools -> Board: -> Boards Manager... -> Search "ESP8266" -> click Install
-
Install Libraries Tools -> Manage Libraries -> Search -> Select Version -> click Install
- Install ArduinoJson Library (tested with version 5.13.4)
- Install PubSubClient Library (tested with version 2.7.0)
-
Tools that you will need.
- Node MCU Py Flasher - Download it here https://github.com/marcelstoer/nodemcu-pyflasher/releases
- Download the latest .bin file from our releases. https://github.com/fireflyelectronix/wifidoorbell/releases
- FTDI programming tool - One that can switch to 3.3v logic and uses the FT232RL chip. https://www.amazon.com/gp/product/B07G2D34ZW
-
Conenct the FTDI to the J2 Header on the WiFi Doorbell Sensor.
FTDI Pin WiFi Doorbell Pin GND GND RX TX TX RX -
Program the WiFi Doorbell Sensor
- Press and hold SW1 prior to installing the battery. This puts the ESP8266 module into UART Download mode.
- Open the Node MCU Py Flasher tool. Change Erase Flash to - yes. All other settings keep on default
- Select the COM port that your FTDI programmer is plugged into.
- Select the .bin file that you downloaded from our relases.
- Click on Flash NodeMCU
The 4 pin header J2 is used for progamming.
1. Pin 1 - VCC
1. Pin 2 - GND
1. Pin 3 - TX
1. Pin 4 - RX