GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsWired Ethernet is more reliable than Wi-Fi in panels, basements and noisy workshops. The WIZnet W5100S chip has its own TCP/IP stack, so the Pico only sends and receives data over SPI. The WIZnet Ethernet HAT matches the Pico's pinout: the Pico plugs on top and an RJ45 jack is on the board. This project uses CircuitPython and Adafruit's WIZnet5k library to serve a tiny page with the Pico's internal temperature and an LED button.
Keep it on your own network; there is no password on the page.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB from a PC or a 5 V phone charger.
code.pyimport board, busio, digitalio, microcontroller
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
import adafruit_wiznet5k.adafruit_wiznet5k_socketpool as socketpool
spi = busio.SPI(board.GP18, MOSI=board.GP19, MISO=board.GP16)
cs = digitalio.DigitalInOut(board.GP17)
rst = digitalio.DigitalInOut(board.GP20)
eth = WIZNET5K(spi, cs, reset=rst) # DHCP by default
print("IP", eth.pretty_ip(eth.ip_address))
led = digitalio.DigitalInOut(board.LED); led.direction = digitalio.Direction.OUTPUT
pool = socketpool.SocketPool(eth)
srv = pool.socket(); srv.bind((eth.pretty_ip(eth.ip_address), 80)); srv.listen(1)
while True:
conn, addr = srv.accept()
req = conn.recv(512).decode()
if "GET /toggle" in req:
led.value = not led.value
t = microcontroller.cpu.temperature
body = ("<h1>Pico on Ethernet</h1><p>Chip temperature: %.1f C</p><p>LED is %s</p>"
"<a href='/toggle'>Toggle LED</a>" % (t, "on" if led.value else "off"))
conn.send(("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n" + body).encode())
conn.close()
Check the cable link lights and that the router gives DHCP; the HAT's LEDs should blink.
The library folder is missing from CIRCUITPY/lib or is from another CircuitPython version's bundle.
Make sure conn.close() runs on every request; the W5100S has a few sockets only.
Yes, WIZnet's Arduino Ethernet library works with the W5100S on the same pins.
Yes, the Ethernet runs alongside or instead of Wi-Fi.
No, it is the chip's own sensor and reads a few degrees high; add a sensor for room readings.
2 parts: Raspberry Pi Pico with Headers and Micro USB Cable and WIZnet Ethernet HAT W5100S for Raspberry Pi. 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 (code.py).
About ₹1,283 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Hardware TCP/IP chips over SPI; DHCP and a simple HTTP server in CircuitPython; Why wired networks suit fixed installations.
Keep it on your own network; there is no password on the 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.