All packs

Connected

Gold price box

A desk box that shows the live world gold price. Its light is green when the price has risen since the last reading and red when it has fallen.

  • Medium
  • about 55 min
  • ESP32-S3
  • 6 parts
  • 11 wires
  • 108 lines of code
  • Uses Wi-Fi

ESP32 packs are built on real parts: the simulator runs Arduino Uno circuits only.

Idea

It shows the world spot price in US dollars per ounce, from a free public service. That is not the price a shop in your street charges for a tael of gold, which includes its own margin.

What you learn

Fetching a number from a web API on a schedule, and comparing it with the last one.

How it works

  1. input

    Gold price from the internet

  2. decides

    ESP32-S3 · Wi-Fi

  3. output

    TFT 1.54 in

    RGB LED

Powered with 5 V through the board's USB-C port.

It joins your home Wi-Fi. You type the network name and password into the sketch before uploading; they stay on the board.

A reference design. The sketch is compiled with the real ESP32 toolchain, and its pins are checked against the wiring table automatically. It has not yet been built and tested on real parts by us, so wire it on the bench and run the checks before you build it into a case. Real modules vary: follow the labels printed on yours, not their position in the picture.