Cov txheej txheem:
- Kauj Ruam 1: Txuas Lub Sensor Nrog Bast Pro Mini M0
- Kauj Ruam 2: Coding Arduino IDE rau Bast Pro Mini M0
- Kauj Ruam 3: Daim Duab 3D
Video: Tswj Cov Neeg Hlau Caj Npab Nrog TLV493D, Joystick Thiab, Arduino: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Lwm txoj kev tswj hwm rau koj tus neeg hlau nrog TLV493D lub ntsuas pa, lub ntsuas hluav taws xob sib nqus nrog 3 qib kev ywj pheej (x, y, z) nrog cov no koj tuaj yeem tswj hwm koj cov phiaj xwm tshiab nrog I2C kev sib txuas lus ntawm koj lub microcontrollers thiab lub rooj tsav xwm hluav taws xob uas Bast Pro Mini M0 nrog SAMD21 microcontroller ntawm Arduino IDE.
Lub hom phiaj yog kom muaj lwm txoj hauv kev los tswj koj cov phiaj xwm, hauv qhov no, cov neeg hlau caj npab nrog 3 qib kev ywj pheej. Kuv tau siv MeArm Robot Arm qhov no yog qhov haujlwm qhib thiab koj tuaj yeem ua kom yooj yim thiab koj tuaj yeem pom nws ntawm no. Muaj peev xwm ua rau koj tus kheej tswj caj npab lossis lwm daim ntawv thov nrog qhov kev paub no uas kuv zoo siab qhia rau koj.
Txhua yam khoom siv hluav taws xob muaj kev sib txuas kom tau txais ntawm lub khw, cov ntaub ntawv rau 3d tshuab luam ntawv, thiab tus lej rau Arduino IDE.
TLV493D tuaj yeem yog Joystick Lub 3D sib nqus sensor TLV493D-A1B6 muab qhov tseeb peb qhov kev nkag siab nrog qhov siv hluav taws xob tsawg heev hauv pob me 6-tus lej. Nrog nws qhov kev tshawb nrhiav thaj chaw sib nqus hauv x, y, thiab z-kev taw qhia lub ntsuas ntsuas tau ntseeg tau ntsuas peb-seem, tawm, thiab txav mus los.
Cov ntawv thov suav nrog cov joysticks, tswj cov ntsiab lus (cov khoom dawb, ntau qhov sib txuas), lossis ntsuas hluav taws xob (tiv thaiv kev cuam tshuam), thiab lwm daim ntawv thov uas xav tau kev ntsuas lub kaum ntse ntse lossis kev siv hluav taws xob tsawg. Qhov ntsuas kub ua ke tuaj yeem siv tau ntxiv rau kev txheeb xyuas qhov tseeb. Cov yam ntxwv tseem ceeb yog 3D sib nqus paub nrog lub zog siv tsawg heev thaum ua haujlwm.
Lub ntsuas ntsuas muaj qhov tso tawm digital ntawm 2-xaim raws tus qauv I2C interface txog li 1 MBit/sec thiab 12-ntsis cov ntaub ntawv daws teeb meem rau txhua qhov, ntsuas kev taw qhia (Bx, Los thiab Bz tawm qhov ntsuas ntsuas mus txog +-130mT). TLV493D-A1B6 3DMagnetic yog cov khoom tawg ib leeg.
Koj tuaj yeem txuas nws yooj yim rau ib lub microcontroller ntawm koj xaiv uas yog Arduino IDE sib xws thiab muaj 3.3V qib kev xav. Hauv txoj haujlwm no, peb siv Electronic Cats breakout thiab pawg thawj coj txhim kho uas kuv yuav piav qhia tom qab.
electroniccats.com/store/tlv493d-croquette…
Qhov zoo ntawm kev siv TLV493D sensor yog tias tsuas yog ob kab nrog I2C tau siv los txais cov ntaub ntawv, yog li nws yog qhov kev xaiv zoo heev thaum peb muaj ob peb tus pin uas muaj nyob hauv daim npav, tseem ua tsaug rau cov txiaj ntsig ntawm I2C peb tuaj yeem txuas tau ntau dua sensors. Koj tuaj yeem pom cov chaw cia khoom rau txoj haujlwm no ntawm no. Txog qhov haujlwm no, peb yuav siv tus joystick uas koj tuaj yeem luam tawm ntawm lub tshuab luam ntawv 3D lossis muab nws luam tawm ntawm koj lub khw luam ntawv 3D ze tshaj plaws.
Cov ntaub ntawv. STL txuas ntxiv qhov kawg ntawm qhov project. Nws sib dhos yooj yim heev, koj tuaj yeem pom nws hauv video
Tsim koj tus kheej neeg hlau Hauv qhov no, kuv tsim tus neeg hlau Mearm v1 uas koj tuaj yeem pom qhov haujlwm no ntawm nplooj ntawv ntawm tus sau ntawm no
Nov yog tus neeg hlau yooj yim los ua thiab tswj hwm vim nws muaj servomotors ntawm 5 volts. Koj tuaj yeem tsim lossis siv ib tus neeg hlau uas koj xaiv, txoj haujlwm no yuav tsom mus rau kev tswj nrog TLV493D sensor.
Khoom siv:
- x1 Bast Pro Mini M0 Yuav hauv
- x1 Croquette TLV493D Yuav hauv
- x1 Kit MeArm v1
- x20 Dupont Cables
- x 1 Protoboard
- x2 Pushbutton
- x1 Hlau nplaum 5mm txoj kab uas hla x 1mm tuab
Kauj Ruam 1: Txuas Lub Sensor Nrog Bast Pro Mini M0
Txhawm rau tswj cov neeg hlau caj npab, Kev Siv Hluav Taws Xob Hluav Taws Xob tau siv, Bast Pro Mini M0 nrog SAMD21E ARM Cortex-M0 microcontroller.
Cov nti no ua haujlwm ntawm 48MHz, nrog 256KB lub cim xeeb nco, 32KB SRAM thiab ua haujlwm ntawm qhov hluav taws xob ntawm 1.6v txog 3.6v. Ua tsaug rau nws qhov tshwj xeeb peb tuaj yeem siv nws rau kev noj qis nrog kev ua tau zoo thiab tseem ua haujlwm nrog CircuitPython lossis qee yam lus uas tso cai rau microcontrollers.
electroniccats.com/store/bast-pro-mini-m0/
Yog tias koj xav paub ntau ntxiv txog daim npav no, Kuv yuav tso koj qhov txuas ntawm nws lub chaw cia khoom.
github.com/ElectronicCats/Bast-Pro-Mini-M0…
Txhawm rau tswj kev txav ntawm cov neeg siv khoom, lub tshuab nqus hlau TLV493D tau siv uas yuav xa lub teeb liab mus rau qhov chaw servomotor mus rau qib sib xws.
Nrog tib lub ntsuas, peb tuaj yeem txav ob tus neeg pabcuam, hauv qhov piv txwv no, peb tsuas yog siv lub ntsuas ib leeg thiab lub laub khawm los tswj tus tuav.
Lwm qhov lus pom uas koj tuaj yeem ua tau yog ntxiv lwm lub TLV493D sensor thiab txav lub servo lub cev thib peb thiab tus tuav. Yog tias koj ua, tawm koj cov kev paub hauv cov lus thiab kuv caw koj los qhia qhov project.
Daim duab qhia pom kev siv riam phom nyob ntawm ib daim ntawv tiv thaiv.
- Thawj servomotor yog rau tus tuav thiab txuas rau tus pin 2
- Qhov thib ob servomotor yog rau lub hauv paus neeg hlau thiab txuas rau tus pin 3
- Qhov thib peb servomotor yog rau lub xub pwg neeg hlau thiab txuas rau tus pin 4
- Qhov thib plaub servomotor yog rau tus neeg hlau lub luj tshib thiab txuas rau tus pin 5
- Thawj lub laub-khawm yog kom nres ib qho kev txav ntawm tus neeg hlau thiab txuas rau tus pin 8 hauv rub-down nrog kev tiv thaiv ntawm 2.2Kohms.
- Qhov thawb-khawm thib ob yog rau kev qhib thiab kaw kev txav ntawm tus tuav thiab txuas nrog tus pin 9 hauv rub-down nrog kev tiv thaiv ntawm 2.2Kohms.
Hauv cov duab hluav taws xob, lub TLV493D sensor tsis tshwm vim nws tsis tau ntxiv rau fritzing tab sis txuas 4-tus pin txuas ntxiv los simulate nws VCC, GND, SCL, SDA txuas. Hauv daim duab, lawv muab tso rau hauv tib qho kev txiav txim.
- Thawj tus pin txuas rau 3.3 volts ntawm lub rooj tsavxwm
- Tus lej thib ob txuas rau GND
- SCL tus pin thib peb txuas rau tus pin A5 ntawm lub rooj tsavxwm
- Plaub tus SDA tus pin txuas rau lub rooj tsavxwm A4 tus pin
Ua tsaug rau qhov zoo ntawm SAMD21 nti peb tuaj yeem siv ib qho ntawm nws cov pins digital raws li PWM cov lus tso tawm, uas yuav ua haujlwm rau peb kom xa qhov dav mem tes dav kom txav cov servomotor.
Lwm qhov tseem ceeb ntawm cov ntaub ntawv uas yuav tsum tau txiav txim siab yog lub zog hluav taws xob sab nraud rau cov neeg siv khoom, hauv Circuit Court koj tuaj yeem pom lub ntsaws ntsaws uas txuas rau 5volts ntawm 2Amp qhov chaw, kom zam dhau lub rooj tsavxwm thiab ua rau nws puas tsuaj.
Tsis txhob hnov qab koom nrog cov teeb liab sib xws GND ntawm daim npav thiab lwm qhov chaw, txwv tsis pub, koj yuav muaj teeb meem tswj hwm lub cav servo vim tias lawv yuav tsis muaj qhov siv tib yam.
Kauj Ruam 2: Coding Arduino IDE rau Bast Pro Mini M0
Thawj qhov yuav yog txhawm rau teeb tsa Bast Pro Mini M0 daim npav hauv Arduino IDE, cov kauj ruam tuaj yeem nrhiav tau hauv Electronic Cats repository thiab lawv tseem ceeb rau nws txoj haujlwm.
github.com/ElectronicCats/Arduino_Boards_I…
Thaum koj tau npaj Arduino IDE nws yog qhov tsim nyog los teeb tsa lub tsev qiv ntawv raug cai ntawm TLV493D sensor, nkag mus rau https://github.com/Infineon/TLV493D-A1B6-3DMagnet… thiab mus rau Kev Tso Tawm.
Hauv thawj feem ntawm txoj cai, cov tsev qiv ntawv siv tau tshaj tawm, hauv qhov no, Servo.h rau cov neeg siv khoom thiab TLV493D.h rau lub ntsuas.
Thaum siv Servo.h lub tsev qiv ntawv nws yog qhov tseem ceeb tshaj tawm tus naj npawb ntawm servomotors, txawm hais tias tus neeg hlau muaj 4 lub sijhawm no tsuas yog siv 3.
Cov pins tau tshaj tawm rau lub laub khawm uas yuav nres ib qho kev txav ntawm cov neeg hlau thiab qhib thiab kaw ntawm tus tuav. Qee qhov kev hloov pauv thoob ntiaj teb tau tshaj tawm tias yuav ua haujlwm kom paub lub xeev ntawm tus tuav thiab yog tias muaj kev txav mus los.
Hauv ntu thib ob ntawm txoj cai, peb yuav qhia hauv cov ntawv saib xyuas tus nqi ntawm qib uas lub tshuab muaj. Lwm lub ntsiab lus tseem ceeb yog tsim kom muaj qhov txwv ntawm qib hauv koj cov neeg siv khoom, rau qhov no, daim ntawv qhia () ua haujlwm tau siv uas hloov pauv tus nqi ntawm kev txav ntawm TLV493D sensor mus rau thaj tsam 0 txog 180 degrees ntawm servomotor.
Rau qhov kawg ntawm txoj cai, cov xwm txheej tau tsim los qhib kev txav ntawm cov neeg siv khoom siv nrog lub laub-khawm thiab kom paub tias lub xeev tus gripper nyob rau qhov nws txav mus tom ntej thaum nias lub pob thib ob. Raws li koj tuaj yeem pom hauv cov duab dhau los cov cai tsis nyuaj rau siv thiab nkag siab, thaum kawg ntawm txoj haujlwm koj tuaj yeem pom cov cai.
Puas yog koj kawm siv Circuit Python?
Yog tias koj xav paub yuav siv IDE li cas, koj tuaj yeem nrhiav Bast Pro Mini M0 daim npav hauv qhov txuas hauv qab no txhawm rau rub lub bootloader thiab pib ua haujlwm nrog Python.
Kauj Ruam 3: Daim Duab 3D
Yog tias koj xav ua qhov haujlwm, koj tuaj yeem rub cov ntawv hauv.stl thiab luam tawm. Koj yuav pom cov ntaub ntawv rau lub hauv paus thiab cov teb lo.
Pom zoo:
DIY Neeg Hlau - Kev Kawm 6 Axis Neeg Hlau Caj Npab: 6 Kauj Ruam (nrog Duab)
DIY Neeg Hlau | Kev Kawm 6 Axis Neeg Hlau Caj Npab: DIY-Robotics kev kawm ntawm tes yog lub platform uas suav nrog 6-axis neeg hlau sab caj npab, hluav taws xob tswj hluav taws xob thiab software software. Lub platform no yog qhia txog lub ntiaj teb kev lag luam neeg hlau. Los ntawm txoj haujlwm no, DIY-Robotics xav tau
Hlau Tswj Cov Neeg Hlau Caj Npab: 31 Kauj Ruam
Hlau Tswj Cov Neeg Hlau Caj Npab: Nov yog kev qhia yuav ua li cas thiaj ua tau cov neeg hlau caj npab tswj los ntawm cov xov hlau. Qhov zoo ntawm kev siv xov hlau yog tias koj txhais caj npab sib zog thiab koj tuaj yeem muaj tag nrho koj lub cav nyob hauv qab ntawm koj txhais caj npab, ua kom lub tsev thiab kho kom yooj yim dua. Nov yog daim vis dis aus ntawm caj npab kuv
ROS MoveIt Neeg Hlau Caj Npab Part 2: Neeg Hlau Tswj: 6 Kauj Ruam
ROS MoveIt Robotic Arm Ntu 2: Tus Tswj Xyuas Neeg Hlau: https://github.com/AIWintermuteAI/ros-moveit-arm.git Hauv ntu dhau los ntawm tsab xov xwm peb tau tsim URDF thiab XACRO cov ntaub ntawv rau peb cov neeg hlau caj npab thiab pib RVIZ los tswj peb robotic caj npab nyob rau hauv simulated ib puag ncig Lub sij hawm no peb yuav ua nws nrog lub
Nunchuk Tswj Cov Neeg Hlau Caj Npab (nrog Arduino): 14 Kauj Ruam (nrog Duab)
Nunchuk Tswj Cov Neeg Hlau Caj Npab (nrog Arduino): Cov neeg hlau caj npab zoo heev! Cov tsev tsim khoom thoob plaws ntiaj teb muaj lawv, qhov twg lawv pleev xim, txhuam thiab nqa cov khoom nrog qhov tseeb. Lawv kuj tseem tuaj yeem nrhiav pom hauv qhov chaw tshawb nrhiav, subsea cov tsheb ua haujlwm nyob deb, thiab txawm tias siv rau kev kho mob! Thiab tam sim no koj tuaj yeem
Cov Kab Xev Caj Npab thiab Luj Qhov Caj Npab: 3 Kauj Ruam
Cov Kab Xev Caj Npab thiab Luj Qhov Caj Npab: Cov lus qhia no yuav qhia koj yuav ua li cas kom cov kab xev xev hnyav thiab ua rau lawv nrog txhuas lossis xuab zeb. Qhov hnyav no tuaj yeem sib pauv ntawm caj npab thiab txhais ceg. Nov yog kuv thawj qhov kev qhia kom ua tau zoo;) Thov tawm lus