About the Author ............................................................................ xiii
About the Technical Reviewer ......................................................... xv
Acknowledgments ......................................................................... xvii
Introduction .................................................................................... xix
Chapter 1: What Is the Internet of Things? ..................................... 1
Chapter 2: Introducing MicroPython ............................................ 27
Chapter 3: MicroPython Hardware ............................................... 59
Chapter 4: How to Program in MicroPython ............................... 125
Chapter 5: MicroPython Libraries ............................................... 173
Chapter 6: Low-Level Hardware Support .................................... 205
Chapter 7: Electronics for Beginners .......................................... 239
Chapter 8: Project 1: Hello, World! MicroPython Style ............... 283
Chapter 9: Project 2: Stoplight Simulator ..................................... 315
Chapter 10: Project 3: Plant Monitoring ..................................... 345
Chapter 11: Project 4: Using Weather Sensors ........................... 379
Chapter 12: Where to Go from Here ............................................ 415
Appendix ........................................................................................ 433
Required Components ......................................................................... 433
Optional Components .......................................................................... 435
Recommended Tools ........................................................................... 436
Index .............................................................................................. 439
Quickly learn to program for microcontrollers and IoT devices without a lot of study and expense. MicroPython and controllers that support it eliminate the need for programming in a C-like language, making the creation of IoT applications and devices easier and more accessible than ever.
MicroPython for the Internet of Things is ideal for readers new to electronics and the world of IoT. Specific examples are provided covering a range of supported devices, sensors, and MicroPython boards such as Pycom’s WiPy modules and MicroPython’s pyboard. Never has programming for microcontrollers been easier.
The book takes a practical and hands-on approach without a lot of detours into the depths of theory. The book:
Anyone interested in building IoT solutions without the heavy burden of programming in C++ or C. The book also appeals to those wanting an easier way to work with hardware than is provided by the Arduino and the Raspberry Pi platforms.