NodeMCU web server showing DHT11 data

In this example we will connect a DHT11 to a Node MCU v1.0 (you could use any ESP8266 board) board and we will display the temperature and humidity readings on a web page. The web page updates every 5 seconds I wouldn't recommend changing…

Arduino web server showing DHT11 data

In this example we will use a DHT11 sensor and display the humidity and temperature on a web page. You can use any temperature sensor but the DHT11 is fairly low cost and there are libraries written for it, it comes in modules and even if…

Arduino webserver displaying a bootstrap example

Recently I was interested to see if you could create a web page that could be stored on an SD card and using an Arduino ethernet shield display this via an IP address Initially I downloaded a free template and copied this on to my SD card…

Arduino SD Card Web Server example

The ethernet shield has an SD card fitted to it, this means that rather than having to write sketches full of html code you can create html files, put them on the sd card file system then serve them via your ARduino sketch. This is what we…

Wemos Mini read the state of a switch

In the previous examples using theWemos Mini we controlled an led and an rgb led using pins as outputs but you can also easily monitor the state of an input, in this case we will use a switch Basically it will be a web page which shows…

Controlling an RGB led using a Wemos Mini

In this example we will connect an RGB led to a Wemos Mini, we will then create an example web page that will display buttons to switch on and off the various individual leds of an RGB led. Our code example is based on a common cathode RGB…

Wemos flash an LED on and off webserver example

In this example we will create a basic webserver example using our Wemos D1, it will connect to your Wifi network and then you will navigate to a URL and a basic page will appear. This page will display 2 links , one will switch on an led …

Arduino ethernet shield read switch example

In the previous examples using the Ethernet Shield for the Arduino we controlled an led and an rgb led using pins as outputs but you can also easily monitor the state of an input, in this case we will use a switch Basically it will be a web…

Control an LED from a Web browser with an Arduino

A simple way of adding network access to your Arduino Uno and Mega is the Ethernet Shield, there are a few clones out there but they all generally work the same way. The Arduino Ethernet Shield allows an Arduino board to connect to the…