Thursday, December 11, 2014

IT WORKS!

WE FINISHED! AND IT WORKS!

Despite our problems we managed to find solutions for them. Instead of using a DC motor to reel the line we used another servo motor the could also be controlled with another potentiometer using the same code as the other servo.

Here we are modifying the board to be able to use the other servo.

Once that was in place it was time to rewrite the code to include the next servo
This is what it ended up looking like.




And here is the finished crane in action,



I guess we won't become team Miley Cyrus Wrecking Ball after all.

Wednesday, December 10, 2014

THAT'S WHAT I'M TALKING ABOUT!!!!


It is done. Our servo can now be controlled by a potentiometer. This gives us so much freedom when trying the move the crane about the Z axis. It is now manually controlled rather than it moving based off of a timer.


THE FINAL CODE

#include <Servo.h>

Servo myservo;

int potpin = 0;
int val;  
void setup()
{
  myservo.attach(9);
}

void loop()
{
  val = analogRead(potpin);          
  val = map(val, 0, 1023, 0, 179);    
  myservo.write(val);                
  delay(15);                        
}

Tuesday, December 9, 2014

The Reveal!!!

Today we met to assemble the crane as a whole and run the code for the motors.  The assembly went well, as is evident in the pictures below


The problems ((DUN! DUN! DUNNNN!)
In assembling the crane, we came across two somewhat minor problems and also developed potential solutions for each problem.
  1. When combining the code for both motors, the servo motor keeps running its code and also the DC Motor code.
    1. The Solution:  We will use two arduinos and upload one code onto one of them, using an external power supply to power that motor.  This way there is no code interference.
  2.  The DC motor does not provide enough torque to lift the tiny fishing weight we are using for the crane.  
    1. The Solution:  We ordered a stepper motor, so we will pick that up from the lab and see if it provides the necessary torque required to lift the weight. 
 The Code for The DC Motor
void setup() {
 

  pinMode(12, OUTPUT);
  pinMode(9, OUTPUT);
 
}

void loop(){
 

  digitalWrite(12, HIGH);
  digitalWrite(9, LOW);  
  analogWrite(3, 100);  
 
  delay(1000);
 
  digitalWrite(9, HIGH);

  delay(1000);
 

  digitalWrite(12, LOW);
  digitalWrite(9, LOW);  
  analogWrite(3, 100);  
 
  delay(1000);
 
  digitalWrite(9, HIGH);
 
  delay(1000);
 
}
 
The Code for the Servo Motor

#include <Servo.h>

Servo myservo; 

int pos = 0;

void setup()
{
  myservo.attach(9); 
}


void loop()
{
  for(pos = 0; pos < 90; pos += 1) 
  {                            
    myservo.write(pos);            
    delay(15);                     
  }
  for(pos = 90; pos>=1; pos-=0)    
  {                              
    myservo.write(pos);             
    delay(1000);
  for(pos = 90; pos>=1; pos-=1)   
  {                              
    myservo.write(pos);           
    delay(15);                    
  }
  for(pos = 0; pos<90; pos-=0)  
  {                              
    myservo.write(pos);             
    delay(1000);                      
  }
  }
}
 


The Next Meet-up
We will meet on Thursday at 1:00PM to attempt to use the Stepper Motor as well as put the finishing touches on our crane.  If the stepper does not provide the necessary torque, we official change our name to TEAM MILEY CYRUS WRECKING BALL 


Thursday, December 4, 2014

Putting the Pieces Together

Today we met to begin assembling our crane.  We made some progress on coding, however it needs to be refined.  The assembly is coming along well, we plan on gluing the cab to the crane down as wells as the DC motor mount.  You can find pictures of our individual 3-D Parts, Laser Cut Board, as well as the boom and cab to our crane.

 Above:  Picture of Our Crane Cab Made From MegaBlocks
 Above:  Picture of Our Boom Made out of a Wooden Dowel and Eye-Hooks
Above:  Picture of our Base Board with Servo Motor and Boom Mount Attached
Above:  Video of Our DC and Servo Motors Running with Current Code

Future Work:  Revise the code to allow the weight to be lifted, moved, and then dropped.  Possibly make button commands for each movement.

Wednesday, December 3, 2014

Link to our parts

for whoever wants them for whatever reason.


https://grabcad.com/library/team-insane-crane-1

The parts have arrived!

We received our 3D parts and board from the 3D printer and the laser cutter. They look great too, hopefully everything will go smoothly.

The camera quality is pretty bad, but here they are!




Progress Is Made!!

We met on Monday, 12/1 and discussed the state of our project.  At that point, we had submitted our part for laser cutting as well as our parts to be 3-D printing.

Jon had received an email prior to Thanksgiving Break telling him that the lasercut board was ready for pickup.

Lucas informed the group that the 3-D printed parts were also available for pickup.

At this point, with all parts ready, the group began planning a time to meet up to assemble the crane and also to discuss coding.  Lucas agreed to pick up the parts that were ready and the group agreed to meet on Thursday, 12/4 to begin assembly. 

In the meantime the group agreed to research code for the motors used in the crane operation.  Progress is great at this point, as once the crane is assembled and code is written we are finished!  We all agree we are at a good point in this project in terms of progress!

Pictures of the completed parts as well as the assembled crane to follow that meeting!