MicroPython for BBC micro:bit Technical Workshop


Book Description

BBC micro:bit is a development board to learn embedded system easily. This book is designed to help you to get started with BBC micro:bit development using MicroPython platform. The following is a list of highlight content in this book. * Development environment preparation * Set up MicroPython on BBC micro:bit Board * Display Programming * BBC micro:bit GPIO * Reading Analog Input and PWM * Working with SPI * Working with I2C * Working with Accelerator and Compass Sensors




BBC Micro:bit in Practice


Book Description

Develop real-world interactive physical computing applications using the Micro:bit with more than 100 MicroPython examples with circuit diagrams Key FeaturesExplore hardware programming and leverage the power of the BBC Micro:bit and MicroPythonBuild real-life creative projects step by step with each chapter increasing in complexity and interactivityLearn the features of the Micro:bit and how to interface it with electronic components through circuits and code examplesBook Description This book is a one-stop guide for learning BBC Micro:bit with MicroPython, exploring many hardware components and programming techniques to provide detailed insights into developing practical applications with the Micro:bit. It will also show you how hardware components can be manipulated using a combination of Micro:bit and MicroPython for developing practical projects. BBC Micro:bit in Practice will help you gain a holistic understanding of the BBC Micro:bit platform and MicroPython programming, guiding you through mini projects aimed at developing practical knowledge of circuit design and writing programs. You'll learn how to write programs for working with built-in LEDs and buttons, interfacing external LEDs, buttons, motors, buzzers, and much more. You'll also work with built-in radio, speakers, accelerometer, and a compass. You'll dive into concepts related to the Micro:bit filesystem, interfacing external displays, and working with libraries in detail before exploring sewable circuits and wearable technology. After reading this Micro:bit book, you'll understand how to apply principles in electronics and MicroPython to create interesting real-life projects from scratch. What you will learnExplore the essentials of the BBC Micro:bit, its hardware specifications, and versionsProgram built-in and external LEDs and buttonsProgram external LED-based displays, buzzers, and stepper motorsUse analog input and pulse width modulation to drive a servo motorDetect gestures with internal sensors such as accelerometer, compass, and magnetometerWork on projects with built-in features such as music, speech, radio, and filesystemExplore the advanced features of the Micro:bitWho this book is for This book is for anyone who wants to use the combination of MicroPython and the BBC Micro:bit for building exciting real-life projects. Engineers, researchers, hobbyists, and technology instructors working in areas such as embedded systems, electronics, software development, IoT, robotics, teaching, and training will find this book useful for building projects. Prior experience with building basic electronic circuits and any programming language, not necessarily MicroPython, will be helpful.




MicroPython for STM32 Nucleo Technical Workshop


Book Description

This book explores about MicroPython development with STM32 Nucleo boards.Some basic development are be provided with step-by-step. The following is a list of topics in this book: * Preparing Development Environment * Setting Up MicroPython for STM32 Nucleo * GPIO Programming * PWM and Analog Input * Working with I2C * Working with UART * Working with SPI * Working with DHT Module




Beginning BBC micro:bit


Book Description

Learn essential concepts and techniques to build simple-to-advanced projects and overcome common programming challenges in micro:bit development. Beginning BBC micro:bit will take you through the complete features and capabilities of the micro:bit controller, enabling you to program and build your own projects. The uses are endless for the micro:bit and this books will help get you started on building your next project with this popular and easy-to-use microcontroller. You'll use online Python Editor and Mu Editor to build your own applications. Reviewed by the micro:bit developer team, this comprehensive guide also provides clean code examples to help you learn the key concepts behind the micro:bit API. What You’ll Learn Work with the various kits and accessories Master the micro:bit development platform with easy to follow examples and clean code Build your own micro:bit applications using an online Python editor and Mu editor Use the on-board LED matrix, built-in buttons, I/O pins, accelerometer, and compass Learn how to connect and communicate with devices through I2C, SPI, and UART Build applications with music and speech libraries Use Local Persistent File System to store and manipulate files Build applications based on wired and radio networks Use micro:bit and micro:bit Blue apps Who This Book Is For Beginners, those already experienced with electronics, and hobbyists at all levels looking to get started with a new microcontroller.




Programming the BBC micro:bit: Getting Started with MicroPython


Book Description

Quickly write innovative programs for your micro:bit—no experience necessary!This easy-to-follow guide shows, step-by-step, how to quickly get started with programming and creating fun applications on your micro:bit.. Written in the straightforward style that Dr. Simon Monk is famous for, Programming the BBC micro:bit: Getting Started with MicroPython begins with basic concepts and gradually progresses to more advanced techniques. You will discover how to use the micro:bit's built-in hardware, use the LED display, accept input from sensors, attach external electronics, and handle wireless communication.•Connect your micro:bit to a computer and start programming!•Learn how to use the two most popular MicroPython editors •Work with built-in functions and methods—and see how to write your own•Display text, images, and animations on the micro:bit’s LED matrix•Process data from the accelerometer, compass, and touch sensor•Control external hardware by attaching it to the edge connector•Send and receive messages via the built-in radio module•Graphically build programs with the JavaScript Blocks Editor




The Official BBC micro:bit User Guide


Book Description

The go-to guide to getting started with the BBC micro:bit and exploring all of its amazing capabilities. The BBC micro:bit is a pocket-sized electronic development platform built with education in mind. It was developed by the BBC in partnership with major tech companies, communities, and educational organizations to provide kids with a fun, easy, inexpensive way to develop their digital skills. With it, kids (and grownups) can learn basic programming and coding while having fun making virtual pets, developing games, and a whole lot more. Written by internationally bestselling tech author Gareth Halfacree and endorsed by the Micro:bit Foundation, The Official BBC micro:bit User Guide contains what you need to know to get up and running fast with the BBC micro:bit. Learn everything from taking your first steps with the BBC micro:bit to writing your own programs. You'll also learn how to expand its capabilities with add-ons through easy-to-follow, step-by-step instructions. Set up your BBC micro:bit and develop your digital skills Write code in JavaScript Blocks, JavaScript, and Python Discover the BBC micro:bit’s built-in sensors Connect the BBC micro:bit to a Raspberry Pi to extend its capabilities Build your own circuits and create hardware The Official BBC micro:bit User Guide is your go-to source for learning all the secrets of the BBC micro:bit. Whether you're just beginning or have some experience, this book allows you to dive right in and experience everything the BBC micro:bit has to offer.




micro:bit Projects with Python and Single Board Computers


Book Description

Build different components of larger systems using class sets of micro:bits with Python in a truly collaborative way. First you’ll explore ways to harness the capabilities of the humble micro:bit and learn to creatively overcome some of its limitations; learning practical text-based programming along the way. We’ll then move on to building projects that allow multiple micro:bits, and other microcontroller boards and parts like the Raspberry Pi, to communicate with one another, and coordinate their operations to build larger systems. Rather than just being a guide to learning these skills, this book will include tips and stories about implementing the these ideas in classrooms, Code Clubs, and Maker environments. Practical logistics for preparation and easy set-up, as well as, acceptance criteria and accountability for students and participants is included. These ideas were gained over years of running a Code Club and running Maker workshops and events. You’ll learn about programming collaborative solutions and design logic. Then you’ll scale that logic up to more complex projects. By the end, you’ll have added additional electronic and physical components to projects that interact with the world. You’ll create fun inventions together, using hardware, coding, electronics, physical objects, and e-textiles. What You'll Learn Solve problems and create art by modelling solutions and ideas with a combination of Python coding, electronic systems engineering, and creative design. Navigate the logistical and unique challenges that come with running your own Code Club, Makerspace, or feeding these activities into STEAM design and technology curriculums. Take new Makers from simply copying and duplicating through to debugging and understanding. Who This Book Is For Makers and instructors interested in starting group projects while learning to code and gain other Maker skills along the way. Essential information is provided in a form that enables beginners and intermediate Makers to get hands-on quickly, but with enough depth to keep building on these projects and pushing the boundaries.




CircuitPython Development Workshop


Book Description

CircuitPython is a development framework for embedded system based MicroPython. This book helps you to get started with CircuitPython development. This book uses Adafruit ItsyBitsy M0 Express board for development testing board. The following is a list of highlight topics in this book: * Preparing Development Environment * Setting Up CircuitPython * GPIO Programming * PWM and Analog Input * Working with I2C * Working with UART * Working with SPI * Working with DHT Module




Programming with MicroPython


Book Description

It’s an exciting time to get involved with MicroPython, the re-implementation of Python 3 for microcontrollers and embedded systems. This practical guide delivers the knowledge you need to roll up your sleeves and create exceptional embedded projects with this lean and efficient programming language. If you’re familiar with Python as a programmer, educator, or maker, you’re ready to learn—and have fun along the way. Author Nicholas Tollervey takes you on a journey from first steps to advanced projects. You’ll explore the types of devices that run MicroPython, and examine how the language uses and interacts with hardware to process input, connect to the outside world, communicate wirelessly, make sounds and music, and drive robotics projects. Work with MicroPython on four typical devices: PyBoard, the micro:bit, Adafruit’s Circuit Playground Express, and ESP8266/ESP32 boards Explore a framework that helps you generate, evaluate, and evolve embedded projects that solve real problems Dive into practical MicroPython examples: visual feedback, input and sensing, GPIO, networking, sound and music, and robotics Learn how idiomatic MicroPython helps you express a lot with the minimum of resources Take the next step by getting involved with the Python community




MicroPython Cookbook


Book Description

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 FeaturesLoad and execute your first program with MicroPythonProgram an IoT device to retrieve weather data using a RESTful APIGet to grips with integrating hardware, programming, and networking concepts with MicroPythonBook 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 learnExecute 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 colorsBuild projects that make use of light, temperature, and touch sensorsConfigure devices to create Wi-Fi access points and use network modules to scan and connect to existing networksUse Pulse Width Modulation to control DC motors and servosBuild an IoT device to display live weather data from the Internet at the touch of a buttonWho 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.