Electronics tutorials including microcontroller, microprocessor, programing and circuits. Intended for beginners, electronics hobbyists, college students, professionals and educational purposes.

ESP8266 as MQTT Client - Arduino IoT Tutorial

ESP8266 as MQTT Client – Arduino IoT

IoT or Internet of Things is an emerging technology which enables us to create a network of devices, sensors, actuators to connect and exchange data. MQTT (Message Queuing Telemetry Transport) is one of the commonly used protocol in this field. It consists of MQTT Broker and MQTT Clients. Where MQTT Broker is the server through which all MQTT Clients are communicating each other. CloudMQTT provides MQTT Broker as a service, which we are using in this tutorial. In this project [...]

Read more...
System Configuration - OpenWrt

How to change Hostname of OpenWrt ?

Sometimes you may need to change the hostname of your OpenWrt. Host name is stored in the system configuration file. You can view it in the following command. cat /etc/config/systemSystem Configuration – OpenWrt It is very easy to change hostname of OpenWrt, using following commands. Here we are changing our hostname to “electroSome”. uci set [email protected][0].hostname='electroSome' uci commit system /etc/init.d/system reloadChanging Hostname of OpenWrt

Read more...
OpenWrt Logo

Getting Started with OpenWrt C Programing

In this tutorial we will learn how to cross compile a C program for OpenWrt. Cross compiling a C program for OpenWrt is a little complicated task for beginners. So I thought of writing a detailed tutorial for it. Please feel free to comment below if you have any doubts or you want to add anything more to this article.OpenWrtPrerequisite You need a linux system for making the OpenWrt build environment. We are using Ubuntu in this tutorial. Windows 10 [...]

Read more...
json

Calling API using ESP8266

The objective of this tutorial is to explain how to do HTTP JSON GET requests using an ESP8266 and Arduino IDE. Components RequiredESP8266 USB CableHardware Connect ESP8266 to Computer   Software Code #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h>const char* ssid = "SERVER NAME"; const char* password = "SERVER PASSWORD";void setup() { Serial.begin(115200); WiFi.begin(ssid, password);while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting..."); } }void loop() { if (WiFi.status() == WL_CONNECTED) { HTTPClient http; [...]

Read more...

Interfacing GPS with Arduino

GPS stands for Global Positioning System. GPS module find the location (latitude, longitude, altitude) by comparing the time taken for receiving signals from satellites in its vicinity. GPS offers a great accuracy and also provides other data besides position coordinates. Components RequiredArduino Uno GPS Breadboard Connecting WiresHardware Circuit Diagram Interfacing GPS with Arduino – Circuit Diagram ConnectionsConnect TX pin of GPS Module to pin number 4 of Arduino Uno. Connect RX pin of GPS Module to pin number 3 of Arduino Uno. Connect Red wire (5V pin) of GPS module to [...]

Read more...
Interfacing PIR Sensor with Arduino - Practical Implementation

Interfacing PIR Motion Sensor with Arduino

A PIR sensor is generally known to the world as a motion sensor or motion detector. So in this project we are going to use the PIR motion sensor to detect motion. Here we are going to sense movement of human by using Passive infrared sensor (PIR sensor). Using the feedback from the sensor we will control an LED with the help of Arduino Uno. Components RequiredArduino Uno PIR Sensor 330Ω Resistor LED Breadboard Connecting WiresHardware Circuit Diagram Interfacing PIR Motion Sensor with Arduino – Circuit Diagram Circuit Explanation Connection between PIR Sensor [...]

Read more...
Interfacing GSM Modem with Arduino - Practical Implementation

Interfacing GSM Module with Arduino

In this article, I am going to explain about interfacing of GSM Module with Arduino. Interfacing a GSM module to Arduino is pretty simple. We have to make only 3 connections between the GSM module and Arduino. For the working demonstration we will be sending an SMS to a particular number whenever a switch is pressed. Components RequiredArduino Uno GSM Modem Switch 1kΩ Resistor Breadboard Connecting WiresHardware Circuit Diagram Interfacing GSM Modem with Arduino – Circuit Diagram ConnectionsConnect TX pin of GSM Module to RX pin of Arduino Uno. Connect RX pin [...]

Read more...
Interfacing Moisture Sensor with Arduino

Interfacing Soil Moisture Sensor with Arduino

Introduction In this article, we are going to interface a Soil Moisture Sensor with Arduino Uno. We will measure the moisture content of soil in pot or farming field and by using this we can pour water into field based on preset values. This sensor measures the volumetric content of water inside the soil (based on resistance/conductivity) and gives the moisture level as output. The sensor is equipped with both analog and digital output, so it can be used in both [...]

Read more...