Main Content

Many IoT based Home Automation projects crashes when the Internet speed goes down. So, within this project, I tried to solve this issue.

Introduction:
Many IoT based Home Automation projects crashes when the Internet speed goes down. So, within this project, I tried to build such an IoT prototype that can automate the Home not only when Internet speed is good but also when Internet speed goes down. In this project, I’m going to use OSH NodeMCU V1.0 ESP8266 Development Board and Bluetooth HC-05 Module for communication & control of 4 AC loads connected to NodeMCU with Blynk Android App & my custom-made Bluetooth Automation App. Blynk App can be used when Internet speed is good on both sides & Bluetooth Automation App can be used when you are near the project & not have the internet at all.

You can add a relay module to control actual electrical appliances like water pumps, geysers, LED bulbs, Fans, etc. For providing a 5V supply to a project I have connected Arduino Uno’s +5V & GND pin to the Vin & GND pin of NodeMCU board, instead of IC 7805 & Battery.

NodeMCU is a low-cost open-source IoT platform. It initially included firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems and hardware which was based on the ESP-12 module. Later, support for the ESP32 32-bit MCU was added. NodeMCU is an open-source firmware for which open-source prototyping board designs are available. The name “NodeMCU” combines “node” and “MCU” (micro-controller unit).The term “NodeMCU” strictly speaking refers to the firmware rather than the associated development kits. Both the firmware and prototyping board designs are open source.

The firmware uses the Lua scripting language. The firmware is based on the Lua project and built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-json and SPIFFS. Due to resource constraints, users need to select the modules relevant to their project and build a firmware tailored to their needs. Support for the 32-bit ESP32 has also been implemented.

The prototyping hardware typically used is a circuit board functioning as a dual in-line package (DIP) which integrates a USB controller with a smaller surface-mounted board containing the MCU and antenna. The choice of the DIP format allows for easy prototyping on breadboards. The design was initially was based on the ESP-12 module of the ESP8266, which is a Wi-Fi SoC integrated with a Tensilica Xtensa LX106 core, widely used in IoT applications (see related projects).

Voltage: 3.3V
Wi-Fi Direct (P2P), soft-AP
Current consumption: 10uA~170mA
Flash memory attachable: 16MB max (512K normal)
Integrated TCP/IP protocol stack
Processor: Tensilica L106 32-bit
Processor speed: 80~160MHz
RAM: 32K + 80K. • GPIOs: 17 (multiplexed with other functions)
Analog to Digital: 1 input with 1024 step resolution
+19.5dBm output power in 802.11b mode
802.11 support: b/g/n
Maximum concurrent TCP connections: 5”

Link to article