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

Interfacing the 16x2 LCD display with RPZ


As we progress along on our mastery of output control with our Raspberry Pi Zero, we are ready to get a little higher resolution. With this, you'll be able to produce whatever text output you can fill on a higher-resolution 16x2 (16 characters wide by 2 rows high) LCD screen. With the gaining popularity of the Internet of Things, LCD displays have become quite inexpensive and are a great way to output any information your Raspberry Pi Zero has a hold of.

Getting ready

There are a lot of different 16x2 LCD displays available. Adafruit has a great one, Product ID 181xxxxx, and there was also one included in my Elego Kit. You'll also need a 10k potentiometer to control the brightness, which is included in Adafruit's LCD + extras kit. You'll definitely want a breadboard and Raspberry Pi cobbler of some sort.

The Python library I used is the easy-to-use lcdscreen. You can install it through the Python Package Index with pip:

sudo pip install lcdscreen
sudo...