Neopixel ring colour picker App using Flutter through NodeMCU

This is an App developed in Flutter to set your desired colour on Neopixel ring from a mobile App. Circuit is done as shown in the following diagram.

Download the NeoPixelColorPicker library from the following link. Unzip and copy the downloaded library to your Arduino libraries folder.

NeoPixelColorPickerDownload

Restart the Arduino software and open the example program from File -> Examples ->

Read More
16-bit shift register module using 74HC595 controlled through NodeMCU

16-bit shift register module will help you to create 16 digital outputs from only 3 digital outputs of NodeMCU. Circuit is done as shown in the diagram. Upload the following program to your NodeMCU.

/* Shift Register Example Turning on the outputs of a 74HC595 using an array Hardware: * 74HC595 shift register * LEDs attached to each of the outputs of the shift register */ //Pin connected to ST_CP (12) of 74HC595 int latchPin = 0;
Read More
Real time temperature monitoring and device control from mobile App developed on Flutter through NodeMCU

A temperature monitoring system which will turn ON a device such as cooling fan, when the temperature is increased above an upper threshold. Similarly, device will be turned OFF when the temperature is decreased below lower threshold. In between lower threshold and upper threshold, device will continue its state. Circuit is done as shown in the following diagram.

Download the TemperatureMonitorAndDeviceControl library from the following link.

TemperatureMonitorAndDeviceControl-newDownload

Unzip and copy the downloaded library to Arduino libraries folder.

Pages:  1 2
Read More
Read temperature from NodeMCU through mobile app developed on Flutter, on button press

This circuit and programs will help you to send HTTP request from the mobile device through an App to read the temperature from NodeMCU. NTC thermistor is used as the temperature sensor. Temperature will be updated when the “Read temperature” button is pressed. Circuit is done as shown in the following diagram.

Download TemperatureMonitor library from the following link. Unzip and copy the downloaded library to your Arduino libraries folder.

TemperatureMonitorDownload

Restart Arduino software and open File ->

Read More
Mobile App using Flutter to Turn On and Turn OFF LED through NodeMCU

This is a basic project for beginners who want to control an LED from a mobile device. Circuit is done as shown in the diagram. NodeMCU is used as the controller in Circuit.

Download the LEDcontrol library from the following link.

LEDcontrolDownload

Unzip and copy the downloaded library to your Arduino libraries folder.

Restart Arduino software and open

File ->

Read More
NeoPixel ring colour picker with touch and drag support from Mobile device through NodeMCU over WiFi using javaScript

Arduino Program

#include <Adafruit_NeoPixel.h#ifdef __AVR__ #include <avr/power.h// Required for 16 MHz Adafruit Trinket #endif #define PIN D2 #define NUMPIXELS 16 Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (in milliseconds) to pause between pixels #include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <FS.hconst char* htmlFile = "/index.html"; const char* ssid = "NodeMCU"; const char* password = "xxxxxxxxxxx"; int count = 0; #define LED 2 ESP8266WebServer server(80); void handleRoot() { server.sendHeader("Location",
Read More
NeoPixel ring colour picker from Mobile device through NodeMCU over WiFi using jQuery

Arduino Program

#include <Adafruit_NeoPixel.h#ifdef __AVR__ #include <avr/power.h// Required for 16 MHz Adafruit Trinket #endif #define PIN D2 #define NUMPIXELS 16 Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (in milliseconds) to pause between pixels #include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <FS.hconst char* htmlFile = "/index.html"; const char* ssid = "NodeMCU"; const char* password = "xxxxxxxxxxx"; int count = 0; #define LED 2 ESP8266WebServer server(80); void handleRoot() { server.sendHeader("Location",
Read More
Real time data monitoring from NodeMCU through graphical interface using jQuery

Arduino Program

#include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <FS.hconst char* htmlFile = "/index.html"; const char* ssid = "NodeMCU"; const char* password = "xxxxxxxxxxx"; int count = 0; #define LED 2 ESP8266WebServer server(80); void handleRoot() { server.sendHeader("Location", "/index.html", true); server.send(302, "text/plane", ""); } void handlePWM() { String PWM = server.arg("pwm"); int p = 1024 - (PWM.toInt()) * 10; Serial.println(p); analogWrite(LED, p); server.send(200, "text/plane", ""); } void getCount() { server.send(200, "text/plain", String(count).c_str()); Serial.print("Sending "); Serial.print(count); Serial.println(" to the client device...");
Read More
Web interface from NodeMCU – Part 5, jQuery and Bootstrap on NodeMCU

Arduino Program

#include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <FS.hconst char* htmlFile = "/index.html"; const char* ssid = "NodeMCU"; const char* password = "xxxxxxxxxxx"; int count = 0; ESP8266WebServer server(80); void handleRoot() { server.sendHeader("Location", "/index.html", true); server.send(302, "text/plane", ""); } void handleWebRequests() { if(loadFromSpiffs(server.uri())) return; String message = "File not detected\n\n"; message += "URI: "; message += server.uri(); message += "\nMethod: "; message += (server.method() == HTTP_GET)?"GET":"POST"; message += "\nArguments: "; message += server.args(); message += "\n";
Read More
Web interface from NodeMCU – Part 4, Scan and list available WiFi networks

WiFiNewLibrary.h (Download this file from the attachment given below)

WiFiNewLibrary_hDownload

WiFiNewLibrary.cpp

#include "WiFiNewLibrary.h" WiFiNewLibrary::WiFiNewLibrary() { } void WiFiNewLibrary::setupConfigPortal() { server.reset(new ESP8266WebServer(80)); if(_apPassword != NULL) { if(strlen(_apPassword) < 8 || strlen(_apPassword) 63) { Serial.println("Invalid password..."); _apPassword = NULL; } } if(_apPassword != NULL) { WiFi.softAP(_apName, _apPassword); } else { WiFi.softAP(_apName); } Serial.println("AP IP Address"); Serial.println(WiFi.softAPIP()); server -on(String(F("/")).c_str(), std::bind(&WiFiNewLibrary::handleRoot,
Read More
X