Arduino or Twitter Mets Apple

Whenever I go to Citi Field with my kids to see the Mets, they go crazy for the Home Run Apple.To me, the Apple is part of what makes baseball exciting for kids. Even though my kids may not watch most of the games, I still enjoy bringing them along.

The Home Run Apple started popping out of a top hat at Shea Stadium in 1980 and now Citi Field has an updated version of the Apple. The apple pops up when a Met hits a home run. The old apple from Shea Stadium was retired and now rests outside of the Jackie Robinson Rotunda of Citi Field.

There are a few other teams around the majors that have their own home run gimmicks as well, and I have written this project in a way that it could be easily adapted to another team. The other teams that come to mind are the Angels (fireworks), Astros (Train), Brewers (Bernie Brewer sliding down a yellow slide), Marlins (clockwork fish & fireworks), Phillies (Liberty bell) and Reds (fireworks). Feel free to let me know if I have missed any in this list.

I thought I would like to have a little piece of Citi Field in my house that would react when the Mets hit a homerun. I thought of a few different options, but all of them would be difficult to implement reliably on such a small platform as the Arduino. The main problem is that while baseball scores are available, you have to pay for most data feeds. To make things worse, I didn’t really want a box score or any other form of sports score that I could think of. I wanted a notification of a current home run on a timeline that I could acknowledge and ignore until another home run notification came in. The only possibility that I could think of was Twitter.

Arduino or Twitter Mets Apple

First working prototype…

Final working apple!

Step 1: Lego Prototypes

Originally I was just planning to temporarily make the apple and top hat out of Legos until I could find a more suitable solution. My daughters have a growing collection of Legos, but unfortunately almost all of theirs are pink, white and light green. I stopped by a Lego store and bought a small container (about $8) of red and black bricks from the pick-a-brick bins and built the first model which was very boxy.

I wanted something that had a little more curve to it, but I had used up all of the Legos I bought. I made another trip to a different Lego store, hoping to find different sizes of bricks and hopefully some plates as well. I didn’t have much luck finding plates, but I did get a good variety of black and red bricks, so I bought the large container (roughly $15) and filled it up.

I still wasn’t satisfied with the curves I was able to make, so I made another trip to the Lego store and bought another large container (I know, I can’t help myself). I figured I could make the curves smoother if I just made it big enough. Unfortunately, the smooth horizontal curves that I can get by making it bigger don’t help with the vertical curves of the apple, so I needed to find some plates.

I looked on Lego.com and a few brick resale sites online, but it seems like you have to buy everything separately and it can get very expensive, very quickly. I looked on eBay and found a user selling 1/4lb bags of color separated Legos with a buy it now auction. I bought 2 red and 2 black and hoped that they had a good selection of plates. When the bags came they had everything I needed and there was plenty of excess that I gave to my kids to improve their collection.

Step 2: Servo

I bought a micro-servo from Sparkfun because it was cheap ($9) and I thought space might be an issue. I’ve never had a reason to use servos with Arduino, but this worked very easily and without too much trouble.

I first tested the servo with the basic servo sweep sketch on the Arduino and moved the arm back and forth. I had to adjust the arm so I kept the movement that I needed within the range of the servo. It seems like the servo strains a bit when it gets up to the outer limits of it’s movement. Avoid the urge to force the servo to a particular place because you may break something inside the servo.

I used a drinking straw as a push rod to pop the apple up and down. The straw was just the right size to fit into the circles on the bottom of the Legos so it would stay in place. The other end I trimmed short, poked a hole in the end, pushed a piece of UTP wire I had laying around through the straw and servo arm and twisted it up. I had found a spot to rest the servo in the side of the top hat and I used hot glue to stick it in place.

More good into about servos

Arduino or Twitter Mets Apple circuit

Step 3: Meet the Mets

I wanted to play some sound as well when I triggered the apple mechanism, so since I don’t have a way to play crowd sounds or baseball bat cracking sounds, I decided to make the Arduino play the Mets theme song “Meet the Mets”.

I found 2 different sets of sheet music for the song, and I pieced together the part I needed from the 2 sites. You have to click around an awful lot to get to the right instrument part, but I think I got it pretty close.

http://www.onlinesheetmusic.com/

http://www.hamienet.com/

I won’t go into it again here, but I wrote another Instructable that outlines my process for turning sheet music into Arduino code.

 

For more detail: Arduino or Twitter Mets Apple


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top