beanz Magazine

Laser Burglar Alarm

Alan Cleaver on Flickr

Protect your home with micro:bit!

This project will help keep our home safe from intruders and scare our parents / brothers / sisters, all using the power of the micro:bit.

Intro

Protect your home! Can we use the power of the micro:bit to keep safe (or our family out of our room?) Well yes we can and this is thanks to something special about the micro:bit.

Unlike the Raspberry Pi, the micro:bit GPIO (General Purpose Input Output) pins feature analog inputs. This means that when a compatible component is connected it returns a voltage, rather than a 0 or 1 (digital input / output). This voltage is controlled by the sensor. For example, a potentiometer will have variable resistance depending on which way it is turned. In this project we shall use a Light Dependant Resistor (LDR) to monitor a light shone upon it, if the light beam is broken then our micro:bit alarm will alert us to an intruder.

In this project we shall learn:

  • How to code with Python
  • How to connect components to the micro:bit
  • How a Light Dependant Resistor works
  • How to generate sound
  • How a loop works
  • How a conditional statement works

Become a subscriber and get access to the rest of this article. Plus all our magazine articles.

Stories also include numerous links to help parents, kids, and teachers learn more. Get access today at just $15 per year for online magazine only or $29.99/year for print + online ($35/year outside US)!

Subscribe Today!

Also In The April 2018 Issue

Who chooses new emojis? And what’s coming in the next batch?

Build your own voice-controlled digital assistant with a Raspberry Pi and an analog speaker.

Using Scratch and some simple vector math, create your own Boids algorithm to simulate the flight of birds.

6 hands-on STEM camps and clubs to join this summer.

With these new high-tech cards, public transit is easier than ever.

Slice digital photos into pieces and have fun pasting them back together.

Meet the cute little bot that’s helping scientists understand the courtship of frogs.

Dive into the nitty-gritty of game-making with this popular Python library.

Learn about the Native soldiers and the creative cypher code that helped win WWII.

Our cars aren’t quite driving themselves, but they can help us park and avoid collisions.

Make your games even more exciting with custom user-created content!

A clever teacher uses our favourite round robot to bring books to life.

Learn how to search through blobs of text with speed, accuracy, and elegance… like a ninja!

Links from the bottom of all the April 2018 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about computer science, software programming, and technology for April 2018.