
Узнайте, как запрограммировать свой отличный новый компьютер стоимостью 35 долларов, чтобы сделать веб-паука, метеостанцию, медиа-сервер и многое другое. В этой книге рассказывается о том, как сделать разнообразные забавные и даже полезные проекты, от веб-бота, чтобы искать и загружать файлы, до игрушки, чтобы свести домашних животных с ума. Даже если вы совершенно новичок в программировании в целом, вы увидите, как легко создать домашнюю систему безопасности, систему подводной фотографии, радиоуправляемый самолет с камерой и даже геозонд с камерой. Вы узнаете, как использовать Pi с Arduino, а также Pi с Gertboard, платой расширения с встроенным микроконтроллером ATmega.
Whatever the case may be, welcome! You’re about to join a club—not a particularly exclusive one, I’m afraid, as the cost of joining is only about $35 US and a spark of creativity, but a club nonetheless—populated by students and teachers and hobbyists and artists and engineers. As a member of this club, you’ll be able to discuss package managers , ARM processors, and dot config files intelligently with whomever will listen to your babble. You’ll become familiar with servos, LEDs, and cameras-on-a-chip. And, perhaps most important, you’ll be able to connect to your new mini-computer, program it using one of many programming languages (although this book deals solely with Python), build projects, and interface those projects with the Pi, enabling it to interact with the physical world and do some pretty cool things.
With this book, I hereby induct you into this club. Your experience doesn’t matter, because I’ll lead you step-by-step through the process of setting up your Pi so you can work with it with a minimum of headaches. I’ll give you a solid background in Linux so you have an idea of what’s going on behind the scenes, and I’ll devote an entire chapter to Python, the deceptively powerful scripting language used by tech companies like Facebook, Google, and even NASA. I also plan to introduce you to the basic nuts and bolts of electronics, something that many tech-project books either gloss over or neglect completely. There are safety factors to consider (I’ve nearly had several small explosions as a result of shorting out LiPo batteries, for instance) as well as good building practices; you’ll learn the difference between a good and a bad solder joint, how to avoid slicing off your finger with an X-ACTO knife, and the difference between a 40Ω and a 40KΩ resistor.
Of course, if you’re already familiar with all of these introductory items, feel free to skip ahead to the good stuff—the projects. Most of them can be constructed in a weekend or so, and I’ve tried to keep the costs within reason as well. All are programmed in Python.
Оригинальное название: Learn Raspberry Pi Programming with Python: Learn to Program on the World's Most Popular Tiny Computer, Second Edition
Жанр: электроника
Автор: Wolfram Donat
Год издания: 2018
Формат: PDF, EPUB
Язык: английский
Количество страниц: 389
Размер архивов (файлов): 8.98 MB / 15.31 MB
Скачать:

- Как футболист он - ничто, но мы выседим из его яиц настоящего бойца.