Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
BBC Micro:bit in Practice

You're reading from   BBC Micro:bit in Practice A hands-on guide to building creative real-life projects with MicroPython and the BBC Micro:bit

Arrow left icon
Product type Paperback
Published in Dec 2022
Publisher Packt
ISBN-13 9781804610121
Length 292 pages
Edition 1st Edition
Arrow right icon
Authors (3):
Arrow left icon
Sandeep Saini Sandeep Saini
Author Profile Icon Sandeep Saini
Sandeep Saini
Ashwin Pajankar Ashwin Pajankar
Author Profile Icon Ashwin Pajankar
Ashwin Pajankar
Abhishek Sharma Abhishek Sharma
Author Profile Icon Abhishek Sharma
Abhishek Sharma
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1: Getting Started with the BBC Micro:bit
2. Chapter 1: Introduction to the BBC Micro:bit FREE CHAPTER 3. Chapter 2: Setting Up the Micro:bit and Using Code Editors 4. Chapter 3: Python Programming Essentials 5. Chapter 4: Advanced Python 6. Part 2: Programming Hardware with MicroPython
7. Chapter 5: Built-in LED Matrix Display and Push Buttons 8. Chapter 6: Interfacing External LEDs 9. Chapter 7: Programming External Push Buttons, Buzzers, and Stepper Motors 10. Part 3: Filesystems and Programming Analog I/O
11. Chapter 8: Exploring the Filesystem 12. Chapter 9: Working with Analog Input and PWM 13. Part 4: Advanced Hardware Interfacing and Applications
14. Chapter 10: Working with Acceleration and Direction 15. Chapter 11: Working with NeoPixels and a MAX7219 Display 16. Chapter 12: Producing Music and Speech 17. Chapter 13: Networking and Radio 18. Chapter 14: Advanced Features of the Micro:bit 19. Chapter 15: Wearable Computing and More Programming Environments 20. Index 21. Other Books You May Enjoy

Fall detector

Now, let us design another helpful device using the Micro:bit. Elderly people, children, and people with balancing issues are prone to falling while doing their daily activities. Such people require extra attention or a permanent attendee to monitor their movement. This person should monitor their movements and help them in case they fall. Due to a variety of reasons, the presence of an additional person might not be possible 24/7. We can design a fall detector using the Micro:bit that will generate a signal for the other person if the user has fallen. This device can also be used to detect accidents on bicycles or any other fall. In such cases, the device can call for help.

For this experiment, we need to check the range of accelerometer data from the Micro:bit for different movements. We will use the Mu editor and write a simple program to print and plot the accelerometer values for analysis purposes:

Figure 15.2 – Accelerometer data...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime