Universal Remote Control

In the future more and more things will be programmable. Imagine if everything had a computer inside and you'd have the universal remote. This is an exercise where you'll get to practice building a remote and giving commands.

The tiny computers that live inside your every day stuff are called microcontrollers. Instead of having screens and keyboards and hard drives everything fits into one tiny circuit. Microcontrollers still have a processor, memory and different input/output systems. (Say hi to the micro controller inside your remote!)

What you'll need:

  • scissors or craft knife
  • brightly colored pencils
  • scrap paper for more code
  • a friend to be your computer.

Instructions

  1. Start by cutting out the remote control. Fold it in half.
  2. Cut out the pieces of code.
  3. Here's a few suggestions:
  4. Say "Woo!"
  5. Clap your hands
  6. Jump up and down

  7. Now write down your instructions. You can ask your parent to help you with writing.

  8. Finally, slip your code into the remote.

  9. Time to test! Have your friend be the computer. How fast can you tap different buttons before your friend gets confused? Now swap roles and instructions.

More things to do

Some microcontrollers don't need you to push a button in order to work. They have sensors that monitor the changes in the environment. Can you design a computer around the following sensors?

  • Temperature. When the temperature gets hot, do this:
  • Orientation. When the door is left open, do this:
  • Vibration. When someone knocks on the door, do this:
  • Moisture. When it rains do this:
  • Internet. When there's a new toy in sale, do this:

Events

In computer science defining an action that causes something to happen is called an event. Every time you click with your mouse, type on the keyboard or push a button on the microwave, an event is triggered. This way we can gave traffic lights that don't need lunch breaks and AC machines that automatically turn off when it gets cold.

Community

Done playing?

Find another exercise!

pLAy moRe!

Made something cool?

Show it to us! We might even feature it on this page.

EmAiL us!