If you've started to work with Raspberry Pi, you know that Raspberry Pi's capabilities are continually expanding. The fourth edition of this popular cookbook provides more than 200 hands-on recipes (complete with code) that show you how to run this tiny low-cost computer with Linux, program it with Python, hook it up to sensors and motors, and use it with the internet of things (IoT). This new edition includes new chapters on the Raspberry Pi Pico and Machine Learning with the Raspberry Pi.
Although many languages can be used to program the Raspberry Pi, Python is the most popular. In fact, the Pi in Raspberry Pi is inspired by the word python. Although Python’s most recent version, Python 3, has been around for years, you’ll find that a lot of people still use Python 2. Python 3 (the default for Raspberry Pi OS) is run by using either of the commands python or Python 3. The examples in this book are written for Python 3 unless otherwise stated. Most will run on both Python 2 and Python 3 without modification. This reluctance on the part of the Python community to ditch the older version is largely because Python 3 introduced some changes that broke compatibility with version 2. As a result, some of the huge body of third-party libraries developed for Python 2 won’t work under Python 3. My strategy is to write in Python 3 whenever possible, reverting Python 2 only when I need to because of compatibility problems.
This edition has been thoroughly updated to encompass the new models of Raspberry Pi, as well as the many changes and improvements to its Raspberry Pi OS. In particular you will find new chapters on: • Machine Learning • Raspberry Pi Pico and Pico W This book is designed so that you can read it linearly, as you would a regular book, or access recipes at random. You can search the table of contents or index for the recipe that you want and then jump directly to it. If the recipe requires you to know about other things, it will refer you to other recipes, rather like a cookbook might refer you to base sauces before showing you how to cook something fancier. The world of Raspberry Pi moves quickly. With a large, active community, new interface boards and software libraries are being developed all the time. In addition to examples that use specific interface boards or software, the book also covers basic principles so that you can have a better understanding of how to use new technologies that come along as the Raspberry Pi ecosystem develops.
As you would expect, a large body of code (mostly Python programs) accompanies the book. These programs are all open source and available on GitHub. For most of the software-based recipes, all you need is a Raspberry Pi. I recommend a Raspberry Pi 3 or 4 model B. When it comes to recipes that involve making your own hardware to interface with the Raspberry Pi, I have tried to make good use of ready-made modules as well as solderless breadboard and jumper wires to avoid the need for soldering.
These easy-to-use recipes will show you, step-by-step, how to:
Set up your Raspberry Pi and connect to a network Work with its Linux-based operating system Program your Raspberry Pi with Python Give your Pi "eyes" with computer vision Recognize objects from video and sounds using machine learning Control hardware through the GPIO connector Use your Raspberry Pi to run different types of motors Work with switches, keypads, and other digital inputs Use sensors to measure temperature, light, and distance Connect to IoT devices in various ways and automate your home Use the Raspberry Pi Pico microcontroller board with your Raspberry Pi
Разместите ссылку на эту страницу в социальных сетях. Так о ней узнают тысячи человек:
Facebook
Twitter
Мой мир
Вконтакте
Одноклассники
Нашли ошибку? Сообщите администрации сайта: Выберите один из разделов меню и, если необходимо, напишите комментарий
За ложную информацию бан на месяц
Разместите, пожалуйста, ссылку на эту страницу на своём веб-сайте:
Код для вставки на сайт или в блог: Код для вставки в форум (BBCode): Прямая ссылка на эту публикацию:
The goal of this book is to get you up and running with your Raspberry Pi 3 as soon as you take it out of the box. Here’s an idea of what you’ll find inside this book: -What is the Raspberry Pi 3? -How is it different from the other Raspberry Pi Models?
Become a master of Python programming using the small yet powerful Raspberry Pi Zero Raspberry Pi Zero is a super-small and super-affordable product from Raspberry Pi that is packed with a plethora of features and has grabbed the notice of programmers, especially those who use Python.
Do you want to wish to know more about the Raspberry Pi 4 as a beginner? Then read on... The Raspberry Pi is a small, affordable computer that can be used to create and connect to a different device. It is capable of performing different functions ranging from the building of robots, coding, creating video games and other apps. With this book, you ...
What can you do with the Raspberry Pi, the inexpensive credit card-sized computer? All sorts of things! If you're learning how to program, or looking to build new electronic projects, this hands-on guide will show you just how valuable this flexible little platform can be.
Данный материал НЕ НАРУШАЕТ авторские права никаких физических или юридических лиц. Если это не так - свяжитесь с администрацией сайта. Материал будет немедленно удален. Электронная версия этой публикации предоставляется только в ознакомительных целях. Для дальнейшего её использования Вам необходимо будет приобрести бумажный (электронный, аудио) вариант у правообладателей.