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

  • The Automotive Mechanical test Questions and Answers - cover

    The Automotive Mechanical test...

    Darren Braithwaite

    • 0
    • 0
    • 0
    This audio serves as helpful study guide for those doing the mechanical test for general license in Jamaica. Although specifically written for this purpose it can serve as a help internationally for any that want to expand their knowledge.
    Show book
  • Cosmos Earth and Nutrition - The Biodynamic Approach to Agriculture - cover

    Cosmos Earth and Nutrition - The...

    Richard Thornton Smith

    • 0
    • 0
    • 0
    In recent years there has been an explosion of interest in organic and biodynamic produce. Although once marginal and 'alternative', escalating concerns about the environment, health, food quality and animal welfare have brought organics into mainstream consciousness. Biodynamics, a unique development of the organic approach, does not narrowly focus on agricultural techniques. It was conceived as a new way of thinking about farming, nutrition and the world of nature, allowing for a revitalized relationship with the living soil, the elemental world and the cosmos. Originating from a series of eight lectures given by Dr Rudolf Steiner in 1924, biodynamics broadens the outlook of agriculture and the science behind it, leading to a holistic perspective that incorporates astronomical rhythms and unique preparations for plants and earth. The author describes the foundations on which not only biodynamics but also the wider organic movement is based. He builds bridges between mainstream science and Steiner's insights, making it easier for the wider organic and ecological movement to approach biodynamic concepts and practise. This book has much to offer to the beginner as well as to those already involved with biodynamics. Its broad range of topics - including the ecology of the farm organism, food quality and nutrition, community supported agriculture, planetary influences, seed quality, and the vitality of water - contribute to a deeper understanding of the subject. The author is also concerned to promote innovation so that biodynamics moves with the times. An appendix includes details for contacting various elements of the biodynamic world. DR RICHARD THORNTON SMITH was formerly a geography professor at the University of Leeds, specializing in soil science, environment and conservation. Widely travelled, he has a long-standing interest in indigenous and sustainable farming. He was introduced to the work of Rudolf Steiner at an early age, although his full involvement with biodynamics dates from 1990 when he began to participate in training programmes and workshops at Emerson College, Sussex. In 1996 he began a biodynamic extension programme in Sri Lanka, for which he published a book, most recently updated in 2007. Since 2001 he has been an inspector for the Biodynamic Association's Demeter and Organic Certification in the UK. In 2003 he produced an edited selection of Steiner's work relating to agriculture. He is currently a council member of the Biodynamic Agricultural Association, and lives in Ross-on-Wye, Herefordshire.
    Show book
  • Risk Management Explained - cover

    Risk Management Explained

    Can Akdeniz, IntroBooks Team

    • 0
    • 0
    • 0
    This book will run you through the ambit of just what risk management is. It will show you how you can apply it to your business. It will discuss the principles of risk management, and the processes involved, and also give you an idea of the application of these processes to a couple of businesses. The rules of risk management are mostly universal, and by tweaking them slightly, you can apply them to any enterprise. You will be armed with the essential tools to devise a risk management strategy that will, in effect, maximize the potential of your business to realize opportunities. This is, after all, the ultimate purpose of risk management!
    Show book
  • The Well-Referred Dentist - The Essential Hidden Steps to a Profitable & Anxiety-Free Practice - cover

    The Well-Referred Dentist - The...

    Bita Saleh

    • 0
    • 0
    • 0
    The Well-Referred Dentist is a comprehensive guideline that helps dentists finally have the practice of their dreams.    In The Well-Referred Dentist, Dr. Bita Saleh addresses the missing factor that is essential to patient compliance in all stages of dental treatment by identifying and resolving the patient’s “triad” of obstacles – their fears, anxieties, and limiting beliefs. As a highly-skilled and dedicated dentist for 30 years, Dr. Saleh has discovered an effective process to alleviate the triad of obstacles experienced by patients. Now, she shares her step-by-step program to show dentists how to:Quickly recognize the hidden signs of fear, anxiety, and limiting beliefsDiscuss this sensitive topic with patients so they can reach a mutual resolution  Resolve their patient’s triad of obstacles in the most time-efficient manner  Help patients requiring urgent care reduce their fears and anxieties by 35% in 4 minutes  Create a customized plan for each patient that identifies and resolves the root cause of their issues  Create an easy-to-follow maintenance protocol
    Show book
  • Gastric Bypass Cookbook - A Concise Guide and Proven Recipes for Stages One and Two of your Bariatric Surgery Recovery - cover

    Gastric Bypass Cookbook - A...

    Mike Edwards

    • 0
    • 0
    • 0
    Give Your Body What It Needs After Gastric Bypass Surgery! Making a choice to undergo a gastric bypass operation is a big step, and while the surgery may be scary on its own, the hard part comes after you get back on regular food. If you return to your old eating habits, you run the risk of causing yourself pain and gaining more weight. So you need to learn what you can eat. This book is here to give you that ability Throughout this audiobook, you will discover many recipes that are perfect options for people who have undergone gastric bypass surgery and will be loved by the entire family. You won't have to get bored with you meal options. You will find: - Breakfast - Main dishes - Snacks - Desserts - And much more! There's no need to feel hungry all the time, and you don't have to eat the same foods every single day. Get this audiobook, and never have to worry about what you're going to eat!
    Show book
  • Content Machine: The Ultimate Guide to Content Creation Discover How to Come Up With Great Content in a Short Amount of Time - cover

    Content Machine: The Ultimate...

    Matt Denzil

    • 0
    • 0
    • 0
    Content Machine: The Ultimate Guide to Content Creation, Discover How to Come Up With Great Content in a Short Amount of TimeIf you were serious about your online research and did your research already, you would have heard the phrase “Content is King.” It’s a popular phrase because the content is really very important and one of the crucial parts of the success of any online business. But writing content isn’t always easy. Or you can write one very quickly but it’s not good enough to attract customers so it doesn’t earn you money. If you want to know how to write great content, this audiobook is for you. This audiobook will teach you all the valuable information you need to know regarding writing content. You will learn effective techniques on how to create a lot of content in just a short amount of time. You will learn how to earn a massive income from your content. You will also discover when you need to write the content yourself or need to outsource it to others. This audiobook will discuss the following topics:- Quick Writing Techniques- Should You Outsource Writing?- Plain and Simple Writing- Finding Cash Cow Topics- Tools of the Trade- The Power of Google- Creative Word List Usage- Combining Your TechniquesThe more practice you have, the more efficient you will be in writing great content. If you want to learn more information and tools you need to produce great content, scroll up and click “add to cart” now!
    Show book