Cov txheej txheem:
Video: Siv Ntau Tshaj 4 Lub Tshuab Hluav Taws Xob - Tsau Ntau Lub Tsav Tsheb: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Qhia Vibrotactile Sensory Hloov Chaw thiab Cov Khoom Siv Ntxiv (https://www.instructables.com/id/Vibrotactile-Sens…) qhia txog txoj hauv kev yuav ua li cas thiaj tsim lub cuab yeej uas txhais cov lus nkag siab nkag mus rau qhov ua kom muaj zog. Cov kev tawm dag zog no yog tsim los ntawm cylindrical ERM lub cev muaj zog uas tau tsav los ntawm Arduino Uno nrog lub cav tsheb.
Rau ntau dua 4 lub cav, ntau lub cav yuav tsum tau teeb tsa.
Yog tias ntau dua 6 lub cav yuav tsum tau tsav ntawm nws tus kheej, koj xav tau PWM pins ntau dua li Arduino Uno muaj (6 PWM pins) thiab yog li ntawd Arduino Mega. Hauv kev xav, ntau dua ob daim thaiv tuaj yeem raug teeb tsa ntawm Arduino, txawm li cas los xij xav tias Arduino Mega kuj tseem muaj qhov txwv tsawg ntawm PWM pins: 15.
Khoom siv
- Adafruit Motorshield v2.3 thiab txiv neej stacking headers
- Poj niam stacking headers (piv txwv li
- Arduino Mega rau ntau dua 6 lub cav (piv txwv li
Tsab ntawv los ntawm
Kauj Ruam 1: Kev Sib Cais thiab Sib Sau
- Solder stacking pins ntawm ob lub motorshields raws li pom hauv cov duab
- Cov chaw nyob Solder dhia ntawm ib ntawm cov laug cam (saib cov lus piav qhia ntawm daim duab thiab https://learn.adafruit.com/adafruit-motor-shield-… rau cov lus qhia ntxaws ntxiv ntawm kev ua li ntawd)
- Tshooj Arduino thiab ob daim thaiv ntawm ib sab.
- Nco ntsoov tias VIN Jumper nyob ntawm ob daim thaiv.
Kauj ruam 2: Code
Nov yog qhov piv txwv ntawm yuav ua li cas cia 8 lub tshuab txhais lus 3 qhov kev nkag siab zoo:
- Rub tawm cov cai, muab hauv zip zip hauv qab no, qhib nws thiab teeb tsa cov tsev qiv ntawv, raws li tau piav qhia hauv….
- Nyem rau ntawm Tools → Board → xaiv Arduino/Genuino Mega lossis Mega 2505
- Hloov cov ntu hauv qab no hauv cov cai, yog xav tau
Txheeb xyuas txhua lub cav nrog nws tus lej tus lej thiab daim thaiv:
Adafruit_DCMotor *motor1 = AFMS1.getMotor (1); // qhia meej tias DC lub cav txuas nrog thawj daim thaiv Adafruit_DCMotor *motor2 = AFMS1.getMotor (2); Adafruit_DCMotor *motor3 = AFMS1.getMotor (3); Adafruit_DCMotor *motor4 = AFMS1.getMotor (4); Adafruit_DCMotor *motor5 = AFMS2.getMotor (1); // qhia meej tias DC lub cev muaj zog txuas nrog daim thaiv thib ob Adafruit_DCMotor *motor6 = AFMS2.getMotor (2); Adafruit_DCMotor *motor7 = AFMS2.getMotor (3); Adafruit_DCMotor *motor8 = AFMS2.getMotor (4);
Tshwj xeeb tus naj npawb ntawm cov siv lub cav:
int nrOfMotors = 8;
Suav nrog txhua lub cav siv hauv ib qho array:
Adafruit_DCMotor *motors [8] = {motor1, motor2, motor3, motor4, motor5, motor6, motor7, motor8, };
Suav nrog txhua tus sensorpins hauv ib qho array:
unsigned char sensorpins [3] = {A15, A14, A13, };
Tshaj Tawm Txoj Cai rau Arduino Mega. Ua tiav
Kauj Ruam 3: Ua Nws Hnav
Hauv Cov Lus Qhia hais txog yuav ua li cas thiaj li ua tau SSAD hnav tau (https://www.instructables.com/id/Making-the-SSAD-W…), piv txwv ntawm yuav ua li cas txuas Arduino Uno thiab ib lub cev muaj zog rau lub cev tau muab. Yog tias koj yuav tsum siv Arduino Mega thiab ntau lub motorshields, lub hnab ntim hauv siab, zoo li qhia hauv daim duab kos yuav yog ib qho kev daws teeb meem rau kev ua qauv siv tau.
Pom zoo:
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Igniter: 6 Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Bluetooth Hluav Taws Xob Igniter: Puas yog nws zoo rau taws ntau dua ib lub foob pob hluav taws tib lub sijhawm? Lossis txawm tias muaj kev nyab xeeb nyob deb rau qhov phom sij txaus ntshai. Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub Circuit Court uas tuaj yeem ua tau li cas nrog kev pab ntawm Bluetooth ua haujlwm
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob thiab Servo Tester: 3 Cov Kauj Ruam
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob thiab Cov Kev Pabcuam Servo: Kev Qhia Tshwj Xeeb: Voltage: 2-3S Lipo lossis 6-9 NiMH Nruam tam sim no: 35A Tam sim no tawg: 160A BEC: 5V / 1A, tawm qauv: 1. pem hauv ntej & thim rov qab; 2. mus &nres; 3. rau pem hauv ntej & nres & thim rov qab: 34g Loj: 42*28*17mm
Ib Leeg Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: 6 Cov Kauj Ruam
Ib Leeg Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: Hauv qhov haujlwm no peb tab tom ua kom muaj Ib lub kauj induction lub cev Muaj zog, thiab ntau yam piav qhia ntxiv, cov qauv ntawm lub tshuab hluav taws xob no tau siv ntau yam khoom siv tam sim no. Peb lub cav tsis muaj lub zog loj, nws yog ntau ntxiv txog kev ua haujlwm
Ua Lub Tshuab Hluav Taws Xob DC Cov Hluav Taws Xob Los Ntawm Tuag Tov Khoom Tsav Tsheb DIY: 3 Cov Kauj Ruam (nrog Duab)
Ua Lub Tshuab Hluav Taws Xob DC Cov Hluav Taws Xob Los Ntawm Tuag Tov Khoom Lub Cev DIY: Nyob Zoo! Hauv cov lus qhia no, koj yuav kawm paub yuav hloov pauv lub tshuab Blender/laum tshuab lub cev tuag (Universal lub cev muaj zog) rau hauv lub zog loj tas mus li Magnet DC lub tshuab hluav taws xob li cas. Nco tseg: Txoj hauv kev no tsuas siv tau yog tias lub tshuab hluav taws xob hauv lub cev tau hlawv
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: 6 Kauj Ruam
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: Nco tseg thiab ceev faj: CFL muaj cov mercury uas yog cov khoom phom sij, yog li nws yuav tsum tau ua raws li feem ntau CFL cov teeb, hluav taws xob hluav taws xob tau ua haujlwm zoo thiab tseem siv tau, tsuas yog lub teeb mus tsis zoo. CFL Circuit Court ntawm 18-24 Watts yog