Building Arcade Games with Littlebits

Cybersecurity First Principles in this lesson

Introduction

In this lesson, we will explore a cool hands-on activity with Littlebits to build an arcade game. Littlebits follows a component-based design paradigm using GPIO (or general purpose input/output) to let you easily make different inventions. We will learn how to plug and play bits together to make some simple inventions. Littlebits is one the key components in your final Rube Goldberg machine. Inventions developed in this module will add a layer to your machine.

Goals

  1. Student will be able to use Littlebits to make a functional arcade game.
  2. Student will be able to understand funciontal modularity.
  3. Student will be able to come up with their own arcade ideas, refine them and iteratively improve their designs.

Materials Required

Prerequisite lessons

Table of Contents

Step 1: Unbox it!

First, open your Littlebits Arcade Game box. Take a second to look at the different components you have.

A quick reminder, Littlebits is organized around three colors:

Look over each module.

unbox

Step 2: Gotta start somewhere

No time like the present. Let’s make a simple invention. Your box should include a helpful “TRY THIS STARTER CIRCUIT” diagram. Try and build it!

Lets make a simple circuit:

unbox

That was easy!

This is GPIO in a nutshell. Each module has a general purpose input and output, with a standard interface, and doesn’t need to understand or know anything about what they are connected to. These modules also need to protect themselves from invalid input. For example, try and connect the wrong side of the servo module of the power module. The magnetic polarity of Littlebits should stop you from doing so. This is a great example of the modularity cybersecurity first principle.

Step 3: Pinball Hall of Fame!

Ok, we’ve made our first circuit - but it’s pretty simple. Let’s add some more modules and make a pinball arcade game:

Follow the instructions linked here to build the game.

Arcade Thumbnail

Step 4: Ready to Launch?

What can be more fun than making your own pinball machine? I know… a launcher for crumpled paper balls! Turns out, with a few modification, we can repurpose the materials used in the pinball machine to make a Catapult.

Whatever you do don’t let the teacher catch you launching these ;-)

Follow these instruction to build one of these.

Catapult Thumbnail

Self Exploration

Seems like you got a hang of this! Now think of an invention that would nudge an Ozobot on to the next stage of your Rube Goldberg machine. Use the iterative design process to build some prototypes and then refine them.

Here is something simple that I tested:

Launcher

Additional Resources

Lead Author

Acknowledgements

Special thanks to Dr. Matt Hale for reviewing and editing this lesson.

License

Nebraska GenCyber Creative Commons License
is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Overall content: Copyright (C) 2017-2018 Dr. Matthew L. Hale and Dr. Robin Gandhi.

Lesson content: Copyright (C) Dr. Matthew L. Hale 2017-2018.
Creative Commons License
This lesson is licensed by the author under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.