Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Txoj Cai
- Kauj Ruam 3: Daim Duab Schematic
- Kauj ruam 4: Cov txheej txheem
- Kauj ruam 5: Code
Video: DC Tsav Tswj Arduino Uno R3: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv qhov kev sim no, peb yuav kawm paub tswj hwm kev taw qhia thiab nrawm ntawm lub zog me me DC lub cav los ntawm tus tsav tsav L293D. Ua qhov kev sim yooj yim, peb tsuas yog ua kom lub cev muaj zog tig mus rau sab laug thiab sab xis, thiab ua kom nrawm lossis nrawm dua.
Kauj Ruam 1: Cheeb Tsam
- Arduino Uno board * 1
- USB cable * 1
L293D *1
- DC lub cav me me * 1
- Daim phiaj * 1
- Jumper xov hlau
Kauj Ruam 2: Txoj Cai
Qhov siab tshaj tam sim no ntawm Arduino I/O chaw nres nkoj yog 20mA tab sis qhov tsav tam sim no ntawm lub cav yog tsawg kawg 70mA. Yog li ntawd, peb tsis tuaj yeem siv qhov chaw nres nkoj I/O ncaj qha rau tsav tam sim no; Hloov chaw, peb tuaj yeem siv L293D los tsav lub cav. L293D L293D yog tsim los muab cov kev sib tw tsav mus txog 600mA ntawm qhov hluav taws xob los ntawm 4.5V txog 36V. Nws tau siv los tsav cov khoom siv hluav taws xob xws li kev xa tawm, solenoids, DC thiab bipolar stepping motors, ntxiv rau lwm cov khoom siv hluav taws xob tam sim no/siab-siab hauv kev thov zoo.
Saib daim duab ntawm tus pin hauv qab no. L293D muaj ob tus pin (Vcc1 thiab Vcc2) rau lub hwj chim. Vcc2 yog siv los muab lub zog rau lub cav, thaum Vcc1, rau lub nti. Txij li lub tshuab me me DC tau siv ntawm no, txuas ob tus pin rau +5V. Yog tias koj siv lub zog muaj zog ntau dua, koj yuav tsum txuas Vcc2 mus rau lub zog hluav taws xob sab nraud.
Kauj Ruam 3: Daim Duab Schematic
Kauj ruam 4: Cov txheej txheem
Pab kom tus pin 1, 2EN ntawm L293D txuas nrog 5V twb, yog li L293D ib txwm nyob hauv lub xeev ua haujlwm. Txuas tus pin 1A thiab 2A rau tus pin 9 thiab 10 ntawm pawg tswj hwm feem. Ob tus pin ntawm lub cev muaj zog txuas nrog tus pin 1Y thiab 2Y feem. Thaum tus pin 10 tau teeb tsa qib siab thiab tus pin 9 li qis, lub cav yuav pib tig mus rau ib qho kev taw qhia. Thaum tus pin 10 Tsawg thiab tus pin 9 yog Siab, nws tig rau hauv qhov kev coj rov qab.
Kauj ruam 1:
Tsim lub voj voog.
Kauj ruam 2:
Rub tawm cov cai los ntawm
Kauj ruam 3:
Tshaj tawm cov duab kos rau Arduino Uno board
Nyem rau Upload icon txhawm rau upload cov cai rau pawg tswj hwm.
Yog tias "Ua tiav uploading" tshwm rau hauv qab ntawm lub qhov rais, nws txhais tau hais tias daim duab tau ua tiav tiav.
Tam sim no, cov hniav ntawm DC lub cav yuav pib tig sab laug thiab sab xis, hauv qhov nrawm uas txawv raws li qhov tsim nyog.
Kauj ruam 5: Code
// DC Tsav Tswj
// DC tsav
yuav pib tig sab laug thiab sab xis, thiab nws qhov nrawm yuav txawv raws qhov ntawd.
// Web site: www.primerobotics.in
/***************************************/
const koj motorIn1
= 9; // txuas rau ib tus pin ntawm lub cav
const koj motorIn2
= 10; // txuas rau lwm tus pin ntawm lub cav
/***************************************/
void teeb tsa ()
{
pinMode (motorIn1, OUTPUT); // initialize motorIn1 tus pin raws li cov zis
pinMode (motorIn2, OUTPUT); // initialize motorIn2 tus pin raws li cov zis
}
/****************************************/
void lub voj ()
{
clockwise (200); // tig clockwise
ncua (1000);
// tos ib pliag
tig rov qab (200); // tig rov qab
ncua (1000);
// tos ib pliag
}
/****************************************
/Cov haujlwm rau
tsav lub cev muaj zog tig clockwise
tsis muaj dab tsi clockwise (int
Ceev)
{
analogWrite (motorIn1, Ceev); // teeb tsa qhov ceev ntawm lub cev muaj zog
analogWrite (motorIn2, 0); // nres lub cav In2 tus pin ntawm lub cev muaj zog
}
// Lub luag haujlwm tsav
lub cev muaj zog tig rov qab
tsis muaj dab tsi
counterclockwise (int ceev)
{
analogWrite (motorIn1, 0); // nres lub cav In1 tus pin ntawm lub cev muaj zog
analogWrite (motorIn2, Ceev); // teeb tsa qhov ceev ntawm lub cev muaj zog
}
/****************************************/
Pom zoo:
Stepper Tsav Tswj Cov Qauv Tsav Tsheb - Stepper Lub Cev Ua Raws Li Lub Hau Encoder: 11 Kauj Ruam (nrog Duab)
Stepper Tsav Tswj Cov Qauv Tsav Tsheb | Stepper Motor Raws li Rotary Encoder: Hauv ib qho ntawm Cov Lus Qhia yav dhau los, peb tau kawm paub yuav siv lub tshuab stepper li cas los ua tus lej nkag teb chaws. Hauv txoj haujlwm no, tam sim no peb yuav siv lub tshuab hluav taws xob stepper tig lub cav nkag los tswj tus qauv tsheb ciav hlau siv Arduino microcontroller. Yog li ntawd, tsis muaj f
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
Yuav Ua Li Cas Siv Drone Quadcopter Brushless DC Tsav los ntawm Kev Siv HW30A Brushless Tsav Ceev Tswj thiab Servo Tester: 3 Kauj Ruam
Yuav Ua Li Cas Siv Drone Quadcopter Brushless DC Motor los ntawm Kev Siv HW30A Brushless Motor Speed Controller thiab Servo Tester: Nqe lus piav qhia: Cov cuab yeej no hu ua Servo Motor Tester uas tuaj yeem siv los ua haujlwm servo lub cev los ntawm kev ntsaws yooj yim hauv servo lub cev muaj zog thiab muab lub zog rau nws. Cov cuab yeej kuj tseem tuaj yeem siv ua lub cim hluav taws xob rau kev tswj hluav taws xob ceev (ESC), tom qab ntawd koj tuaj yeem
Yuav Ua Li Cas Tswj Drone Quadcopter Brushless DC Tsav (3 Hom Hluav Taws Xob) los ntawm Kev Siv HW30A Lub Cev Muaj Zog Tswj thiab Arduino UNO: 5 Cov Kauj Ruam
Yuav Ua Li Cas Tswj Drone Quadcopter Brushless DC Tsav (3 Hom Hluav Taws Xob) los ntawm Kev Siv HW30A Lub Cev Muaj Zog Tswj thiab Arduino UNO: Nqe lus piav qhia: HW30A Lub Cev Muaj Zog Ceev tuaj yeem siv nrog 4-10 NiMH/NiCd lossis 2-3 cell LiPo roj teeb. BEC ua haujlwm tau zoo txog li 3 LiPo cells. Nws tuaj yeem siv los tswj kev nrawm ntawm Brushless DC lub cev muaj zog (3 xov hlau) nrog siab txog li 12Vdc.Specific
Pike - Tsav Kev Nyab Xeeb, Tsav Ntse, Tsav Tus Pike!: 5 Kauj Ruam
Pike - Tsav Kev Nyab Xeeb, Tsav Zoo, Tsav Pike!: Zoo siab txais tos rau kuv qhov project hu ua Pike! Nov yog qhov haujlwm raws li ib feem ntawm kuv txoj kev kawm. Kuv yog tub ntxhais kawm NMCT ntawm Howest hauv Belgium. Lub hom phiaj yog ua kom qee yam ntse los ntawm kev siv Raspberry Pi. Peb muaj kev ywj pheej tiav uas peb xav ua ntse.Rau rau kuv nws wa