How to use the ESP8266 to control a relay.
ESP8266: Scanning WiFi Networks
The objective of this post is to explain how to scan the surrounding WiFi networks with the ESP8266. The code The code for this tutorial will be very simple and since we only want to scan and get some information about the surrounding WiFi networks, we will do all the coding on the setup function. …
ESP8266: DS3231 alarms once per second
The objective of this post is to explain how to configure the DS3231 to generate an alarm interrupt every second, using the ESP8266. Introduction The objective of this post is to explain how to configure the DS3231 to generate an alarm interrupt every second, using the ESP8266. The code for this tutorial is almost the …
ESP8266: DS3231 Alarm when seconds match
The objective of this post is to explain how to use the DS3231 Real Time Clock to trigger an alarm interruption when the time matches a specified value for the seconds. Introduction The objective of this post is to explain how to use the DS3231 Real Time Clock to trigger an alarm interruption when the …
ESP8266: DS3231 1Hz Square wave generator
The objective of this post is to explain how to use the square wave pin of the DS3231 to trigger interrupts with a period of 1 second in the ESP8266. Introduction The objective of this post is to explain how to use the square wave pin of the DS3231 to trigger interrupts with a period …
Continue reading "ESP8266: DS3231 1Hz Square wave generator"
ESP8266: Watchdog functions
The objective of this post is to analyse some of the watchdog functions available on the Arduino IDE libraries for the ESP8266. Introduction The objective of this post is to analyse some of the watchdog functions available on the Arduino IDE libraries for the ESP8266. A watchdog is a timer that, when not reset before …
ESP8266: Posting JSON data to a Flask server on the cloud
The objective of this post is to explain how to make a POST request containing JSON data to a cloud server, with the ESP8266. The cloud server will be implemented using Flask and will be hosted in Pythonanywhere. Introduction The objective of this post is to explain how to make a POST request containing JSON …
Continue reading "ESP8266: Posting JSON data to a Flask server on the cloud"
ESP8266: HTTP GET Requests to Flask server
The objective of this post is to explain how to connect the ESP8266 to a Flask Webserver and send a HTTP GET Request. The Python code For this example, we will use Flask to deploy a simple webserver that will listen to HTTP GET requests on a certain URL and output a simple text message …
Continue reading "ESP8266: HTTP GET Requests to Flask server"
ESP8266: Using a rain sensor
How to detect rain drops using the ESP8266, external interrupts and a rain sensor.
Electronics: Rain Sensor
The objective of this post is to describe a cheap rain sensor that can be used to detect rain with microcontrollers such as the Arduino or the ESP8266. Introduction The objective of this post is to describe a cheap rain sensor that can be used to detect rain with microcontrollers such as the Arduino or …