Final Project – Punch-Counting Boxing Gloves

Punch-Counting Boxing Gloves

Mackenzie Carlson

What You’ll Need:

Code:

input.onGesture(Gesture.ThreeG, function () {
light.setPixelColor(Punch,0xff00ff)
strip.setAll(0xff00ff)
Punch += 1
if(Punch == reps){
light.showRing(
`black black black black black black black black black black`
)
Punch = 0
for(let index =0; index <= Set; index++){
light.setPixelColor(index,0xff0000)
strip.showAnimation(light.theaterChaseAnimation, 500)
}
Set += 1
}
if(Set ==10){
music.siren.play()
Punch = 0
Set = 0
light.showRing(
`black black black black black black black black black black`
)
}
})
let strip: light.NeoPixelStrip = null
let reps = 0
let Set = 0
let Punch = 0
Punch = 0
Set = 0
reps = 5
strip = light.createStrip(pins.A1, 30)

Steps:

  1. Adhere your 3D printed Ninja Flex CPX holder to your boxing gloves. You can use your Gorilla Glue for this step or another adhesive like hot glue. Make sure the glue is fully dry and the container is secured to the glove before continuing to the next step.

2. Fit your CPX to the 3D printed container. Once it sits in the container with little movement, plug your power source- the two coin cell batteries- into the CPX. Then, to connect the neopixel strip, secure your red wire to VOUT, your white wire to A1, and your black wire to G. The easiest way to do this would be to strip the ends of your neopixel wire, threading them through the holes and twisting them back around each other to create a secure connection between the CPX and the neopixel strip.

3. Adhere the top of the 3D printed container to the body to secure your CPX to the glove. Gorilla glue or hot glue can be used for this step as well.

4. Wrap the neopixel strip around the glove. Secure in place with Gorilla Glue or hot glue.

5. Adhere and secure the neopixel strip to the front of the glove. Switch on your coin cell batteries and get punching!