Book Image

Raspberry Pi Zero W Wireless Projects

By : Vasilis Tzivaras
Book Image

Raspberry Pi Zero W Wireless Projects

By: Vasilis Tzivaras

Overview of this book

The Raspberry Pi has always been the go–to, lightweight ARM-based computer. The recent launch of the Pi Zero W has not disappointed its audience with its $10 release. "W" here stands for Wireless, denoting that the Raspberry Pi is solely focused on the recent trends for wireless tools and the relevant use cases. This is where our book—Raspberry Pi Zero W Wireless Projects—comes into its own. Each chapter will help you design and build a few DIY projects using the Raspberry Pi Zero W board. First, you will learn how to create a wireless decentralized chat service (client-client) using the Raspberry Pi's features?. Then you will make a simple two-wheel mobile robot and control it via your Android device over your local Wi-Fi network. Further, you will use the board to design a home bot that can be connected to plenty of devices in your home. The next two projects build a simple web streaming security layer using a web camera and portable speakers that will adjust the playlist according to your mood. You will also build a home server to host files and websites using the board. Towards the end, you will create free Alexa voice recognition software and an FPV Pi Camera, which can be used to monitor a system, watch a movie, spy on something, remotely control a drone, and more. By the end of this book, you will have developed the skills required to build exciting and complex projects with Raspberry Pi Zero W.
Table of Contents (11 chapters)

Socket programming

Every device connected to the internet uses sockets to communicate with another device or server. The basic idea is quite simple; a client that usually has some requests connects to a server that is able to handle those kind of requests, and the communication between those two is established using sockets. Nowadays, there are many frameworks out there with which you can easily set up a communication channel, but to understand this scenario as much as we can, we will go through socket programming, and I will explain everything. To sum up, the client requests some data from the server and the server responds with an answer back to the client.

The following is a simple image representing this communication scenario:

Socket programming is actually the two arrows in the preceding image. It shows how the communication is implemented and how a client can identify...