Join us on a literary world trip!
Add this book to bookshelf
Grey
Write a new comment Default profile 50px
Grey
Subscribe to read the full book or read the first pages for free!
All characters reduced
MicroPython Cookbook - Over 110 practical recipes for programming embedded systems and microcontrollers with Python - cover

MicroPython Cookbook - Over 110 practical recipes for programming embedded systems and microcontrollers with Python

Marwan Alsabbagh

Publisher: Packt Publishing

  • 0
  • 0
  • 0

Summary

Learn how you can control LEDs, make music, and read sensor data using popular microcontrollers such as Adafruit Circuit Playground, ESP8266, and the BBC micro:bit

 

Key Features



Load and execute your first program with MicroPython

Program an IoT device to retrieve weather data using a RESTful API

Get to grips with integrating hardware, programming, and networking concepts with MicroPython



 

Book Description


 
MicroPython is an open source implementation of Python 3 that runs in embedded environments. With MicroPython, you can write clean and simple Python code to control hardware instead of using complex low-level languages like C and C++. This book guides you through all the major applications of the MicroPython platform to build and program projects that use microcontrollers.


 




 
The MicroPython book covers recipes that'll help you experiment with the programming environment and hardware programmed in MicroPython. You'll find tips and techniques for building a variety of objects and prototypes that can sense and respond to touch, sound, position, heat, and light. This book will take you through the uses of MicroPython with a variety of popular input devices and sensors. You'll learn techniques for handling time delays and sensor readings, and apply advanced coding techniques to create complex projects. As you advance, you'll get to deal with Internet of Things (IoT) devices and integration with other online web services. Furthermore, you'll also use MicroPython to make music with bananas and create portable multiplayer video games that incorporate sound and light animations into the game play.


 




 
By the end of the book, you'll have mastered tips and tricks to troubleshoot your development problems and push your MicroPython project to the next level!

 

What you will learn



Execute code without any need for compiling or uploading using REPL (read-evaluate-print-loop)

Program and control LED matrix and NeoPixel drivers to display patterns and colors

Build projects that make use of light, temperature, and touch sensors

Configure devices to create Wi-Fi access points and use network modules to scan and connect to existing networks

Use Pulse Width Modulation to control DC motors and servos

Build an IoT device to display live weather data from the Internet at the touch of a button


 

Who this book is for


 
If you want to build and program projects that use microcontrollers, this book will offer you dozens of recipes to guide you through all the major applications of the MicroPython platform. Although no knowledge of MicroPython or microcontrollers is expected, a general understanding of Python is necessary to get started with this book.
Available since: 05/21/2019.
Print length: 452 pages.

Other books that might interest you

  • Failure of Initiative: Final Report of the Select Bipartisan Committee to Investigate the Preparation for and Response to Hurricane Katrina - cover

    Failure of Initiative: Final...

    United States House of...

    • 0
    • 0
    • 0
    In September 2005, the House of Representatives created the Select Bipartisan Committee to Investigate the Preparation for and Response to Hurricane Katrina. The Committee was charged with conducting "a full and complete investigation and study and to report its findings to the House not later than February 15, 2006, regarding-- (1) the development, coordination, and execution by local, State, and Federal authorities of emergency response plans and other activities in preparation for Hurricane Katrina; and (2) the local, State, and Federal government response to Hurricane Katrina."The Committee presents the report narrative and the findings that stem from it to the U.S. House of Representatives and the American people for their consideration. Members of the Select Committee agree unanimously with the report and its findings. Other Members of Congress who participated in the Select Committee’s hearings and investigation but were not official members of the Select Committee, while concurring with a majority of the report’s findings, have presented additional views as well, which we offer herein on their behalf.First and foremost, this report is issued with our continued thoughts and prayers for Katrina’s victims. Their families. Their friends. The loss of life, of property, of livelihoods and dreams has been enormous. And we salute all Americans who have stepped up to the plate to help in any way they can. (Summary modified from the Preface.)
    Show book
  • Radiolab: Mixtape - How The Cassette Changed The World - cover

    Radiolab: Mixtape - How The...

    Radiolab

    • 0
    • 0
    • 0
    Before the podcast and the smartphone, there was the cassette tape and the Walkman — two devices that, although not considered much today, were revolutionary. They were recordable, rewritable, spliceable, compact, and mobile. For the first time, they allowed you to move through the world and listen to a voice speaking only to you. These cassette tapes brought us together, pulled us apart, and forever changed how we say those three simple words, ‘I love you.’ In five episodes from around the world, Mixtape explores the impact the cassette had and continues to have today.
    Show book
  • Storm from the East - The Struggle Between the Arab World and the Christian West - cover

    Storm from the East - The...

    Milton Viorst

    • 0
    • 0
    • 0
    In this enlightening work,The New Yorker’s longtime Middle East correspondent, Milton Viorst contends that today’s Arab-American conflict is the latest round in a 1,400-year clash between Islam and Christianity. As Islamic power weakened, Ottoman Turks eventually swallowed up the entire Arab world by 1600. When the Ottoman Empire collapsed after WWI, the controversial Sykes-Picot Treaty gave the French control of Syria and Lebanon and let the British rule Iraq, Jordan, Egypt, and Palestine. Angry and frustrated at not receiving their promised self-rule, disgruntled Arabs waged an almost constant guerrilla warfare against their European overlords. Suggesting that the United States is repeating the mistakes of the past, Viorst is critical of the George W. Bush administration’s Iraq policy. Paul Hecht’s excellent narration of this concise Modern Library Chronicles volume clarifies the frustrations and concerns of the Arab people and effectively highlights Viorst’s solutions to today’s Middle Eastern conflicts.  “This is an illuminating—and deeply disturbing—account of the ages-old conflict between Christian and Muslim civilizations … It is remarkable how Milton Viorst has managed to reduce a struggle so complex to such lucid prose.”—Daniel Schorr, NPR Radio
    Show book
  • Mixing Races - From Scientific Racism to Modern Evolutionary Ideas - cover

    Mixing Races - From Scientific...

    Paul Lawrence Farber

    • 0
    • 0
    • 0
    “Traces both historically and sociologically the changing attitudes on race-mixing (miscegenation) in western culture . . . clear, well written and useful.” —Journal of the History of Biology 
     
    This book explores changing American views of race mixing in the twentieth century, showing how new scientific ideas transformed accepted notions of race and how those ideas played out on college campuses in the 1960s. 
     
    In the 1930s it was not unusual for medical experts to caution against miscegenation, or race mixing, espousing the common opinion that it would produce biologically dysfunctional offspring. By the 1960s the scientific community roundly refuted this theory. Paul Lawrence Farber traces this revolutionary shift in scientific thought, explaining how developments in modern population biology, genetics, and anthropology proved that opposition to race mixing was a social prejudice with no justification in scientific knowledge. 
     
    In the 1960s, this new knowledge helped to change attitudes toward race and discrimination, especially among college students. Their embrace of social integration caused tension on campuses across the country. Students rebelled against administrative interference in their private lives, and university regulations against interracial dating became a flashpoint in the campus revolts that revolutionized American educational institutions. 
     
    Farber’s provocative study is a personal one, featuring interviews with mixed-race couples and stories from the author’s student years at the University of Pittsburgh. As such, Mixing Races offers a unique perspective on how contentious debates taking place on college campuses reflected radical shifts in race relations in the larger society. 
     
    “A fascinating look at how evolutionary science has changed alongside social beliefs.” —Midwest Book Review 
     
    “Will open the dialogue about social barriers and group identities . . . Essential.” —Choice
    Show book
  • Deep Learning for Beginners: 2 in 1 - cover

    Deep Learning for Beginners: 2 in 1

    Steven Cooper

    • 0
    • 0
    • 0
    2 books in 1! This is the bundle of two successful books in the market.Book 1: In "Deep Learning for Beginners: A comprehensive introduction of deep learning fundamentals for beginners to understanding frameworks, neural networks, large datasets, and creative applications with ease" you will learn:•	Deep learning utilizes frameworks which allow people to develop tools which are able to offer better abstraction, along with simplification of hard programming issues. •	The book illustrates TensorFlow and Caffe2 as the prime frameworks that are used for development by Google and Facebook. •	The book considers several components and tools of deep learning such as the neural networks; CNNs, RNNs, GANs, and auto-encoders. •	The book also considers several applications, including chatbots and virtual assistants, which have become the main focus for deep learning into the future, as they represent the next frontier in information gathering and connectivity.•	And much more...Book 2: In "Data Science from Scratch: The #1 Data Science Guide for Everything A Data Scientist Needs to Know: Python, Linear Algebra, Statistics, Coding, Applications, Neural Networks, and Decision Trees" you will learn:•	In depth information about what data science is and why it is important.•	The prerequisites you will need to get started in data science.•	What it means to be a data scientist.•	The roles that hacking and coding play in data science.•	The different coding languages that can be used in data science.•	Why python is so important.•	How to use linear algebra and statistics.•	The different applications for data science.•	How to work with the data through munging and cleaning•	And much more...Get your copy of these fantastic guides to master state-of-the-art, deep learning algorithms and their implementation!
    Show book
  • Visions of the Multiverse - cover

    Visions of the Multiverse

    Steven Manly

    • 0
    • 0
    • 0
    The idea of a multiple universe reality is no longer considered speculative or implausible by many physicists; rather, it is deemed inescapable. Distinct concepts of the multiverse spring from quantum mechanics, cosmology, string theory-based cosmology, and ideas about a mathematics based reality that borders on the religious.In this accessible and entertaining book, Dr. Manly guides you on a tour of the many multiverse concepts and provides the non-technical background to understand them.Visions of the Multiverse explores questions such as:•Just what is a multiverse?•What are the different concepts of the multiverse and how are they related?•Is it possible to determine if we live in a multiverse…or even in multiple types of multiverses?•How do religious concepts of the afterlife and popular ideas based on the Law of Attraction relate to the scientific visions of the multiverse?Dr. Manly discusses a wide variety of fascinating concepts from relativity and the fundamental particles and forces of nature to dark matter, dark energy, and quantum mechanics in an unintimidating and conversational tone.Is humanity is in the midst of a new Copernican revolution? You decide.
    Show book