Skip to content

Implementation and Design

Freddy Levs edited this page May 18, 2024 · 1 revision

Design

  • Integrated IC taped under the board that uses resistors (1k), wiring, Arduino uno microcontroller, 4 servos, and 4 photoresistors
  • Uses the change in light intensity to detect a ball has landed in a scoring position
  • Code powers servos to move positions and hit ball back into play
  • The LCD then updates scoring based on rules of baseball
  • Set up follows ideology of baseball with a single, double, triple, and homerun.
  • 4 3D printed cm by cm blocks are placed in front of each scoring position to allow for the ball to stay in place and be an achievable landing spot

Homerun in right field. This is the base position where nothing has been detected and the photoresistor is reading light at a constant value. You can see the servo is at a base home position. It is waiting for a ball to land.

image10 (4)

Homerun in right field. This is the scoring position and is symbolic of a ball has landed and now been pushed back out. The score would update on the LCD and the ball would be coming back to the bumpers to be hit again. This means the photoresistor read a change in light intensity, seeing dark because of the ball blocking the hole. This represents a homerun and score increase.

image9 (2)

Triple at third base. This is the base position where nothing has been detected and the photoresistor is reading light at a constant value. You can see the servo is at a base home position. It is waiting for a ball to land.

image12 (2)

Triple at third base. This is the scoring position and is symbolic of a ball has landed and now been pushed back out. The score would update the counter and trigger the LCD if proper and the ball would be coming back to the bumpers to be hit again. This means the photoresistor read a change in light intensity, seeing dark because of the ball blocking the hole. This represents a triple so the counter would update if a base had already been achieved before or a "player would be in scoring position".

image11 (5)

Double at second base. This is the base position where nothing has been detected and the photoresistor is reading light at a constant value. You can see the servo is at a base home position. It is waiting for a ball to land.

image13 (2)

Double at second base. This is the scoring position and is symbolic of a ball has landed and now been pushed back out. This means the photoresistor read a change in light intensity, seeing dark because of the ball blocking the hole. The score would update the counter and trigger the LCD if proper and the ball would be coming back to the bumpers to be hit again. This represents a double so the counter would update if a double or triple had already been achieved before or a "player would be in scoring position".

image14 (3)

Single at first base. This is the base position where nothing has been detected and the photoresistor is reading light at a constant value. You can see the servo is at a base home position. It is waiting for a ball to land.

image16 (1)

Single at first base. This is the scoring position and is symbolic of a ball has landed and now been pushed back out. This means the photoresistor read a change in light intensity, seeing dark because of the ball blocking the hole. The score would update the counter and trigger the LCD if proper and the ball would be coming back to the bumpers to be hit again. This represents a single so the counter would update if a triple had already been achieved before or a "player would be in scoring position".

image15 (3)

Clone this wiki locally