Begleiten Sie uns auf eine literarische Weltreise!
Buch zum Bücherregal hinzufügen
Grey
Einen neuen Kommentar schreiben Default profile 50px
Grey
Jetzt das ganze Buch im Abo oder die ersten Seiten gratis lesen!
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

Verlag: Packt Publishing

  • 0
  • 0
  • 0

Beschreibung

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.
Verfügbar seit: 21.05.2019.
Drucklänge: 452 Seiten.

Weitere Bücher, die Sie mögen werden

  • Studies About Trees - cover

    Studies About Trees

    Jacob Joshua Levison

    • 0
    • 0
    • 0
    In this work Levison aims to create a book that allows beginners to be able to understand how to identify trees, as well as to give information of their structure and uses.  Once these topics are addressed, he then moves into concepts of care, planting and forestry. - Summary by KHand
    Zum Buch
  • The Rescue at Dead Dog Beach - One Man's Dangerous Quest to Save the Forgotten Dogs of Puerto Rico - cover

    The Rescue at Dead Dog Beach -...

    Stephen McGarva

    • 0
    • 0
    • 0
    The “heartbreaking . . . deeply-moving” story of the heroic crusade to save Puerto Rico’s stray dogs, and an impassioned appeal to help all animals in need (Daily Mail). 
     
    Looking for inspiration and adventure in their lives, Steve McGarva and his wife Pam moved to Puerto Rico. While kite surfing at Playa Lucia, Steve made a shocking discovery—a sick and abandoned dog—that would transform his life. With its shimmering white sand, palm trees, and dazzling azure water, the beach looked postcard perfect. But its beauty hid a dark side: To the locals, this slice of paradise was known as Dead Dog Beach—a notorious dumping ground for the island’s unwanted canines. 
     
    Considered a threat to the area’s lucrative tourism industry, these defenseless animals were in constant danger of brutality and death. Enraged, and refusing to accept such cruelty, McGarva began protecting these helpless animals—actions that would jeopardize his marriage, challenge his sanity, and make him a target of locals determined to stop him. 
     
    The Rescue at Dead Dog Beach is the story of Steve’s fearless dedication to hundreds of dogs, and his efforts to expose their systemic abuse. Exposing the true costs of the tourist industry, it is also a call to arms for animal lovers, offering insights and practical information to help strays anywhere in the world. 
     
    “Stephen McGarva moved to Puerto Rico in search of sun and fun. What he found was a new purpose: saving the island’s abandoned dogs.” —People 
     
    “This is an amazing story.” —Ellen DeGeneres
    Zum Buch
  • Gifts of the Crow - How Perception Emotion and Thought Allow Smart Birds to Behave Like Humans - cover

    Gifts of the Crow - How...

    Tony Angell, John Marzluff

    • 0
    • 0
    • 0
    New research indicates that crows are among the brightest animals in the world. And professor of Wildlife Science at the University of Washington John Marzluff has done some of the most extraordinary research on crows, which has been featured in The New York Times, National Geographic, and the Chicago Tribune, as well as on NPR and PBS. Now he teams up with artist and fellow naturalist Tony Angell to offer an in-depth look at these incredible creatures—in a book that is brimming with surprises. 
    Redefining the notion of "bird brain," crows and ravens are often called feathered apes because of their clever tool-making and their ability to respond to environmental challenges, including those posed by humans. Indeed, their long lives, social habits, and large complex brains allow them to observe and learn from us and our social gatherings. Their marvelous brains allow crows to think, plan, and reconsider their actions. In these and other enthralling revelations, Marzluff and Angell portray creatures that are nothing short of amazing: they play, bestow gifts on people who help or feed them, use cars as nutcrackers, seek revenge on animals that harass them, are tricksters that lure birds to their deaths, and dream. The authors marvel at crows' behavior that we humans would find strangely familiar, from delinquency and risk taking to passion and frolic. A testament to years of painstaking research, this riveting work is a thrilling look at one of nature's most wondrous creatures.
    Zum Buch
  • The Custom-Made Brain - Cerebral Plasticity Regeneration and Enhancement - cover

    The Custom-Made Brain - Cerebral...

    Jean-Didier Vincent,...

    • 0
    • 0
    • 0
    Two leading neuroscientists examine how the brain is in flux and how this applies to addressing neurological, cognitive, and emotional health.   Beginning with a survey of the fundamental scientific developments that led to our current understanding of the regenerative mind, the authors elucidate the breakthrough neurobiological studies that paved the way for our present understanding of the brain’s plasticity and regenerative capabilities. They then discuss the application of these findings to such issues as depression, dyslexia, schizophrenia, and cognitive therapy, incorporating the latest technologies in neuroimaging, optogenetics, and nanotechnology. Their work shows the brain is anything but a static organ, ceasing to grow as human beings become adults. Rather, the brain is dynamic, evolving organically in relation to physical, cultural, historical, and affective stimuli, a plasticity that provides early hope to survivors of trauma and degenerative disorders.  “Highly informative, up to date, and entertaining, The Custom-Made Brain emphasizes that the brain is constantly being constructed during an individual’s lifetime, like a medieval cathedral that is never finished and yet ages without reaching ‘maturity.’ The brain, like the cathedral, is forever being repaired and restored. A stimulating read.” —Israel Rosenfield, City University of New York, author of The Invention of Memory: A New View of the Brain  “This short account succeeds in an original and thought-provoking manner. It will become a valuable resource for clinicians who manage the care of those disabled by stroke, brain injury, or dementia. Many young scientists will be encouraged to take up the challenge of brain repair in the face of decades of therapeutic pessimism.” —Lawrence Whalley, University of Aberdeen, author of The Aging Brain
    Zum Buch
  • Fostering Livelihoods with Decentralised Renewable Energy: An Ecosystems Approach - cover

    Fostering Livelihoods with...

    Irena International Renewable...

    • 0
    • 0
    • 0
    This brief discusses the ’ecosystem’ necessary for linking electricity services through decentralised renewable energy with people’s livelihoods.
    Zum Buch
  • NASA and the Space Industry - cover

    NASA and the Space Industry

    Joan Lisa Bromberg

    • 0
    • 0
    • 0
    A timely exploration of the relationships between NASA and the private sector: “An interesting read.” —Spaceflight 
     
    Few federal agencies have more extensive ties to the private sector than NASA. NASA’s relationships with its many aerospace industry suppliers of rocket engines, computers, electronics, gauges, valves, O-rings, and other materials have often been described as “partnerships.” These have produced a few memorable catastrophes, but mostly technical achievements of the highest order. Until now, no one has written extensively about them. 
     
    In NASA and the Space Industry, Joan Lisa Bromberg explores how NASA’s relationship with the private sector developed and how it works. She outlines the various kinds of expertise public and private sectors brought to the tasks NASA took on, describing how this division of labor changed over time. She explains why NASA sometimes encouraged and sometimes thwarted the privatization of space projects and describes the agency’s role in the rise of such new space industries as launch vehicles and communications satellites.
    Zum Buch