knaxuslearn · build · ship

Projects / Temperature logger / Before you start

Before you start

You need:

  • a BeagleBone Black (any revision) with its USB cable,
  • a microSD card of 8 GB or more, if your board needs a fresh system,
  • a TMP36 temperature sensor, a small breadboard and three jumper wires with a male end,
  • Python 3.9 or newer on your laptop, to write and test the code before it goes on the board.

Check your laptop's Python:

python3 --version

The board needs a recent Debian image from beagleboard.org. Follow their guide to write it to the microSD card and boot from it. The images come with Python 3 and SQLite already installed.

Every listing in this project was run on Python 3.13 on Linux, against the pretend sensor you will write in Step 1.5. The commands that only make sense on the board, such as wiring and installing the service, follow the BeagleBone and Debian documentation. We did not have a board on the desk when we ran this guide, so where the board prints something we tell you what to expect instead of pasting output.

Make a folder on your laptop:

mkdir templogger && cd templogger

All the code goes in that folder. You will copy it to the board when it is ready.