Robotics Project Update #9: Decorating and getting it to move

Before adding fur coat

Testing the motors and labelling them is a good idea to know which motors are activated.


When I am making the weave for the fur of the character, I decided to use this method shown in the gif to make it. It was simple but really tedious. Below are the green fur I am using.


Adding fur

 


The fur coat (after adding)

The fur coat is very light for a layer but the weight adds up and after I finished the last layer together with the hands, the whole model is slanting towards the back.


Movement of the drunken 

After trying some combinations of actions, I decided to go with a drunken look for this character. It is very interesting to create this movement as it should give out a certain perception of drunkenness which is often jerky and random which also works in this project as the interaction between the motors and the fur coat up is not smooth as the fur coat is rather heavy. Sometimes, the Arduino does not execute the code when I connect it to a power bank. After doing most of the coding, I realise that I am starting to hit the limitations of Arduino.


The Code is as follows:

#include <Servo.h>

Servo one;
Servo two;
Servo three;
int pos = 0;

// constants won’t change. They’re used here to set pin numbers:
const int buttonPin = 2; // the number of the pushbutton pin

int buttonState = 0;

void setup() {
one.attach(3);
two.attach(5);
three.attach(10);

pinMode(buttonPin, INPUT);
}

void swaying(){

for (pos = 0; pos <= 180; pos = pos + 1) { //before press
one.write(110);
two.write(0);
three.write(0);
delay(3);
}

for (pos = 0; pos <= 180; pos += 1) { //before press
one.write(0);
two.write(100);
three.write(0);
delay(3);
}

for (pos = 0; pos <= 180; pos += 1) { //before press
one.write(0);
two.write(0);
three.write(110);
delay(3.3);
}

}

void loop() {

buttonState = digitalRead(buttonPin);

if (buttonState == HIGH) {
swaying();
}

else {

for (pos = 0; pos <= 180; pos += 1) { //before press
one.write(40);
two.write(50);
three.write(0);
}
}
}


The code was not much of an issue as it is quite straight forward. Since the prototype is only using three motors, I think a power bank should be sufficient to power it. For my final prototype, I decided to make a character rather than a already known symbol of fun (the inflatable man). I decided to make this character because of the limitations when the wool is attached to the spring structure. I this character falls under the category of animatronics as it is a fictional character. For my next update, I will be adding the name and the final video for my prototype.

Leave a Reply

Skip to toolbar