I hope by now the Star Wars titles are blatantly apparent.
One thing with my project that still plagues me is his legs. Yes, they worked, and looked good doing it, but eventually they always came undone. To an extent, it's to be expected. Something that moves that much, especially when it hits the other direction at twice the speed, it's going to eventually loosen up. I've gotten it to work a little better by applying some tape to the opposite ends of the joint tacks.
Since I've made the addition, the legs, nor the feet have fallen off. Not that pretty though. eh, it works.
Wednesday, March 27, 2013
Bicyclist 6: Return of the Sketch
Well, I did it. After watching repeated attempts of this character lose his legs, his wheel, and in turn, my sanity, I got an idea as to how to solve all of my headaches in one quick stroke. Make this man one legged. Or one and a half I guess is more appropriate. I chopped off the lower half of his back leg so the wheel could be directly attached to the servo, and that half leg would just move on the same axis as the outer leg still attached to the wheel. Yep.
It seemed to have worked just fine; I dare say even better than if I had gotten him rigged with two legs. After I solved that issue, everything else fell into place pretty easily (The head servo could utilize the exact same code as the wheel, and the limited rotation of it matched perfectly the rotation I needed for the two heads). Here the bad boy is in action!
As it stands right now, I'm really happy with it. I had to make some changes and consolidations but it turned out great. Simple, charming, and effective. It also matches almost exactly what I had detailed in my original sketches. The only real change in my drawings of the character are the colors. I originally intended on coloring the character and his bike, but halfway through his suit I realized a black and white color scheme fit the character much better.
If I had more time, or chose to take it further, I have a few ideas to improve the piece. For starters, I would rig that back little wheel to move much like the front (either by moving with, or just hooked up to a third servo. Another thought I had was to create a moving "ground" that would cycle at the same rate as the wheel to appear as though he is actually moving. We'll see if I really want to take it that far.
It seemed to have worked just fine; I dare say even better than if I had gotten him rigged with two legs. After I solved that issue, everything else fell into place pretty easily (The head servo could utilize the exact same code as the wheel, and the limited rotation of it matched perfectly the rotation I needed for the two heads). Here the bad boy is in action!
If I had more time, or chose to take it further, I have a few ideas to improve the piece. For starters, I would rig that back little wheel to move much like the front (either by moving with, or just hooked up to a third servo. Another thought I had was to create a moving "ground" that would cycle at the same rate as the wheel to appear as though he is actually moving. We'll see if I really want to take it that far.
Bicyclist 5: The Physics Strikes Back
Fucking legs. They've come back to haunt me at the LEAST opportune time (full disclosure, I failed to get any real work done on this most of Spring Break. It's kinda last minute).
I've cut, re-cut, taped, poked, stabbed, bent, and ripped up multiple sets of legs and wheels, all of which were just not getting the job done. Once that servo starts spinning his legs quickly move the wheel off of its axis, and everything goes to shit.
I've since redesigned my wheel so this it itself is a tad sturdier, and the material it's made of is not as flimsy. I've also tried to conceptualize designs with less joints so there are less points where it can fail, but the overall character then started to look stiff and unrealistic (I mean, I get that it's heavily stylized, but it still at least represents a human figure). I've also tried connecting one whole leg to the wheel (to replace an axis for the wheel), having the servo only move the legs and have a separate plane for the spinning wheel, and also design a "running track" underneath the wheel to help it spinning in place.
All of the probelms with the legs and wheel have started to make me question the entire piece. There are a lot more calculations of range of motion and physics of the spin I have not taken into account. Could this leg problem really undermine my whole project? A little too late to start a new one...
I've cut, re-cut, taped, poked, stabbed, bent, and ripped up multiple sets of legs and wheels, all of which were just not getting the job done. Once that servo starts spinning his legs quickly move the wheel off of its axis, and everything goes to shit.
I've since redesigned my wheel so this it itself is a tad sturdier, and the material it's made of is not as flimsy. I've also tried to conceptualize designs with less joints so there are less points where it can fail, but the overall character then started to look stiff and unrealistic (I mean, I get that it's heavily stylized, but it still at least represents a human figure). I've also tried connecting one whole leg to the wheel (to replace an axis for the wheel), having the servo only move the legs and have a separate plane for the spinning wheel, and also design a "running track" underneath the wheel to help it spinning in place.
All of the probelms with the legs and wheel have started to make me question the entire piece. There are a lot more calculations of range of motion and physics of the spin I have not taken into account. Could this leg problem really undermine my whole project? A little too late to start a new one...
Bicyclist 4: A Sustained Hope
Well, here the little guy is:
That's the body (secured down with an appropriate space for neck servo as well), the wheel, and his two gangling legs. All that's missing now is the rest of his bike, his heads, and his arm. Until I move on to the rest of these processes, I wold like to hook that servo up, and see him spin. Fingers crossed!
PS. Cyclist wearing a Guy Fawkes mask.
That's the body (secured down with an appropriate space for neck servo as well), the wheel, and his two gangling legs. All that's missing now is the rest of his bike, his heads, and his arm. Until I move on to the rest of these processes, I wold like to hook that servo up, and see him spin. Fingers crossed!
PS. Cyclist wearing a Guy Fawkes mask.
Bicyclist 3: Revenge of the Project
Despite what I think to be a good new leg design, there's still a lot of work to do.
1. Base of the project itself
2. How to secure the body so that it doesn't shake or wobble.
3.Code and rig the 2 heads
4. Design an arm
5. Make the bike itself fit around my character
6. Second wheel(?)
These six things are less important, albeit still important to the overall piece, but I really don't want to underestimate them and run into a wall later. I've clearly got some work to do over Spring Break.
Tuesday, March 12, 2013
Bicyclist 2: The Leg Wars
Ugh, what a pain in the ass. So it appears getting the legs to bend at the right places, wasn't the last of my leg worries. No, I've got to worry about how the legs will revolve around the wheel without clipping into anything holding it to the servo.
BUT, I think I've got a solution. It's not the most elegant and make not prove to work once the servo gets moving, but it does spin both legs. In this design, the back leg attaches to the servo, and then again to the wheel on the opposite side. The other foot connects to the wheel on the other side, and spins with the wheel. Here's a general sketch of the concept:
Monday, March 11, 2013
Bicyclist 1: The Project Menace
Alright, so I know what my cyclist is going to look like (and generally where his legs must bend to cycle). I also decided to revamp what kind of bike he'll be using. Next step: start that code!
...
...
Got it! Here's the code (with the tentative second servo included):
#include <Servo.h>
Servo myservo; // creating myservo object
Servo myservo2;
int buttonPin = 3; // set button pin
int buttonState = 0; // set buttonState
void setup()
{
myservo.attach(0); // attach the 13 pin to servo
myservo.attach(13);
pinMode(buttonPin, INPUT); // set button to input
}
void loop()
{
buttonState = digitalRead(buttonPin); // read and save to the variable "buttonState" the actual state of button
if (buttonState == LOW)
{
myservo.write(80);
myservo2.write(0);
}
else {
myservo.write(179);
myservo2.write(180);
}
}
And a video of the pedal motor in action:
Monday, March 4, 2013
Midterm Ideas
Biker:
User determines which color the sensor 'sees', and the face on top represents a correlating emotion.
LEGO Obstacle course:
As a mix between Mouse Trap and Pachinko, users control mutliple buttons and potentiometers to guide a marbles through a obstacle course to the end. Also, multiple LEDs count down how long you have to finish.
Happy while riding forward, scared when wheels are turned backwards (potentiometer adjusted by users)
Color Sensing = Emotional Response:
User determines which color the sensor 'sees', and the face on top represents a correlating emotion.
LEGO Obstacle course:
As a mix between Mouse Trap and Pachinko, users control mutliple buttons and potentiometers to guide a marbles through a obstacle course to the end. Also, multiple LEDs count down how long you have to finish.
Saturday, March 2, 2013
Servo HW
Nothing like late homework! Here's a video of some servos spinnin' and some lights blinkin'!
int led1=4;
int led2=5;
int led3=6;
Servo servo1;
Servo servo2;
int potpin=A0;
int val= 0;
int count = 0;
void setup()
{
Serial.begin(9600);
servo1.attach(8);
servo2.attach(3);
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
void loop()
{
val=analogRead(potpin);
val=map(val,0,1023,0,179);
Serial.println(val);
count=analogRead(potpin);
servo1.write(val);
servo2.write(val);
analogWrite(led1, count);
if(val>100){
digitalWrite(led2,HIGH);
digitalWrite(led3,LOW);
}
if(val<101){
digitalWrite(led2,LOW);
digitalWrite(led3,HIGH);
}
}
Subscribe to:
Comments (Atom)










