Tutorials ESP8266: Arduino IDE programming – Web Server – Web Client – IoT

The ESP8266 is a small revolution in the family of Arduino microcontrollers. It is programmed as an Arduino using the Arduino IDE or in the Lua language (close to the Python). It is found for about 4 €. The ESP8266 has an analog input (3.2V), a serial port (RX / TX) and 9 digital inputs (3.3V max). You will find in this section many tutorials that address the following:

  • Installing (or reinstalling) the firmware, updating the firmware : NodeMCU (Lua), ESP Easy (IoT without programming)…
  • Programming from the Arduino IDE and using libraries
  • Web Server Programming: we add an HTML interface to drive the ESP8266 from a tablet, a smartphone, a computer from home or from the internet
  • Web Client programming: query services on the Internet (weather, time server …) or send data on an online service (Thingspeak…)
  • Example of code and tutorials in domotics, connected objects …
  • And many other projects

ESP8266, Deep Sleep mode test, wake up with a PIR motion detector

The ESP8266 module has the deep sleep mode which allows to put it in hibernation to save the battery. You can wake up the module at regular intervals to make measurements and publish them on a server. The RESET pin (RST) is also used to wake the ...

WebSocket communication with an ESP8266 or Arduino in Python. Test with the ws4py library on Raspberry Pi

The Websocket is a much faster communication protocol than the REST protocol that uses standard HTTP requests. The Websocket allows to open a bi-directional communication channel between two devices. In this case, it will be between an ES8266 (but ...

Publish the CO2 concentration of an MH-Z19 sensor to Domoticz, Arduino code compatible ESP32 / ESP8266

In the previous tutorial, we discovered and tested the MH-Z19 sensor which allows to measure the CO2 concentration without calibration. We saw how to read the CO2 concentration returned on the sensor PWM pin in MicroPython and then publish it on a ...

ESP32 MicroPython project with several DS18B20 probes, publish the measurements to Domoticz using the HTTP JSON API

After several articles to present the principles of MicroPython on ESP8266 and ESP32 development board, it's time to get down to business. I propose to take the Arduino reading code of several Dallas DS18B20 temperature measurement probes in ...

Unpacking the Geekcreit PCA9685 I2C Shield 16 Servos + 2 DC motors for Arduino or ESPDuino (ESP8266)

The Arduino Uno or ESP8266 boards do not deliver enough power to power the 6 robotic arm servo motors discussed earlier in this article. So you have to buy a daughter board with an external power supply that can deliver enough power. There are many ...

OLED display SSD1306 in MicroPython, example with a I2C digital barometer BME280 (or BMP180)

I propose today to learn how to detect the devices connected to the bus i2c in MicroPython. For this tutorial, we will retrieve the measurements returned by a BME280 environment sensor that measures temperature, atmospheric pressure and humidity. ...

ESP8266 + DHT22 + MQTT: make a connected object IoT and include it in Home Assistant

ESP8266 + DHT22 + MQTT, here's how we will learn how to make our first connected object (a temperature probe) and connect it to the Home Assistant server. To realize this connected object we will need a WiFi module ESP8266, a DHT22 temperature and ...

Program the ESP8266 with the Arduino IDE: Libraries, GPIO, Web Server, Web Client

In many applications, ESP8266 WiFi modules can replace Arduino by adding Wi-Fi connectivity at a lower cost. At the launch of ESP8266 (in 2014), the preferred programming language was Lua (we can always program in this language!). Quickly, the vast ...

How to reinstall the MicroPython firmware on an ESP8266 or ESP32 with the esptool.py script

In the previous tutorial, we were able to test the firmware MicroPython which is now pre-installed by default on the Wemos LoLin32 Lite. The MicroPython firmware is available for many micro-controllers. The pyBoard development boards (cards ...

ArduinoOTA: Wireless Update (OTA) from the Arduino IDE of ESP8266 Programs

The ArduinoOTA library is a library that allows to update the Arduino program (and ESP3226, ESP32) wirelessly in Wi-Fi. It is an essential library when developing connected objects. It allows to update the program without having ...

DIY Projects