Home
Keyestudio
Robotics
4DOF
Page 199 (Project 4: Bluetooth Controlled Robot Arm)
Keyestudio 4DOF - Project 4: Bluetooth Controlled Robot Arm
276 pages
Manual
Save Page as PDF
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
196
{
pos2=0;
}
}
if(y1<5
0)
//
if
push
the
ri
ght
joy
stick
downwa
rd
{
pos2=po
s2+1;
myservo
2.write(pos2
);
//
the
rob
ot
arm
will
go
d
own
delay(5
);
if(pos2
>180)
//
limit
the
decli
ning
angle
{
pos2=18
0;
}
}
}
//*****
************
************
************
***********
*********/
//
lo
wer
arm
void
da
bi()
{
if(y2>1
000)
//
if
push
t
he
left
jo
ystick
upward
{
pos3=po
s3-1;
myservo
3.write(pos3
);
//
the
low
er
arm
will
st
retch
out
delay(5
);
if(pos3
<35)
//
limit
t
he
stretch
ed
angle
198
200
Table of Contents
Main Page
Table of Contents
2
Content Guide
2
Kit Overview
4
Kit Features
4
Part List
6
Assembly Guide
14
Step1: Begin with the Baseplate Assembly
14
Step2: Assemble Arm Middle Parts
31
Complete the Whole Arm Base Parts
55
Step3: Assemble the Claw Servo Plate
68
Step4: Final Assembly
82
Step5: Assemble the Joystick Control Plate
90
Robot Arm Projects
96
UNO Control Board
96
Project 1: Getting Started with ARDUINO
96
Digital I/O
101
TX and RX LED
101
Installing Arduino IDE
102
Example Use of ARDUINO IDE
121
Select Serial Port
127
Upload the Code to Your Board
129
Joint Rotation and Servo Angle Settings
131
Project 2: Joint Rotation and Pin Control
131
Pin Control
132
How to Adjust the Servo Angel
134
Project 3: Joystick Controlled Robot Arm
134
Automatic Turning
136
Read the Joystick Value
143
Dual-Joystick Controlling
147
Add Memory Function
157
Memorize One Posture
157
Memorize Several Postures
170
Serial.println("Green Fret Pressed")
228
Serial.println("Red Fret Pressed")
228
Serial.println("Yellow Fret Pressed")
241
Serial.println("Blue Fret Pressed")
241
Will be TRUE as Long as Button Is Pressed
242
Serial.println("Start Is Being Held")
242
If (Ps2X.newbuttonstate())
243
If(Ps2X.button(Psb_L3))
244
Serial.println("L3 Pressed")
244
If(Ps2X.button(Psb_R3))
260
Serial.println("R3 Pressed")
260
If(Ps2X.button(Psb_L2))
265
Serial.println("L2 Pressed"); if(Ps2X.button(PSB_R2))
266
Serial.println("R2 Pressed")
266
Related product manuals
Keyestudio 4WD
369 pages
Smart Little Turtle Robot V3
230 pages