Sunday, 15 December 2013

Stage (07), Week Commencing (09.12.13)
Week (11)

Description

After a short period off concentrating on my dissertation I have finally managed to pick back up again from where I left off. I have taken a week off from all the other projects and have dedicated this week to this project. I have been working on the Lip mechanisms.

Equipment.

3 x Micro Servos with 7g or torque each
Guitar Wire.
Brass Electrical Block.
Fishing Wire.
2 x wire connectors

To start with I added the bottom lip onto the project, it was more difficult to install compared to the upper lip as I had no framework to put it on as I did with the top lip. So I had to attach the lip to the Servo U bracket of the bottom jaw. I did this by making additional holes into the U bracket at each side then taking the two wire connectors and screwing them into place so the guitar wire could be threaded through them. I did the same with the guitar wire as i did with the upper lip and used 1.mm heat shrink on each end and slotted it through the connectors. However there was to much movement in the lip so I had to restrict the movement of the guitar wire by putting Milliput along the side of the wire, attaching it to the side of the bottom jaw mechanism. I then added a brass electrical block to the bottom of the jaw and used milliput to keep it in place this will act as a run for the fishing wire.

I attached the three motors at the same time two to each side of the upper jaw servo tilt bracket and one under the bottom jaw and secured them in place with milliput.
To ensure that the system would work efficiently I tested it using the code I had used In last years build but adapting it to use Analog ports instead of the digital ones (This has also been adapted from the sweeping servo code from Arduino.cc).

#include <Servo.h>
int c=0;

Servo myservo;  // create servo object to control a servo
 // a maximum of eight servo objects can be created
Servo myservo2;
Servo myservo3;

int targ=20;
int targ1=20;
int pos = 180;    // variable to store the servo position
int lippos=0;
int lipup=10;
int lipupinc=10;
int targinc=5;
int mt=10;
int mb=200;

void setup()
{
Serial.begin(9600);
pinMode(A1,OUTPUT);
pinMode(A2,OUTPUT);
pinMode(A3,OUTPUT);
myservo.attach(A1);
myservo2.attach(A2);
myservo3.attach(A3);
}

void loop()
{
while(Serial.available()>0){
targ=Serial.read(); //this reads data in from processing (mousePos)
}
long r=random(20);
if(r>18){
lippos=random(100);
}
long r2=random(20);
if(r2>18){
lipup=random(120);
}
long r3=random(20);
if(r3>16) lipupinc=lipupinc*-1;
lippos++;
lipup=lipup+lipupinc;
if(lipup>120) lipupinc=-10;
if(lipup<1) lipupinc=10;
long r4=random(20);
if(r4>15) targ=random(200);
targ=targ+targinc;
if(targ>mt) targinc=-5+random(40);
if(targ<mb) targinc=+5+random(40);
if(r4>15) targ1=random(200);
targ1=targ1+targinc;
if(targ1>mt) targinc=-5+random(40);
if(targ1<mb) targinc=+5+random(40);
if(lippos>100) lippos=0;
myservo.write(eyeup);
myservo2.write(eyepos);
myservo3.write(targ);
delay(100);
}


Video 1.1

Feelings

I am happy to be getting back on with the project as taking a few weeks off can effect the future progress of a project in this case it hasn't so I'm happy to be getting back on with it. I feel I'm getting that motivation back that i had at the start of the project and I am just spending every available bit of time I have on either thinking about the mechanism or looking at the script or researching the philosophy of A.I.

Evaluation

This session was productive I felt that a lot has been achieved this week, I am pleased with the outcome and how the lips move via the servos. I did not have to go over or re-do any of the processes of this session and the code I adapted worked fine using the Analog ports on the Arduino shield. One of the things I am concerned about is how a set of prosthetic lips may look on the robot. I had an idea of using the wrist cuffs of the end of a pair of black latex gloves for the lips but I do not think this will look right on the project at this stage. The only thing that I really wanted the lips for was so I could think about maybe matching up some of the vowel sounds in words to the phonetic animation speech map so the robot looked like its lips where nothing naturally with the words coming out of its mouth. At this stage I am going to put this on the back burner and maybe return to it later on if I have time.

Analysis

As the project currently stands I am pleased with it and It makes sense in relation to the brief. I have gone back over the presentation to get a feel once again for the direction of the project and re affirm its purpose. I am also going to watch some films with robots in to give me some inspiration on how a robot sits within an environment. On of the possibilities I have ben considering for further on in the build more towards the date of the final show is building a set for the robot to be placed in rather than a table. However this does have its problems like transporting a set, affording that materials and time issues, I will come back to this idea later on in the project when I may have a little more time to consider it.

Conclusion

In conclusion, the project is back under way again I am happy with where it is at and I am looking forward to getting further on with the build. The lips do look really good when they are functioning, I posted a video up on Facebook of it to see what people reactions to it where and it was really positive, and it did freak a few people out which is always a bonus so thats another positive outcome of this session.

Action Plan

If I had to re-do this session again I do not think I could have done anything differently during this weeks session. Next week I want to start thinking about building the neck mechanism out of the aluminium brackets I have left over from the robot claw kit. I think this will be a really easy part of the project at the parts where made to do the movements I want to achieve for the neck motion. I have seen the servo brackets used on camera set-ups to capture motion so I am going to have a look at this also and see if I can add something similar into future projects.



1.1






No comments:

Post a Comment