Baseball Pitch Counter

标签:DIY

LUCY 发布于 2018-05-17 09:30

fp.png

An automated baseball pitch counter with the help of a micro:bit.

1 x BBC micro:bit board

As a baseball player you know that keeping a pitch count is vital to limiting a pitcher's pitches and keeping their arm healthy. The duty is often relegated to one of the players or coaches on the bench. However, as humans, we all make mistakes and they often forget to count a pitch and therefore making the pitch count inaccurate. That's why I decided to create an automatic pitch counter with my micro:bit. It uses an accelerometer to measure if a pitch is thrown and adds one to the amount of pitches thrown.

To start my project, I used the "on shake" block while coding my micro:bit, but I found that it was a little too sensitive and often counted slight arm movements as pitches.

After deciding that using the accelerometer would be the best way to measure if a pitch was being thrown I had to find out the amount of force that is being exerted when throwing a pitch. After several test, I concluded that 3000mg would be a good baseline measurement to count any amount of force above it as a pitch. Common arm movements and shaking does not count as pitches because of the high baseline while even slower pitchers throw hard enough to count as a pitch.

Another thing that I had to think about while creating my program was how I would be able to send a signal that included the number of pitches thrown from the micro:bit that measures force and amount of pitches to the coach's micro:bit so that he can see how many pitches thrown. A simple solution to that problem was to set them on the same radio group, max out the transmit power on the pitcher's micro:bit, and set the coach's micro:bit to receive the information. This way, the amount of pitches shown on the pitcher's micro:bit can also be seen on the coach's micro:bit for easy reference by the coach.

Lastly, I wanted to create a little fun game for the pitch counter to use in addition to just counting the number of pitches thrown. The program also includes a game (with a strength meter) that measures the amount of force in gravitational metric units of force. This feature allows you to see how much quickly your arm is accelerating and it could be a fun way to challenge yourself to throw even harder.

Here is the code (in blocks) and the program in use:


Pitch Counter(Pitcher's micro:bit)

Pitch Counter Receiver(Coach's micro:bit)

https://youtu.be/STFj3fWCqME

This article comes from hackster.io and written by Trevor Taka and Douglas Kiang.

https://www.elecfreaks.com/13058.html

 

作者

LUCY

广东,深圳

6粉丝 62作品 15随笔
  关注 私信

作者的最新作品


阅读数: 4715