Agility Training Machine
Nowadays, people can't live without sports and movement, because of this, your agility for movement became an important skill. I've been playing basketball, and thinking about what can be a good way to practice my agility without wasting a lot of time and energy.
So I made a machine that is how I usually train my agility.
This machine is a machine called the agility training machine. It has 4 lights changing irregularly after you press the button. Although this is not a complicated or hard training, it still helps if you do it whenever you have time. Any factors like climatic factors or topographical factors, won't be affecting while you are doing this training.
Step 1: Materials
the material list of this training machine is provided under:
1x Arduino Leonardo or Equivalent and USB cable
1x breadboard
9x 220-ohm resistor
50x wires
1x Ultrasonic sensor
4x LED
1x scissor
tape
The materials above are the basic ones I've been using. If you would like to do any small changes, you are allowed to add or change anything. For example, if you would like to add the amount of the lights, you can add any, but make sure that your code and materials will also change. Another example is that if you want to change this height of your bracket or the materials, you are also allowed to change them.
Step 2: Code
void setup(){ // put your setup code here, to run once:
pinMode( 2 , INPUT); // sets the digital pin as input
pinMode( 13 , OUTPUT); // sets the digital pin as output
pinMode( 12 , OUTPUT); // sets the digital pin as output
pinMode( 4 , INPUT); // sets the digital pin as input
pinMode( 11 , OUTPUT); // sets the digital pin as output
pinMode( 10 , OUTPUT); // sets the digital pin as output
}
void loop(){ // put your main code here, to run repeatedly:
if (digitalRead( 2 )) {
digitalWrite( 13 , LOW ); // sets the digital pin on/off
digitalWrite( 12 , HIGH ); // sets the digital pin on/off
}
else {
digitalWrite( 13 , HIGH ); // sets the digital pin on/off
digitalWrite( 12 , LOW ); // sets the digital pin on/off
}
if (digitalRead( 4 )) {
digitalWrite( 11 , LOW ); // sets the digital pin on/off
digitalWrite( 10 , HIGH ); // sets the digital pin on/off
}
else {
digitalWrite( 11 , HIGH ); // sets the digital pin on/off
digitalWrite( 10 , LOW ); // sets the digital pin on/off
}
}
Step 3: Final Project
This video above shows how my machine works. As the light changes, my hand will follow along with the lights.
In the video, as I handle the ball, I still have the ability to move around and follow the lights. This trains my agility. I can add the amount of the lights or speed up the time of the light changing. The company with you can talk with you about it, and you are able to adjust anything.