Keyestudio ESP32 Manual page 161

Smart robot arm kit
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

}
}
else if
(angleVal
while
(angleVal
arm.write(armAngle--);
if
(armAngle
<=
delay(10);
}
}
}
// forearm control
void forearmControl(int
int
angleVal
=
map(angle, 0, 180, 30, 150);
if
(angleVal
>
forearmAngle) {
while
(angleVal
forearm.write(forearmAngle++);
if
(forearmAngle
delay(10);
}
else if
}
(angleVal
while
(angleVal
forearm.write(forearmAngle--);
if
(forearmAngle
delay(10);
}
}
}
// claw control
void gripperControl(int
int
angleVal
=
map(angle, 0, 180, 85, 150);
if
(angleVal
>
gripperAngle) {
while
(angleVal
gripper.write(gripperAngle++);
if
(gripperAngle
delay(10);
}
}
else if
(angleVal
while
(angleVal
gripper.write(gripperAngle--);
if
(gripperAngle
delay(10);
}
}
}
9.4. 9.4 WiFi Control Robot Arm
<
armAngle) {
<
armAngle) {
80) armAngle
=
80;
angle) {
>
forearmAngle) {
>=
150) forearmAngle
<
forearmAngle) {
<
forearmAngle) {
<=
30) forearmAngle
angle) {
>
gripperAngle) {
>=
150) gripperAngle
<
gripperAngle) {
<
gripperAngle) {
<=
85) gripperAngle
=
150;
=
30;
=
150;
=
85;
keyestudio WiKi
(continued from previous page)
157

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Keyestudio ESP32

Table of Contents