Book Image

Raspberry Pi Zero Cookbook

Book Image

Raspberry Pi Zero Cookbook

Overview of this book

The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens up a new world for the makers out there. This book will give you expertise with the Raspberry Pi Zero, providing all the necessary recipes that will get you up and running. In this book, you will learn how to prepare your own circuits rather than buying the expensive add–ons available in the market. We start by showing you how to set up and manage the Pi Zero and then move on to configuring the hardware, running it with Linux, and programming it with Python scripts. Later, we integrate the Raspberry Pi Zero with sensors, motors, and other hardware. You will also get hands-on with interesting projects in media centers, IoT, and more.
Table of Contents (17 chapters)
Raspberry Pi Zero Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Avoiding the floating states of the input line


When using the GPIO pins for input, the HIGH state is active when the pin is receiving 3V, and LOW when it is grounded. GPIO inputs, however, are quite sensitive and can receive unintended HIGH signals from external factors, even self-noise produced from a prototype circuit. When a GPIO input pin can jump between 0 and 1 from influences outside of its control, it is said to be in a floating state. Fortunately, we can use the Raspberry Pi Zero's built-in circuitry or make our own to ensure that our inputs remain in a consistent state, unless our circuit and programming logic wants it to change.

Note

The actual voltages are given in the data sheet. Typically 2.5V (sometimes 1.8V) and above is consider logic HIGH, while below 0.8V is considered logic LOW. Voltages between this will cause input noise. This is because CMOS input circuitry typically does not employ hysteresis, unless the datasheet denotes the input buffer with a symbol. When a pin...