Search DLab 1.0

Monday, August 30, 2010

Experiment 01

I break down my experiment into 2 parts, which is a lot easier to understand.

Experiment 01: Spinning servo motor (without sensor)


Problems:
01: I’ve been figuring out all day what was wrong with my experiment. The problem is that I should have bought an AC adapter that has voltages less than 9 volts but instead I bought a battery that is 9 volts. As a result, the motor does not run properly only for a few seconds. I think its because the servo motor runs at a low voltages around 5 volts.

02: The servo motor cost is very high ---> 690 bath (if I want 3 blinds to be independent from each other, it would be 690 X 3, and at the moment Ban-More run out of stocks. They only have big motors with too high voltages which is not suitable for small experiments plus it costs like 2,800 bath. I have to order the small servo motor personally and it should arrived within this week.)

03: Arduino board ---> 1200 bath (I broke one already because I think I plugged in a power supply - battery - with too high voltages.)

Code:

Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for(pos = 0; pos <>
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 90; pos>=1; pos-=1) // goes from 90 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}

Aj. Moe,
My friend, the one who has an engineer background would like to come, sit and chat to see what is going on and how things work in our studio on this tuesday. Is it alright? since this tuesday is our pin up day. Do you think we will have time? I also have not see him yet in the weekend because he was away.

Ps. the 2nd experiment is coming.........












1 comment:

  1. Mint,
    I'm away this Tuesday, he can come in on Friday Sept 3. experiment looks interesting! please keep posting

    ReplyDelete