GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsA W5500 Ethernet shield gives an Arduino Uno a real network port, with no Wi-Fi passwords to manage. The Ethernet library asks the router for an address by DHCP, then serves a small web page. A BME280 on the I2C pins gives the readings, and the page refreshes itself every few seconds.
Keep this on your home network only.
Do not put it on a public address without a password.
Tick anything you already have and the total updates.
BME280 breakout on I2C
Follow the colours: red is power, dark grey is ground, blue is a signal.
Power the Uno from a USB adapter or a 7 to 9 V supply. Ethernet is not powered by the board.
ethernet_dashboard.inoVerify & upload in Electrolark#include <SPI.h>
#include <Ethernet.h>
#include <Wire.h>
#include <Adafruit_BME280.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x01 }; // any unique MAC on your network
EthernetServer server(80);
Adafruit_BME280 bme;
void setup() {
Serial.begin(9600);
if (!bme.begin(0x76) && !bme.begin(0x77)) Serial.println("BME280 not found");
if (Ethernet.begin(mac) == 0) Serial.println("DHCP failed");
server.begin();
Serial.print("Open http://"); Serial.println(Ethernet.localIP());
}
void loop() {
EthernetClient client = server.available();
if (!client) return;
while (client.connected() && client.available()) {
if (client.read() == '\n') break; // first request line is enough
}
while (client.available()) client.read(); // discard the rest of the request
client.println(F("HTTP/1.1 200 OK"));
client.println(F("Content-Type: text/html"));
client.println(F("Connection: close"));
client.println();
client.println(F("<!DOCTYPE html><html><head><meta http-equiv='refresh' content='5'><title>Room</title></head><body>"));
client.print(F("<h1>")); client.print(bme.readTemperature(), 1); client.println(F(" °C</h1>"));
client.print(F("<p>Humidity ")); client.print(bme.readHumidity(), 0); client.println(F(" %</p>"));
client.print(F("<p>Pressure ")); client.print(bme.readPressure() / 100.0, 0); client.println(F(" hPa</p>"));
client.println(F("</body></html>"));
delay(1);
client.stop();
}
Check the cable and that the router's lights are on. Try another LAN port.
Check SDA and SCL are on A4 and A5, and the address is 0x76 or 0x77.
Power the sensor from the right pin: some breakouts are 3.3 V only.
Not directly. It is only reachable on your own network unless you set up port forwarding, which is not safe for a hobby page.
It keeps working through router restarts and needs no password in the code.
The shield has a microSD slot. It shares the SPI bus, so give it its own CS pin.
6 parts: Uno R3 CH340G ATmega328p Development Board w/ Micro-USB, W5500 Ethernet Shield for Arduino, Generic ZY-BME280 Pressure Temperature Humidity Sensor Module – I2C Interface, W5500 Ethernet Module (SPI), Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (ethernet_dashboard.ino).
About ₹5,607 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How an Arduino web server answers a browser; DHCP and MAC addresses; Sharing SPI and I2C on one board.
Keep this on your home network only. Do not put it on a public address without a password.
Ideas that reuse this build: Wi-Fi thermostat. They are listed under Take it further on this page.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Learning project. Check every circuit and the datasheet of each part before you power it up.