Explorer HAT tricks
Explorer HAT tricks (The book + code samples)
$8.00
Minimum price
$8.00
Suggested price
Explorer HAT tricks

This book is 100% complete

Completed on 2020-09-17

About the Book

If you're

  • a beginner who wants to start monitoring and controlling things with your Raspberry Pi
  • an experienced maker with a newly purchased Pimoroni Explorer HAT
  • an educator looking for fun projects to inspire
  • an inventor needing to prototype your ideas

you should buy this book!

You'll learn how to

  • configure your Raspberry Pi for use with the Pimoroni Explorer Pro
  • turn the four on-board coloured LEDs on and off
  • use the capacitive touch sensors to control your Pi
  • add push-buttons and specialised LEDs to your projects
  • fade the brightness of LEDs up and down
  • measure voltage, light level and temperatures
  • control electric motors with your Pi

You'll consolidate what you learn through fun projects.

If you have a Pi. the extra hardware will cost about £40.

You don't need to solder.

The programs are written on the Python language. If you don't know Python yet, it's a great way to start learning it!

About the Author

Romilly Cocking
Romilly Cocking

Romilly is a lifelong learner, maker and educator interested in Electronics, Robotics and AI.


He's taught thousands of students how to program, he's a veteran blogger, and he is a popular presenter at technical meetups.

Table of Contents

  • Preface
    • About the author
  • How to have fun with this book
    • What’s this about?
    • Get help if you need it
    • Make sure you are registered!
    • The Raspberry Pi
    • Physical computing
    • The Pimoroni Explorer HAT
    • How much will the hardware cost?
    • What skills do you need?
    • What skills will you learn?
    • Your choices
    • A quick note about spelling
  • Ready, steady, go!
    • What’s this about?
    • Prepare your Raspberry Pi
    • Installing the HAT on the Pi
    • Enabling interfaces
    • Use Python 3
    • Install software
    • Summary
    • Next
  • Hello, Explorer world!
    • What’s this about
    • Turning a LED on and off from Python
    • Control a LED from inside a Python program.
    • Blink an LED repeatedly
    • Red is not the only LED
    • Summary
    • Next
  • Traffic Lights Project - First Version
    • What’s this about
    • UK Traffic Light Sequence
    • Some new Python features
    • Defining Python functions
    • The complete program
    • Summary
    • Next
  • SOS! - Send Morse Code
    • What’s this about?
    • The Program
    • Summary
    • Next
  • The Touchy Explorer HAT
    • What’s this about?
    • Touch pads
    • Summary
    • Next
  • LED to the breadboard
    • What’s this about?
    • Breadboards
    • A quick experiment
    • Blinking the LED
    • Blinking program
    • Touchpad control
    • Summary
    • Next
  • What’s the Buzz?
    • What’s this about?
    • Two sorts of buzzer
    • Wiring up the buzzer
    • Drive the buzzer
    • Buzzing morse code
    • Summary
    • Next
  • Traffic Lights Project - Second Version
    • What’s this about?
    • Summary
    • Next
  • Measuring Analogue Values
    • What’s this about
    • Analogue measurements with the Explorer HAT
    • Start building a weather station
    • Measuring light levels with an LDR
    • Summary
    • Next
  • The Plot Thickens
    • What’s this about?
    • Calculating the LDR’s resistance
    • mu can plot your data!
    • Summary
    • Next
  • Getting Pushy
    • What’s this about?
    • Wiring up a button
    • Wiring up the button
    • Writing the code
    • Summary
    • Next
  • Now you’re motoring
    • What’s this about?
    • The motor you’ll use
    • Controlling motor direction
    • Summary
    • Next
  • Where next?
    • Support for readers
    • Next, two favour
    • Resources for the future
  • Appendix A
    • Tips
    • Resistor Colour Codes
    • Wiring Colours
  • Notes

Authors have earned$9,386,802writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub