Cov txheej txheem:

Robotic Arm Nrog Lub Tshuab Nqus Tsev Nqus Plua Plav: 4 Kauj Ruam
Robotic Arm Nrog Lub Tshuab Nqus Tsev Nqus Plua Plav: 4 Kauj Ruam

Video: Robotic Arm Nrog Lub Tshuab Nqus Tsev Nqus Plua Plav: 4 Kauj Ruam

Video: Robotic Arm Nrog Lub Tshuab Nqus Tsev Nqus Plua Plav: 4 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Neeg Hlau Caj Npab Nrog Lub Tshuab Nqus Tsev Suction Pump
Neeg Hlau Caj Npab Nrog Lub Tshuab Nqus Tsev Suction Pump

Robotic caj npab nrog lub tshuab nqus tsev nqus tswj los ntawm Arduino. Cov neeg hlau caj npab muaj cov qauv siv hlau thiab nws tau sib sau ua ke. Muaj 4 servo motors ntawm caj npab neeg hlau. Muaj 3 lub zog loj thiab ua haujlwm zoo servo motors. Hauv txoj haujlwm no, yuav ua li cas txav cov neeg hlau caj npab nrog 4 lub zog siv lub Arduino tau qhia. ON / OFF hloov rau lub tshuab nqus cua thiab lub laub khawm rau lub solenoid valve tau siv. Yog li, lub cav thiab lub valve tuaj yeem cuam tshuam nrog tus kheej, uas txuag koj lub zog thiab tam sim no.

Kauj Ruam 1: Cov Neeg Hlau Caj Npab Tshwj Xeeb

Image
Image

Robot Arm Kit -https://bit.ly/2UVhUb3

Pob:

1* Robot Arm Kit (Sib Sau Ua Ke)

2* KS-3620 180 ° Servo

1* KS-3620 270 ° Servo

1* 90d 9g Kev pabcuam

1* Cua (Nqus Tsev) Twj Tso Kua Mis

1* Solenoid Valve

1* Silicone Tubing Hose

KS3620 Hlau Digital Servo: Voltage: 4.8-6.6V

Ceev: 0.16sec/60 ° (6.6V)

Torque: 15kg/cm (4.8V) 20kg/cm (6.6V)

Tsis muaj thauj khoom tam sim no: 80-100mA

Zaus: 500us-2500hz

Cua (Lub Tshuab Nqus Tsev) Twj Tso Tawm: Voltage: DC 5V

Tsis muaj thauj khoom tam sim no: 0.35A

Haum Voltage: DC 4.8V-7.2V

Siab Ntau: 400-650mmhg

Lub tshuab nqus tsev siab tshaj:> -350mmhg

Qhov hnyav: 60 grams

Solenoid Valve: Rated Voltage: DC 6V

Tam sim no: 220mA

Haum Voltage: DC5V-6V

Siab ntau: 0-350mmhg

Qhov hnyav: 16 grams

Kauj Ruam 2: Yuav Tsum Kho Vajtse

Kev sib txuas
Kev sib txuas

1* Arduino UNO R3 -

1* Sensor Shield -

4* Potentiometer -

4* Potentiometer Knob -

1* ON/OFF Hloov -

1* Momentary Push Button -

1* 6V> 2A Cov Khoom Siv Hluav Taws Xob -

1* 9V Adapter -

1* Lub thawv tsis muaj dej -

1* Mini Breadboard -

1* Silicone Tubing Hose -

1* Laum Lub Hwj Huam -

3 hauv 1 Jumper Wire -

Kauj Ruam 3: Kev Sib Txuas

Cov potentiometers:

Lauj kaub 1 - Analog 0

Lauj kaub 2 - Piv 1

Lauj kaub 3 - Qhov sib piv 2

Lauj kaub 4 - Analog 3

Servo Tsav:

Servo 1 - Digital 3 PWM

Servo 2 - Digital 5 PWM

Servo 3 - Digital 6 PWM

Servo 4 - Digital 9 PWM

Kauj ruam 4: Source Code

Qhov Code
Qhov Code

/*

Kev tswj hwm txoj haujlwm servo siv lub zog loj (qhov sib txawv resistor) https://bit.ly/MertArduino */#include // tsim cov khoom siv servo los tswj servo servo myservo1; Servo myservo2; Servo myservo3; Servo myservo4; // analog pin siv los txuas rau lub potentiometer int potpin1 = 0; koj potpin2 = 1; koj potpin3 = 2; int potpin4 = 3; // sib txawv los nyeem tus nqi los ntawm analog pin int val1; koj val2; koj val3; koj val4;. void teeb () {// txuas cov servos ntawm digital (PWM) pins rau cov khoom siv servo myservo1.attach (3); myservo2.attach (5); myservo3.attach (6); myservo4.attach (9); } tsis muaj dab tsi voj () {val1 = analogRead (potpin1); // nyeem tus nqi ntawm lub hwj chim (tus nqi ntawm 0 thiab 1023) val1 = daim ntawv qhia (val1, 0, 1023, 0, 180); // ntsuas nws kom siv nws nrog servo (tus nqi nruab nrab ntawm 0 thiab 180) myservo1.write (val1); // teeb tsa txoj haujlwm servo raws li qhov ntsuas tus nqi ncua (15); // tos rau servo kom tau txais val2 = analogRead (potpin2); val2 = daim ntawv qhia (val2, 0, 1023, 0, 180); myservo2.write (val2); ncua (15); val3 = analogRead (potpin3); val3 = daim ntawv qhia (val3, 0, 1023, 0, 180); myservo3.write (val3); ncua (15); val4 = analogRead (potpin4); val4 = daim ntawv qhia (val4, 0, 1023, 0, 180); myservo4.write (val4); ncua (15); }

Pom zoo: