Coding “Jump Scare” Halloween Props #CodeBreaker

Coding "Jump Scare" Halloween Props #CodeBreaker

Well, Halloween is just around the corner!

What better opportunity to make use of the Micro:Bit accelerometer to build a script that responds to movement. Perhaps you want to make a haunted pumpkin? Perhaps you want to control your porch lights when kids approach? All possible with the Micro:Bit and OnShake command.

In this video, I have created a simple script that animates the lights and triggers sound when the Micro:Bit detects a shake. The program is rather simple and this is only the beginning.

Scare your friends this Halloween by coding haunted props! #CodeBreaker #CSForAll Click To Tweet

Now to decide what I want to make haunted! Love to hear your ideas below!

Below is the script! Give it a try for yourself!

For more lessons, activities and ideas, grab a copy of my book, Code Breaker, on Amazon here!

(Visited 1,069 times, 1 visits today)

Leave a Reply

Email *