The examples in this repository rely on the Pimoroni library for the Explorer Hat. I believe that the library will need to be updated for the Raspberry Pi 5 and the latest version of the Operating SYstem.
As soon as I have any information about the timescale for the update I will share it here and on X.
If you're using an earlier model of the Pi, and are not using the latest version of the Operating system, everything here should work.
Disclaimer: I have been a follower and customer of Pimoroni for years, but I have no official connection with them.
Please don't ask them for support in relation to this code!
These are projects from Explorer Hat Tricks, an ebook about the Pimoroni Explorer Hat Pro which you can buy on Leanpub. That means you get a 40-day no-quibble money back guarantee).
-
A Raspberry Pi model zero/zero W (with headers), 2B+, 3B, 3B+ or 4B running Raspberry Pi OS.
-
A Pimoroni Explorer HAT Pro. You can run some of the projects with the original Explorer HAT or the Explorer pHAT.
-
The parts from a Pimoroni Explorer Hat Parts kit
-
Optionally, an LDR (Light dependent resistor)
I'll add wiring diagrams and README files to this repository as time permits.
This code has been tested using python3.
- Install Pimoroni's Explorer Hat Library using these instructions
- Clone this repository or download and unzip into a directory of your choice.
- Navigate to the example or project you want to run
- Wire up the example.
- Run the relevant script.
For instance, to run the traffic light project once you have wired it up, open a terminal window,
change to the relevant directory and run python3 traffic-lights-01.py
Use Ctrl-C
to quit the example.
The console should look like this:
A work in progress.
The code for all the examples is here, but not all have README files/wiring diagrams yet.