Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • The Carnival Game Megaproject

The Carnival Game Megaproject

Game 2 – The High Striker

This is a tall box with a vertically mounted LED strip that represents a high striker game, like you’d see at many carnivals. There is a pressure sensor on the top of the box that measures how hard it is struck, and so the LED strip can then visually display how hard the sensor was hit. The box is “won” when the user illuminates the lights above the differently colored LED near the top of the strip. Upon victory, another digit for the secret passcode is displayed on the 7-segment LED.

Build it:

  • Attach an LED strip to a cardboard box, oriented vertically.
  • Cut a slit in the top of the box for the FlexiForce sensor
  • Slide the sensor through the hole and tape it down so that it lays flush on the top of the box
  • Make a hot glue bead on a 1×1 inch piece of cardboard and let cool. This will focus the full impact to the center of the FlexiForce sensor.
  • Tape the cardboard piece centered above the FlexiForce sensor.
  • Cut a hole in the box that is the size and shape of a 7 segment LED and glue it in.

Wire it:

  • You will be using the High Striker SVG file for this part of the project. It was included in the code download at the beginning of this megaproject.

I/O Pin Connections:

  • P0-P7: 7-Segment LED
  • P15: FlexiForce (see Sense Light tutorial, the RCtime circuit is the same)
  • P17: LED Strip (follow connection instructions for your specific LED strip)

Note: It is best to run projects from a battery pack or wall supply, Do not try to run them off of the USB cable.

  • The high striker is played by hitting the piece of cardboard on top of the sensor. Getting the lights to light up past the threshold that is visible on the led strip causes a victory.
  • You may need to change the control of the 7-segment LEDs because of wiring differences. Refer to the 7-Segment tutorial on how to wire this circuit. This LED needs to display the number 2.

Printer-friendly version
Game 1 – The Impossible Prize
Prev
Game 3 – Bullseye
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress