Muutke küpsiste eelistusi

Beginning MicroPython with the Raspberry Pi Pico: Build Electronics and IoT Projects 1st ed. [Pehme köide]

  • Formaat: Paperback / softback, 628 pages, kõrgus x laius: 235x155 mm, kaal: 997 g, 191 Illustrations, black and white; XXX, 628 p. 191 illus., 1 Paperback / softback
  • Sari: Maker Innovations Series
  • Ilmumisaeg: 24-Jul-2022
  • Kirjastus: APress
  • ISBN-10: 1484281349
  • ISBN-13: 9781484281345
Teised raamatud teemal:
  • Pehme köide
  • Hind: 57,96 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 68,19 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 628 pages, kõrgus x laius: 235x155 mm, kaal: 997 g, 191 Illustrations, black and white; XXX, 628 p. 191 illus., 1 Paperback / softback
  • Sari: Maker Innovations Series
  • Ilmumisaeg: 24-Jul-2022
  • Kirjastus: APress
  • ISBN-10: 1484281349
  • ISBN-13: 9781484281345
Teised raamatud teemal:
Program the Raspberry Pi Pico, the latest microcontroller board from raspberrypi.org, with MicroPython. This book will take you on a tour of the Raspberry Pi Pico, including how to get started using the microcontroller, seeing which alternative microcontrollers are available, and how to connect and run simple code examples. 

You’ll program example projects in MicroPython using Python on your PC as a learning platform. Then build your hardware skillset working with electronics and breadboard circuits. You'll implement example projects with all steps explained, including hardware connections and executing the project. Then apply them to real-world, approachable projects using the accessible Raspberry Pi Pico!  

The book shows how the cloud is used for IoT data and find out what popular cloud systems currently exist for IoT. Finally, you'll use ThingSpeak for hosting IoT data including connecting your Pico to the Internet.     

Beginning MicroPython with the Raspberry Pi Pico allows you to build up your skills to more advanced IoT projects and Cloud systems! 

What You Will Learn
  • Build valuable programming skills with MicroPython 
  • Explore the Raspberry Pi Pico and similar boards
  • Develop your own electronics and IOT projects
  • Incorporate the Grove component system with the Raspberry Pi Pico

Who This Book Is For

Beginners interested in learning to work with the Raspberry Pi Pico using MicroPython on microcontrollers with little to no experience in programming, hardware, or electronics. The book should also appeal to those who wanting to gain experience with building electronic solutions with microcontrollers.
About the Author xv
About the Technical Reviewer xvii
Acknowledgments xix
Introduction xxi
Chapter 1 Introducing the Raspberry Pi Pico 1(42)
What Is a Microcontroller?
2(1)
A Tour of the Raspberry Pi Pico
3(17)
Introducing the RP2040
5(3)
Pico Hardware Overview
8(2)
RP2040-Based Alternatives
10(10)
Getting Started with the Pico
20(22)
Where to Buy
20(8)
Preparing Your Computer
28(1)
Installing MicroPython on the Pico
28(9)
Connecting to the Pico
37(5)
Summary
42(1)
Chapter 2 Introducing MicroPython 43(42)
Getting Started
44(18)
Origins
45(2)
MicroPython Features
47(2)
MicroPython Limitations
49(1)
What Does MicroPython Run On?
50(1)
Experimenting with Python on Your PC
51(11)
How It Works
62(7)
File Operations with a Utility
63(6)
Off and Running with MicroPython
69(13)
Example 1 - Blink the LED
70(4)
Example 2 - Toggle the LED
74(4)
Example 3 - Timer
78(3)
Saving Your Work
81(1)
Summary
82(3)
Chapter 3 How to Program in MicroPython 85(68)
Basic Concepts
86(7)
Code Blocks
87(2)
Comments
89(1)
Arithmetic
90(1)
Output to Screen
91(2)
Variables and Statements
93(12)
Types
95(2)
Basic Data Structures
97(4)
Statements
101(4)
Modularization
105(14)
Including Modules
105(1)
Functions
106(2)
Classes and Objects
108(11)
Learning Python by Example
119(32)
How Do I Create and Execute Python Files?
120(1)
Example 1: Using Loops
120(5)
Example 2: Using Complex Data and Files
125(8)
Example 3: Using Functions
133(8)
Example 4: Using Classes
141(10)
For More Information
151(1)
Summary
151(2)
Chapter 4 Low-Level Hardware Support 153(60)
The Pico GPIO Header
154(1)
MicroPython Libraries
155(35)
Built-In and Standard Libraries
156(14)
Built-In Functions and Classes
170(6)
Exceptions
176(5)
MicroPython-Specific Libraries
181(7)
Low-Level Libraries
188(2)
Working with Low-Level Hardware
190(3)
Drivers and Libraries to the Rescue!
191(2)
Using Breakout Boards
193(18)
Inter-integrated Circuit (12C)
195(9)
Serial Peripheral Interface (SPI)
204(7)
Summary
211(2)
Chapter 5 Electronics for Beginners 213(58)
The Basics
214(16)
Tools
214(6)
Using a Multimeter
220(8)
Powering Your Electronics
228(2)
Electronic Components
230(17)
Button
230(1)
Capacitor
231(1)
Diode
232(1)
Fuse
233(1)
Light-Emitting Diode (LED)
234(2)
Relay
236(1)
Resistor
237(1)
Switch
237(2)
Transistor
239(1)
Voltage Regulator
240(1)
Breakout Boards
241(1)
Breadboard and Jumper Wires
242(2)
Basic Electronics Kit
244(3)
Using a Breadboard to Build Circuits
247(4)
What Are Sensors?
251(17)
How Sensors Measure
251(4)
Examples of Sensors
255(13)
Electronics Resources
268(1)
Summary
269(2)
Chapter 6 Project: Hello, World! MicroPython Style 271(36)
Getting Started with Pico Projects
272(3)
One Step at a Time!
272(1)
Some Assembly Required
273(1)
Handle with Care!
273(2)
Overview
275(2)
Required Components
277(3)
Set Up the Hardware
280(4)
Write the Code
284(16)
Design
284(1)
Libraries Needed
285(2)
Planning the Code
287(8)
Test the Breakout Boards
295(5)
Execute
300(5)
Taking It Further
303(2)
Summary
305(2)
Chapter 7 Project: Pedestrian Crossing 307(18)
Overview
308(1)
Required Components
309(3)
Set Up the Hardware
312(10)
Write the Code
314(1)
Imports
315(1)
Setup
315(1)
Functions
316(6)
Execute
322(2)
Taking It Further
323(1)
Summary
324(1)
Chapter 8 Project: Soil Moisture Monitor 325(44)
Overview
326(1)
Required Components
327(8)
Pico Omnibus
329(1)
Pico Display
330(1)
Soil Moisture Sensor
331(1)
Potential Hardware Conflicts
332(3)
Set Up the Hardware
335(4)
Load the Pimoroni Image on the Pico
336(1)
Connecting the Hardware
337(2)
Write the Code
339(26)
Calibrating the Sensor
340(4)
Class Modules
344(15)
Main Code
359(6)
Execute
365(2)
Taking It Further
366(1)
Summary
367(2)
Chapter 9 Introducing Grove 369(22)
Overview
369(10)
The Grove Component System
370(9)
Components Available
379(9)
Host Adapters
380(2)
Modules
382(5)
Cabling and Connectors
387(1)
Where to Buy Grove Components
387(1)
Using the Components with Your Pico
388(1)
Summary
389(2)
Chapter 10 Project: Sound Activated Lights 391(20)
Overview
392(1)
Required Components
392(6)
Grove Shield for Pi Pico
394(1)
Sound Sensor
395(1)
Grove RGB LED
395(2)
Grove Kits
397(1)
Set Up the Hardware
398(1)
Write the Code
399(4)
Libraries Needed
399(1)
Code Layout
400(1)
Imports
401(1)
Functions
401(2)
Main Function
403(5)
Setup
404(1)
Execution Loop
404(4)
Execute
408(2)
Taking It Further
409(1)
Summary
410(1)
Chapter 11 Project: Simon Game 411(42)
Overview
411(1)
Required Components
412(3)
Grove Dual Button
413(1)
Grove LCD RGB Backlight
414(1)
Set Up the Hardware
415(7)
Using a Mounting Plate
416(6)
Write the Code
422(26)
Install Software Libraries
422(1)
Create the Class Modules
423(1)
Buzzer Class
423(7)
Buttons Class
430(4)
Simon Class
434(11)
Main Code Module
445(3)
Execute
448(2)
Taking It Further
450(1)
Summary
451(2)
Chapter 12 Project: Monitoring your Environment 453(40)
Project Overview
453(1)
Required Components
454(9)
About the Hardware
457(6)
Set Up the Hardware
463(5)
Using a Mounting Plate
464(4)
Write the Code
468(20)
Install Software Libraries
468(1)
Create the Class Modules
468(20)
Execute
488(2)
Going Further
490(1)
Summary
491(2)
Chapter 13 Introducing IoT for the Cloud 493(70)
Overview
494(3)
What Is the Cloud?
494(1)
What Is Cloud Computing Then?
495(1)
How Does the Cloud Help IoT?
496(1)
IoT Cloud Systems
497(5)
IoT Cloud Services Available
498(4)
Connecting Your Pico to the Internet
502(10)
Pico WiFi Modules
502(6)
Using the Pico Wireless Pack
508(4)
IoT Project Examples
512(1)
Example 1: Pedestrian Crossing
513(15)
Set Up the Hardware
513(4)
Write the Code
517(8)
Execute
525(3)
Example 2: Soil Moisture Monitor
528(34)
Set Up the Hardware
529(3)
Write the Code
532(25)
Execute
557(4)
Improving the Code
561(1)
Summary
562(1)
Chapter 14 Using ThingSpeak 563(48)
Getting Started
564(6)
Create an Account in ThingSpeak
565(2)
Create a Channel
567(3)
How to Add ThingSpeak to Your Projects
570(21)
Using ThingSpeak with the Pico
572(19)
Example Project: IoT Environment Monitor
591(19)
Required Components
592(1)
Set Up the Hardware
593(4)
Create the ThingSpeak Channel
597(1)
Prepare the Project Files
598(1)
Update the Main Code
599(4)
Execute and Visualize the Data
603(5)
Public View
608(2)
Summary
610(1)
Appendix 611(6)
Index 617
Charles Bell conducts research in emerging technologies. He is a member of the Oracle MySQL Development team and is one of the principal developers for the MySQL Database Service (MDS) team supporting MySQL as a service in the Oracle Cloud Infrastructure (OCI). He lives in a small town in rural Virginia with his loving wife. He received his Doctor of Philosophy in Engineering from Virginia Commonwealth University in 2005. Dr. Bell is an expert in the database field and has extensive knowledge and experience in software development and systems engineering. His research interests include 3D printers, microcontrollers, three-dimensional printing, database systems, cloud systems, software engineering, Internet of Things, and sensor networks. He spends his limited free time as a practicing Maker focusing on microcontroller projects and refinement of three-dimensional printers.