Desktop Hockey Game

by zramos3 in Circuits > Electronics

25 Views, 0 Favorites, 0 Comments

Desktop Hockey Game

IMG_3488.jpeg

For this project, we are improving a desktop game made by a group before us. We will be taking their original design and improving on it by making it slightly better looking and more optimal for it's users. While we were looking over the previous design we realized that it could be improved in terms of how neat it looks. The CPX was out in the open with no case so we decided it would be best to find a way to put the CPX in a type of casing while still making it easy to use.

Supplies

The supplies we will be using are a CPX, a servo motor, a rubber band, the original 3D printed items, and our new 3D printed item (https://www.thingiverse.com/thing:3878226).

Connecting the Servo Motor

IMG_3490.jpeg

Servo motor is attached with hot glue. The wires at the bottom of the motor should face up and to the left, when looking at the game from the rear. The screw attachment point should be centered to meet the top edge of the back of the game. The flag should then be attached and adjusted so that when the game is reset with the B button the flag should be down. 


Coding

Screenshot 2024-12-16 164014.png
Screenshot 2024-12-16 164027.png
Screenshot 2024-12-16 164055.png
Screenshot 2024-12-16 164103.png

All of the code that was used for our CPX is in the screenshots above.

3D Design Download

IMG_3489.jpeg

https://www.thingiverse.com/thing:3878226


This link is the holder for the CPX that we used.

Final Assembly/ Instructions

IMG_3488.jpeg


  1. Align cut outs on both halves of the game and hot glue
  2. Attach battery pack to the lower left hand corner of the game, with wires facing the top and the on-off switch facing out
  3. Attach servo (as above)
  4. Insert CPX into the holder, with the micro-USB slot at the 12 o’clock position
  5. Attach wires from motor to alligator clips as below 
  6. Red to Blue 
  7. Brown to Purple
  8. Yellow to Green
  9. Attach alligator clips to CPX as below
  10. Blue to 3.3v Pin at the 9 o’clock position
  11. Purple to GND pin at 3 o’clock position
  12. Green to A2 pin
  13. Plug battery pack in to CPX
  14. Attach flag and adjust so that when the game is reset with the B button the flag is down