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
Web interface from NodeMCU – Part 1, Basic interface

WiFiNewLibrary.h

#ifndef WiFiNewLibrary_h #define WiFiNewLibrary_h #include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <memoryextern "C" { #include "user_interface.h" } const char HTTP_HEADER[] PROGMEM = "<!DOCTYPE html<html lang=\"en\"<head<meta charset=\"UTF-8\"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/<title{v}</title"; const char HTTP_STYLE[] PROGMEM = "<style.c{text-align: center;} div,input{padding:5px;font-size:1em;} input{width:95%;} body{text-align: center;font-family:verdana;} button{border:0;background-color: #58d68d;color:#fff;line-height:2.4rem;font-size:1.2rem;width:100%;} .q{float: right;width: 64px;text-align: right;} </style"; const char HTTP_HEADER_END[] PROGMEM = "</head<body<div style='text-align:left;display:inline-block;min-width:260px;'"; const char HTTP_PORTAL_OPTIONS[] PROGMEM = "<form action=\"/wifi\" method=\"get\"<buttonConfigure WiFi</button</form<br/<form action=\"/i\" method=\"get\"<buttonESP8266 Info</button</form<br/<form action=\"/r\" method=\"post\"<buttonReset ESP8266</button</form";
Read More
0-9999 UP counter with RESET from Arduino UNO

Circuit is done as shown in the diagram. Upload the following program to Arduino UNO.

const int CLK = 2; const int RESET = 3; int count = 0; int countLimit = 36; // the setup function runs once when you press reset or power the board void setup() { pinMode(CLK, OUTPUT); pinMode(RESET, OUTPUT); digitalWrite(RESET, HIGH); delay(100); digitalWrite(RESET, LOW); } // the loop function runs over and over again forever void loop() { digitalWrite(CLK,
Read More
0 – 9999 counter module using Arduino UNO

Circuit is done as shown in the diagram. Upload the following program to Arduino UNO.

// the setup function runs once when you press reset or power the board void setup() { pinMode(2, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); // wait for 100 mS digitalWrite(2, LOW); // turn the LED off by making the voltage LOW delay(100);
Read More
Communication between ESP-12F IOT module and SD card module using Arduino

References :

Refer https://haberocean.com/2019/05/esp-12f-iot-module-programmer-circuit/ to get the programming basics.

Upload the following program to ESP-12F IOT module.

/* Listfiles This example shows how print out the files in a directory on a SD card The circuit: SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created Nov 2010 by David A.
Read More
7-digit seven segment display module using Arduino UNO through 32-bit serial-in parallel-out shift register module

Upload the following program to Arduino board

//Pin connected to ST_CP (12) of 74HC595 int latchPin = 12; //Pin connected to SH_CP (11) of 74HC595 int clockPin = 11; ////Pin connected to DS (14) of 74HC595 int dataPin = 10; int numDigitArray[7] = {0, 0, 0, 0, 0, 0, 0}; int dotPointArray[7] = {0, 0, 0, 0, 0, 0, 0}; void displayValueAndDigit(byte value,
Read More
7-digit seven segment display module using Arduino UNO
#define D0 9 // A terminal of seven segment display module #define D1 10 // B terminal of seven segment display module #define D2 11 // C terminal of seven segment display module #define D3 12 // D terminal of seven segment display module #define LE1 2 #define LE2 3 #define LE3 4 #define LE4 5 #define LE5 6 #define LE6 7 #define LE7 8 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pins as output.
Read More
Part 4 of : 7-digit seven segment display using ESP-12F IOT module through 32-bit serial-in parallel-out shift register module

Modules required

Reference blogs

ESP-12F IOT module programmer circuit and explanation : https://haberocean.com/2019/05/esp-12f-iot-module-programmer-circuit/

32-bit serial-in parallel-out shift register module using ESP-12F IOT module : https://haberocean.com/2019/05/32-bit-shift-register-module-using-esp-12f-iot-module/

Control the outputs of ESP-12F IOT module from android app : https://haberocean.com/2019/06/part-3-of-control-the-outputs-of-esp-12f-iot-module-from-an-android-app/

Video demonstration

Upload the following program to your ESP-12F IOT module.

Read More
Part 3 of : Control the outputs of ESP-12F IOT module from an Android APP

Upload the following program to ESP-12F IOT module. Before starting this, read my previous blog on the basics of programming ESP-12F IOT module.

#include <ESP8266WiFi.h#include <WiFiClient.h#ifndef APSSID #define APSSID "PaulESP" #define APPSK "paulsin91@" #endif // Variable to store the HTTP request String header; /* Set these to your desired credentials. */ const char *ssid = APSSID; const char *password = APPSK; int ledPin = 13; // GPIO13 WiFiServer server(80);
Read More
X