I made a servo controlled basketball court for this demo. The backboard and the base are made of papers. The basket is made of paper cardboard. The support of the basket is made of straws.
This prototype court functions as a timer. The basket is raised up for 5 seconds and then lowered to the normal position for 10 seconds. The concept could be further scaled up to develop an interesting timer for children who love playing basketball. It could be developed into a gaming system which let the kids get ready while the basket is raised, and shoot the basket in a limit amount of time while it’s in the normal position. It could be a fun competition for kids when they are free.
#include <Servo.h> Servo my_hoop; void setup() { // put your setup code here, to run once: my_hoop.attach(9); } void loop() { // put your main code here, to run repeatedly: my_hoop.write(10); delay(5000); my_hoop.write(90); delay(10000); }
Leave a Reply
You must be logged in to post a comment.