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
- A quick preview
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!
- What’s this about?
- Turning an LED on and off from Python
- Control an 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?
- Touchpads
- 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
- Driving 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
- Measuring light levels
- 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 favours
- Resources for the future
Appendix A
- Resistor colour codes
- Wiring colours