Thomas May - The wheel leg.

Submitted by thomas.may on Tue, 03/19/2013 - 22:48

Using the servo we were encouraged to make a device that moved forward. I felt inspired by how a knee functions so I made one with the erector set parts offered last lab.

To make the travel more effective I mounted the servo on a pair of wheels, the front was a leg that functions as a support while the "leg" has a rubber band foot to create better grip as the servo actuates the leg assembly.

http://www.youtube.com/watch?v=ire9xVfF29w

Parts:

Arduino

Cables

servo

Wheels

Erector set parts

screws

rubber band

wood

POT

Code:

 

/*
 * one pot fades one motor
 * modified version of AnalogInput
 * by DojoDave <http://www.0j0.org>
 * http://www.arduino.cc/en/Tutorial/AnalogInput 
 * Modified again by dave
 */

int potPin = 0;   // select the input pin for the potentiometer
int motorPin = 9; // select the pin for the Motor
int val = 0;      // variable to store the value coming from the sensor
void setup() {
  Serial.begin(9600);
}
void loop() {
  val = analogRead(potPin);    // read the value from the sensor, between 0 - 1024
  Serial.println(val);
  analogWrite(motorPin, val/4); // analogWrite can be between 0-255
}
 
Photo on 3-19-13 at 11.37 PM.jpg
0
Your rating: None
Drupal theme by Kiwi Themes.