Four Micro Servo Motors

  • Here is the attendance
  1. Boss           No.3
  2. Tonnam    No.16
  3. Stang         No.17
  4. Vivy           No.18
  5. Tonkhao   No.19
  • Task

Moving four micro servo motor.

  • Components
  • Code
Servo rightfoot:
Servo rightthigh;
Servo leftfoot;
Servo leftthigh;
int pos;
void setup ()
rightfoot.attach (9). rightthigh.attach (5); leftfoot.attach (3); leftthigh.attach (11);
leftfoot.write (10); leftthigh.write (90);
rightthigh.write (100);
rightfoot.write (180);
void loop ()
delay (700);
leftfoot.write (20);
delay (300);
leftfoot.write (30);
delay (300);
leftfoot.write (40);
delay (300);
leftfoot.write (50);
delay (300);
leftfoot.write (60);
delay (700);
rightfoot.write (160);
delay (700);
rightfoot.write (150);
delay (700);
rightfoot.write (140);
delay (700);
rightfoot.write (130);
delay (1000);
leftfoot.write (35);
delay (500);
leftfoot.write (10);
rightfoot.write (140);
delay (500);
rightfoot.write (150);
delay (500);
rightfoot.write (160):
delay (500);
rightfoot.write (170);
delay (500);
rightfoot.write (180);
delay (700);
rightthigh.write (100);
delay (700);
rightfoot.write (150);
delay (300);
rightfoot.write (140);
delay (300);
right foot.write (130);
delay (300);
rightfoot.write (120);
delay (700);
leftfoot.write (20);
delay (300);
leftfoot.write (30);
delay (300);
leftfoot.write (40);
delay (300);
leftfoot.write (50);
delay (1200);
leftthigh.write (80);
delay (700);
leftthigh.write (90);
delay (700);
leftthigh.write (100);
delay (700);
right foot.write (150);
delay (700);
rightfoot.write (180);
delay (700);
leftfoot.write (40);
delay (300);
leftfoot.write (30);
delay (300);
delay (700);
rightthigh.write (90); leftfoot.write (20);
delay (700);
delay (300);
leftfoot.write (10);
rightthigh.write (80);
delay (700);
leftthigh.write (65);
delay (700);
rightthigh.write (70);
delay (700):
delay (300);
leftfoot.write (10);
delay (300);
leftthigh.write (90);
delay (300);
rightthigh.write (100);
delay (300);
right foot.write (180);
  • Process

First : is take the yellow wire (signal wire) to connect to all 4 servos and connect to the digital pin ( where right-foot connects to 9 right right-thigh connects to 5 left-foot connects to 3 left-thigh connects to 11 )

Second : is to bring the red power wire (power wire) to connect to all 4 servo and connect to the breadboard, all in the same row. Then take the jumper wire and connect the 5v to the breadboard. It must be in line with the red wire that connected to the servo.

last step : do the same as step 4, but change to the brown wire (ground wire). Bring the wires to connect to the server and breadboard together by being in the same row. After that, bring the brown wire to connect the breadboard to the ground on the Arduino board.

  • Output

Thank you

By Angle popop

Centering and Moving Two Micro Servo Motors

  • Here is the attendance
  1. Boss           No.3
  2. Tonnam    No.16
  3. Stang         No.17
  4. Vivy           No.18
  5. Tonkhao   No.19
  • Task

Centering two micro servo motor.

  • Components
  1. Arduino UNO Board
  2. USB cable
  3. Micro Servo Motor (2)
  4. Jumper Wires
  5. Breadboard
  • Sketch Explained
#include <Servo.h>
Servo frontServo;
Servo rearServo;
int centerPos = 90;
int frontRightUp = 72;
int frontLeftUp = 108;
int backRightForward = 75;
int backLeftForward = 105;
void moveForward()
{
frontServo.write(frontRightUp);
rearServo.write(backLeftForward);
delay(125);
frontServo.write(centerPos);
rearServo.write(centerPos);
delay(65);
frontServo.write(frontLeftUp);
rearServo.write(backRightForward);
delay(125);
frontServo.write(centerPos);
rearServo.write(centerPos);
delay(65);
}
void setup()
{
frontServo.attach(2);
rearServo.attach(3);
}
void loop()
{
moveForward();
delay(150); 
}
  • Process

1) Put the two brown wires of the Micro Servo Motor into GND.

2) Take the white wire of the second Micro Servo Motor to the Breadboard.

3) Take the yellow wire of the first MicroServoMotor to the DIGITAL side in number 2

4) Take the second Micro Servo Motor’s gray wire to the DIGITAL side in number 3.

5) Connect the green wire to the Breadboard and 5V.

6) Insert the USB Cable into the computer.

7) Finished!!!!

See you again in the next work.

– Angle poppop –

Centering and moving one micro servo motor

  • Here are the attendance
  1. Boss           No.4
  2. Tonnam    No.16
  3. Stang         No.17
  4. Vivy           No.18
  5. Tonkhao    No.19
  • Task

Moving one micro servo motor.

  • Components
  1. Arduino UNO board
  2. USB cable
  3. Micro servo motor (1)
  4. Jumper wires
  • Process
  1. Plug the red wire in to the MICROSERVO then connect it to 5V on the Arduino UNO.

2. Plug the brown wire into the MicroServo then connect it to GND on the Arduino UNO.

3. Plug the orange wire into the MicroServo then connect it to D2 on the Arduino UNO.

4. Put the propeller onto the MicroServo.

5. Plug the usb cable into the Arduino UNO.

6.  Plug the USB cable into the computer.

7. Input the code that you gave us into the Arduino.cc app/web then click upload.

Servo myServo;
int delayTime = 1000;
void setup()
{
myServo.attach(2);
}
void loop()
{
myServo.write(90);
delay(delayTime);
myServo.write(180);
delay(delayTime);
myServo.write(90);
delay(delayTime);
myServo.write(0);
delay(delayTime);

Thank you

– Angle popop –

Angle popop

Let’s get to know us

Boss no.3 is Lead engineer , only one man in the group many people say that he is the most handsome man in grade9

Tonnam no.16 , She is digital journalist of the group , She will support all roles in the group when there is a problem.


Stang no. 17 is Engineer , She is the hottest mother of the group. And she will be the one to clear up the problems when our group has a fight.

Vivy no.18 , She is Media producer of the group. She’s the cute girl and laughs easily with everything.

Tonkhao no.19 , is programmer of the group. She is someone who likes to make friends laugh all day long.