ESP8266 and ESP32 are popular WiFi development boards. These microcontroller boards are ideal for building the internet of things (IoT). We covered how to connect ESP8266 and ESP32 (or any MicroPython port) with a network connection for use as a WiFi station here. We used the MicroPython network module. This network module provides a driver…
How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
The 1-Wire protocol is a proprietary standard for serial data communication from Maxim Integrated. This protocol is a low-speed, half-duplex, bidirectional, low-power master-slave data communication standard used by several devices, including temperature sensors, real-time clocks, EEPROMs, identification (intellectual property protection) devices, timers, and iButtons. There can be only one master device on a 1-wire standard…
How to use ESP32’s sleep and wake-up modes in MicroPython
In a previous article, we covered sleep modes in ESP8266. ESP32 is another popular Wi-Fi development board from Expressif systems. It’s more feature-rich than ESP8266, but also more power-hungry. The power consumption of ESP32 can reach up to 790 mA when the Wi-Fi and Bluetooth are both operational — nearly double that of ESP8266, which…
MicroPython – SPI Protocol in ESP8266 and ESP32
SPI and I2C are the common serial communication protocols used by sensors for communicating with microcontrollers and microcomputers. Both protocols are master-slave protocols. The sensors often take the part of a slave device within an embedded ecosystem. Most of the time, a sensor only requires sending data to the microcontroller/microcomputer. This remains true even if…
MicroPython – I2C protocol in ESP8266 and ESP3
Sensors use slave-master protocols for interfacing with microcontrollers and microcomputers. Among many different slave-master protocols, I2C and SPI protocols are the common serial communication protocols widely found in embedded devices. Both protocols let the microcontroller/microcomputer take the master role and allow interfacing of several sensors and embedded blocks on a common bus. This tutorial will…
MicroPython: Serial data communication in ESP8266 and ESP32 using UART
Microcontroller boards require communicating data with a lot of other devices that include sensors, actuators, other microcontrollers, and microcomputers. This data transfer or exchange is carried over serial interfaces using standard protocols like UART, I2C, SPI, 1-wire, etc. UART is one of the common serial data communication protocols available on almost every microcontroller. UART is…
MicroPython – Generating PWM on ESP8266 and ESP32
Pulse Width Modulation (PWM) is one of the five basic functionalities in any microcontroller. The other four are digital input, digital output, analog input, and serial data communication. Most microcontrollers do not have a built-in digital-to-analog converter to output analog signals. However, most of the microcontrollers have one or more PWM output interfaces. PWM signals…
Getting started with ESP8266
ESP8266, a System-on-Chip (SoC) manufactured by ESpressif, is the most popular IoT development platform is a complete and self-contained Wi-Fi networking solution. The SoC consists of a Tensilica L106 32-bit microcontroller and a Wi-Fi transceiver. Therefore, the chip can be used to self-host an IoT or embedded application or offload Wi-Fi networking functions to another…
TCP/IP Based IoT Communication with ThingSpeak Platform : IoT Part 29
In the previous tutorial, features, advantages and limitations of TCP/IP Protocol were discussed. Though, TCP/IP is not best suited for IoT applications due to packet overheads, still being the most common protocol stack on internet, it offer ubiquitous connectivity. An IoT device can be made to communicate with a cloud or server using TCP/IP protocol without any hassle of network programming and network administration. In this project, an IoT device will be designed that could transmit sensor data to ThingSpeak Platform using the TCP/IP protocol.
Servo motor interfaced with nodemcu esp8266 12e: Controlling servo motor over WiFi
This tutorial is about interfacing a servo motor with nodemcu esp8266 WiFi module. A web page is served by the nodemcu which enlists the servo motor controls. User can connect to nodemcu esp8266 and access the web page. To open the web page in browser user has to type the HTTP address of the server…
Nodemcu esp8266 stepper motor NEMA 17 controlled over WiFi
This tutorial is about controlling stepper motor over WiFi through desktop or mobile web browser using nodemcu esp8266 WiFi module. Nodemcu will work as a server and it will serve a web page. Web page contains the stepper motor control buttons. Stepper motor takes steps to complete one full 360 degree rotation. Number of steps…
Battery voltage monitor with NodeMCU Esp8266-12E WiFi module
Measuring the voltage of your solar panel, ups, and other daily use batteries consumes a lot of time. Grabbing multi-meter, opening the battery boxes, and touching both the multi-meter leads to terminals of the battery takes some effort. How about developing an efficient IoT system through which you can see the status of your battery…
Measuring temperature over WiFi: LM35 temperature sensor interfaced with Nodemcu Esp8266-12e module
This is a simple DIY project on internet of things applications. How to monitor room temperature over WiFi? One can see temperature on his mobile, laptop or desktop computer by this DIY project. Popular LM35 temperature sensor is interfaced with Nodemcu ESP8266-12e WiFi module. Nodemcu gets raw temperature voltage form lm35, converts the voltage in…
How to measure voltage of multiple batteries connected in string/array in series or parallel combination with microcontrollers
Measuring an individual battery voltage or a whole bank of battery using any microcontroller(arduino, microship pic, Avr, Atmega, Intel, NXP, stm32)is an easy task. You can find many tutorials on internet on how to do so. But what about if we want to measure an individual battery connected to a cluster of batteries in series…
Sensor types used in the IoT
Use of sensors is pretty common in industries and organizations. But, Internet of Things (IoT) has put the usage of sensors at a completely different level. Again, the entire concept of IoT exists and survived because of sensors. What role does sensors play in IoT? Simply answered, they are the medium through which various physical objects are connected through Internet. IoT platforms function and deliver various kinds of intelligence and data using a variety of sensors. The world has gone digital and “smarter” through the interconnection of things via Internet through sensors.
Communication between two esp8266 wifi modules programmed in arduino ide
This tutorial is about inter communication between 2 esp8266 WiFi modules. I will explain the method and code of inter communication between two esp8266 modules. I was working on a cool embedded project in which a wireless communication is required between two motors placed a part on a small distance, also the status of the motors…
Esp8266 Programmed in Arduino Ide using ft232 programmer and Arduino
Recently i made a pcb board which involves an esp8266 wifi module installed on it. I wanted to upload the code to esp8266 flash while it is installed on the board. So i pulled out its programming interface pins as a stand alone connector. While doing this project i encountered some problems and the most…
Smart garden weather station with nodemcu WiFi module
In the era of internet of things its now our need to bring control of every thing over internet. Monitoring and controlling peripherals, devices, sensors and nodes remotely saves time and resources. Many of us have gardens in front or back of our houses. Suitable amount of water and normal temperature is crucial for plants…
Send sms with nodemcu Esp8266 12-e using sim900 GSM module
Though nodemcu is a wifi module but some times it is required to send an sms with a WiFi application. An IOT trigger or event may require us to send an sms. In this project i am going to show how to send an sms with nodemcu WiFi module. To send an sms we need…
7 segment display interfaced with nodemcu WiFi module: Displaying numbers on seven segment display through a web page
This tutorial is on interfacing 7 segment display with nodemcu esp8266 12e WiFi module. Numbers are going to be displayed on 7 segment display. Seven segment display control is given to a web page. Web page contain buttons. Their are total 9 buttons and each button is assigned a number from 1 to 9. Pressing…