Real time monitoring of temperature from NodeMCU,  on mobile App developed on Flutter

This is a basic app for real time monitoring of temperature from NodeMCU. NTC thermistor is used as the temperature sensor. Mobile device will send HTTP request on every three seconds periodically to get the temperature from NodeMCU. Circuit is done as shown in the following diagram.

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

TemperatureMonitorDownload

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

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
Patterns in cascaded 16-bit serial-in parallel-out shift register modules using Arduino UNO
/* 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 = 12; //Pin connected to SH_CP (11) of 74HC595 int clockPin = 11; ////Pin connected to DS (14) of 74HC595 int dataPin = 10; //holders for information you're going to pass to shifting function byte data;
Read More
Interfacing 16-bit serial-in parallel-out Shift register module to Arduino UNO

Here, we will see the circuit to interface a 16-bit serial-in parallel-out Shift register module using Arduino UNO. Shift register module is powered from Arduino UNO.

This module will help to create 16 digital outputs from only 3 digital pins of Arduino. This module can be used in applications where more digital outputs are required such as LED cube, LED matrix etc.

Upload the following program to Arduino UNO. Change the value in customDelay() function to change the speed of running LED.

Read More
Program to turn on VS1003 builtin MIC using NodeMCU

Upload the following program to your NodeMCU. Connect headphone and speak something through the MIC. Voice can be heard in the head phone.

#include <VS1003ESP12.h#include <ESP8266WiFi.h#include <SPI.h// VS1003 SCI Write Command byte is 0x02 #define VS_WRITE_COMMAND 0x02 // VS1003 SCI Read COmmand byte is 0x03 #define VS_READ_COMMAND 0x03 const int csPin = D1; const int dcsPin = D0; const int dreqPin = D2; const int resetPin = D3; // SCI Registers const uint8_t SCI_MODE = 0x0;
Read More
.96″ OLED display using Arduino UNO, I2C programming basics

This tutorial illustrates the basics of programming .96″ OLED display from Arduino by I2C interface. This program will give you an idea about the control and data bytes that should be sent to the OLED display.

#include <Wire.h#define SSD1306_DEACTIVATE_SCROLL 0x2E #define SSD1306_MEMORYMODE 0x20 ///< See datasheet #define SSD1306_COLUMNADDR 0x21 ///< See datasheet #define SSD1306_PAGEADDR 0x22 ///< See datasheet #define SSD1306_SETCONTRAST 0x81 ///< See datasheet #define SSD1306_CHARGEPUMP 0x8D ///< See datasheet #define SSD1306_SEGREMAP 0xA0 ///<
Read More
“WAV” audio file creation on SD card using Arduino Mega, circuit and program
#include <SD.hconst unsigned char createWavTemplateArray[] = { 0x52, 0x49, 0x46, 0x46, // Chunk ID (RIFF) 'R', 'I', 'F', 'F', 0x20, 0x20, 0x20, 0x20, // Chunk payload size 0x57, 0x41, 0x56, 0x45, // RIFF resource format type 'W', 'A', 'V', 'E' 0x66, 0x6D, 0x74, 0x20, // Chunk ID (fmt) 'f' , 'm' , 't' , ' ' , 0x10, 0x00, 0x00, 0x00, // Chunk payload size (0x14 = 20 bytes) 0x01, 0x00, // Format Tag (IMA ADPCM) 0x01,
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 2 of : 32-bit shift register module using ESP-12F IOT module

Important : In the ESP-12F IOT module, jumper should be placed across 5V and COM as encircled in the following image. Otherwise, high voltage may destroy your 32-bit shift register module.

In the previous blog, we saw the circuit for programming ESP-12F IOT module.

Product links

CP2102 USB 2.0 to TTL UART SERIAL CONVERTER : https://robu.in/product/cp-2102-6-pin/

ESP-12F IOT Module : 

Read More
X