Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
#Robotics #3DPrinting #DIYRobotics #TechInnovation #PrototypeTesting #RoboticHand #FutureTech #GloveControlledRobotics #engineer #nouman #bashir #engineering #technology #arduino #servo #motor #hand #technicalguruji
Coded:
With this code you can create a robotic hand controlled by Arduino with 5 servo motors and a glove.
//C code
//
// must include the servo library here
int Switch_1 0;
int switch1 0 ;
int Switch2 0 ;
int Switch3 0 ;
int servo1 0;
int switch4 0 ;
int switch5 0 ;
Servo_2 ;
Servoservo_3 ;
Servoservo_4 ;
Servoservo_5 ;
Servoservo_6 ;
void setup()
{
pinMode(A0, ENTER);
pinMode(A1,ENTER);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
pinMode(A4, INPUT);
servo_2.attach(2, 500, 2500);
servo_3.attach(3, 500, 2500);
servo_4.attach(4, 500, 2500);
servo_5.attach(5, 500, 2500);
servo_6.attach(6, 500, 2500);
}
empty loop()
{
switch1 digital readout (A0);
Switch2 digital reading (A1);
Switch3 digital reading (A2);
switch4 digital readout (A3);
switch5 digital readout (A4);
if (switch1 1) {
servo_2.write(180);
} other {
servo_2.write(0);
}
if (Switch2 1) {
servo_3.write(180);
} other {
servo_3.write(0);
}
if (Switch3 1) {
servo_4.write(180);
} other {
servo_4.write(0);
}
if (switch4 1) {
servo_5.write(180);
} other {
servo_5.write(0);
}
if (switch5 1) {
servo_6.write(180);
} other {
servo_6.write(0);
}
delay(10); // Delay a little to improve simulation performance
}
Please take the opportunity to connect and share this video with your friends and family if you find it useful.