Today in this tutorial we will learn importance of watchdog timer and configuring watchdog timer in Arduino.
What is Watchdog Timer ?
A watchdog timer (WDT) is a hardware timer that automatically generates a system reset if the main program neglects to periodically service(reset) it. The Watchdog Timer is clocked from a separate On-chip Oscillator which runs at 1 MHz. This is the typical value at V CC = 5V. It is often used to automatically reset an Arduino that hangs because of a software or hardware fault. Some systems may also refer to it as a computer operating properly (COP) timer. All Arduino boards have watchdog timer hardware. Continue reading Tutorial On Arduino Watchdog Timer Setup
Most beginner have questions on which one is for me? Arduino or Raspberry Pi to know which is for you ? We must know what is arduino and Raspberry pi.
What is the difference between the Arduino and Raspberry Pi?
In short Arduino is microcontroller board based on ATmega328p microcontroller without OS running at 16MHz clock having memory in kilo bytes and Raspberry Pi is like single board computer running at 1.2 Ghz speed with Linux operating system with memory in Giga bytes. Continue reading Arduino vs Raspberry Pi
This ESP8266 PWM example explains how to use the Pulse Width Modulation (PWM) with the ESP8266.
ESP8266 can generate PWM on all IO pins. The ESP8266 analogWrite is different than the Arduino Uno. ESP8266 uses 10-bit resolution for PWM generation PWM value varries from 0 to 1023. Arduino Uses 8-Bit Resolution i.e.PWM range is 0-254.
Continue reading ESP8266 PWM Example
The new KEYES 5V Relay Module is perfectly made for Arduino application. It has three pins, the VCC, GND and Signal. It can act as switch if the circuit and the load circuit have different supply voltage. It is commonly use if the load circuit is AC. It is a switch used to connect isolated connection from the circuit using a circuit signal. It has red LED that turns on every time the coil is energized or the signal pin has a high input. Commonly used in automation control circuit, it is actually a small Current to control a large current operation “automatic switch.”
Arduino Connection with Relay Module
For the DC part of the circuit:
Arduino digital pin 10 –> module pin S
Arduino GND –> module pin –
Arduino +5V –> module pin +
AC Part of the circuit:
On the AC side connect your feed to Common (middle contact) and use NO (Normally Open) to Lamp. It will get power when (S) is high.
Warning: Always be very careful when experimenting with AC, electrical shock can result in serious injures.
Relay module from bottom side is open when AC is connected do not touch the circuit.
Arduino Program for Relay module
//KY019 5V relay module
int relay = 10; // relay turns trigger signal - active high;
void setup ()
pinMode (relay, OUTPUT); // Define port attribute is output;
void loop ()
digitalWrite (relay, HIGH); // relay conduction;
digitalWrite (relay, LOW); // relay switch is turned off;
This program will turn on and off the Lamp. Similar to Blink example. You can see module led also blinks.
In this tutorial we are making ESP8266 web server with HTML web page. ESP8266 connects to WiFi Network and we get web page in our phone and PC which is connected to same WiFi network.
In previous tutorial we have seen how to make ESP8266 as Access point and web server.
A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers’ HTTP clients. Continue reading ESP8266 Web Server with HTML Web Page