Pinky Power Arcade Inspired Game

by apande29 in Circuits > Arduino

118 Views, 0 Favorites, 0 Comments

Pinky Power Arcade Inspired Game

20211213_174232.jpg

This is game inspired by the punching games found in arcades. This is more like a miniature version of that game using the Force sensitive resistor. The small size of the FSR makes it suitable to played us

Supplies

1 Breadboard

1 Force sensitive resistor

3 Alligator Clip to Breadboard pin cables

1 CPX

1 Resistor 10,000 ohm

1 USB cable

1 neopixel strip

3 wires

1 solder gun

1 solder

1 cardboard box

1 scissor

1 tape

1 colored paper

1 glue

Step 1: Making the Circuit for Get the Readings

20211211_145635.jpg
20211211_145618.jpg
20211211_145739 (2).jpg
  1. Place the ends of the force sensitive resistor on the breadboard at points a8 and a9.
  2. Place one cable on point c6, another on d10 and the third one on e11.
  3. Connect the alligator clip to the breadboard pin cable at c6 to 3.3V pin on the CPX.
  4. Connect the alligator clip to the breadboard pin cable at d10 to any pin on the CPX (here I have attached it to A2 pin).
  5. Connect the alligator clip to the breadboard pin cable at e11 to the ground or GND pin on the CPX.
  6. Place the resistor on pins b6 and e10.
  7. Connect the CPX to the computer using the USB cable.

Step 2: Getting the Initial Readings

Image 12-2-21 at 2.21 PM (2).jpg
  1. Type the code in the image above on Arduino.
  2. Run the code and see how application of force on the force sensitive resistor produces spikes on the graph shown in the console.
  3. Take note of the major pressure readings that bring out noticeable change in the graph.

Step 3: Code to Visualize the Force Applied on the FSR

20211212_103304.jpg
20211212_103324.jpg
porject 5.png
proj 5 part 2.png
proj 5 part 3.png
proj 5 part 4.png
  1. Solder one end of the wires to the neopixel strip and solder the other end to the CPX as shown above.
  2. Type the above code in makecode.
  3. The readings gotten from step 2 indicate that the major changes occur when pressure is less than 200, between 200 and 500, between 500 and 900, and above 900.The above code turns the neopixels on the CPX yellow when force applied is less than 200. When between 200 and 500, the neopixels turn red. Between 500 and 900 force input, the neopixels turn green. When a force greater than 900 is applied the CPX neopixels turn blue.
  4. Every color change is accompanied with a different sound. The neopixel strip changes color according to CPX neopixels.

Step 4: Add Decorations

20211213_173515.jpg
20211213_174232.jpg
  1. Take a box and cover it with colored paper of choice. Make a hole at the top and three holes in the front. Place the breadboard inside the box from the opening on the side.
  2. Pass the alligator clip to breadboard pin cables through the top hole.
  3. From the bottom most hole, pass the force sensitive resistor’s top half.
  4. From the leftmost hole pass the neopixel strip inside the box and bring it out through the rightmost hole.
  5. Attach the neopixel strip and the CPX to the front of the box.
  6. Connect the USB to the code and run the code.

Step 5: Results

Pink power

This is how the foi\