Sunday, November 24, 2013

the next steps that i, Ryan Carnevale, have taken were to program the servos responsible for swinging the bat and moving a ball toward the bat. a potentiometer would be used to put the servos in certain positions.  this was the code that was used.

#include <Servo.h>

Servo myservo;  // create servo object to control a servo
Servo ryanservo;
int potpin = 0;  // analog pin used to connect the potentiometer
int val;    // variable to read the value from the analog pin

void setup()
{
  myservo.attach(9);
  ryanservo.attach(10);// attaches the servo on pin 9 to the servo object
}

void loop()
{
  val = analogRead(potpin);            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 179);     // scale it to use it with the servo (value between 0 and 180)
  myservo.write(val);
delay(15);  // sets the servo position according to the scaled value
  ryanservo.write(val);
  delay(15);                           // waits for the servo to get there
}
The next step is to set up the LCD screen to show the score and David Ortiz's name and assemble the parts.


Thursday, November 21, 2013

Progress

On Thursday Novemer 21st, progress was made with the cutout. I, Francesco Catizone had previously made a solid baseball bat cutout that Ortiz will be using to swing.


Then the bat was inserted into the assembly by Ryan of the Ortiz cutout with his "arms."



 

Thursday, November 14, 2013

Our team's project idea is a moving cut-out of David Ortiz, from the Boston Red Sox, swinging his bat.  His body and arms is going to be a cut out from the Acrylic material we have at our use.  Then the bat and maybe a baseball will be 3D printed.  We plan to use a servo and a linkage in order to create the swinging motion of his arms.  Also, we have planned to use an LCD screen to read out "Red Sox Homerun!!" when he reaches the end of his swing  .Another idea we're playing with is having and audio playing during his swing as well.  We will use our Arduino boards to control the servo, the LCD screen, and possibly the audio. 
Below is an idea we're working on for the movement of his arms and the bat.

 
We're continuing to play with how the linkage of his arms will work and how we will control the movement with the servo.

This image is what were basing our cut out off of.  We're creating an outline of his body to use for the design of our Acrylic cut out.  We also made a table in order to create a reference scale for his body.

 Once we perfect the movement and structure of his body we'll move onto making his LEDs, and surrounding effects that were mentioned before.  In addition we may have a background scenery with fans and LED camera flashes to add to the affect.  The moment we are trying to create is the grand slam Ortiz hit in the ALCS this past post season.  This is where the audio will most likely come from.  Also, we may add a cutout of one special fan that gained attention from this homerun, who is pictured below.