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

Basics of the UART port and getting data from the desktop on the serial port using Minicom


We used the GPIO pins for the serial port to contact the Raspberry Pi from a desktop computer in an earlier chapter. Physical pins 8 and 10 (BCM GPIO 14 and 15) for transmit (TX) and receive (RX), respectively, can also be used to talk from your Raspberry Pi Zero out to other devices. Let's explore the Universal Asynchronous Receiver/Transmitter (UART) a bit further.

Getting ready

For this recipe, all you'll need is your Raspberry Pi Zero and a jumper wire to connect your TX and RX pins.

How to do it...

This is about as simple a setup you can have, but it is a typical way to verify you've set up your Raspberry Pi Zero to communicate outbound over serial. By default, the Raspbian OS has configured your GPIO's TX and RX to expect and handle incoming serial communication. If you connected from a desktop to your RPZ with a USB-to-serial adapter in Chapter 2, Setting Up Physical and Wireless Connections then...