Cov txheej txheem:
Video: Tswj DC Motors Nrog L298N Siv CloudX Microcontroller: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Hauv qhov haujlwm no peb yuav piav qhia yuav siv peb L298N H-choj kom nce thiab txo qis ntawm DC lub cev muaj zog. L298N H-choj module tuaj yeem siv nrog lub cav uas muaj qhov hluav taws xob nruab nrab ntawm 5 thiab 35V DC.
Kuj tseem muaj tus tswj hwm 5V onboard, yog li yog tias koj cov khoom siv hluav taws xob nce mus txog 12V koj tuaj yeem tseem tuaj yeem siv 5V los ntawm pawg thawj coj saib. Cov L298 H-choj ob lub cav tswj lub cev muaj zog yog qhov pheej yig thiab muaj nyob ntawm no
Kauj Ruam 1: Cheeb Tsam
- CloudX microcontroller
- CloudX Softcard
- V3 USB kab
- L298N H-choj
- Cov qhob cij
- Jumper xov hlau
- DC tsav
- 10 k resistor
- 4* laub khawm
koj tuaj yeem online ntawm no
Kauj Ruam 2: Daim duab Circuit Court
ua raws li Circuit Court
Kauj ruam 3: Code
theej cov cai no rau koj li CloudX IDE
#ncig #ncig
kos npe char, j;
ntsis chij;
teeb tsa () {
// teeb tsa ntawm no rau (i = 1; i <5; i ++) {pinMode (i, INPUT); } PWM1_Init (5000); PWM2_Init (5000); PWM1_Start (); PWM2_Start (); PWM1_Duty (0); PWM2_Duty (0); kuv = j = 0; loop () {// Qhov program no yog (! readPin (1)) {delayMs (200); if (flag == 0) {PWM1_Duty (i); PWM2_Duty (0); } if (flag == 1) {PWM2_Duty (j); PWM1_Duty (0); } chij = ~ chij; } yog (! readPin (2)) {delayMs (200); yog (chij == 1) {// i -= 10; kuv-; yog (i <= 0) i = 0; PWM1_Duty (i); PWM2_Duty (0); } yog (chij == 0) {// j -= 10; j--; yog (j <= 0) j = 0; PWM2_Duty (j); PWM1_Duty (0); }} yog (! readPin (3)) {delayMs (200); yog (chij == 1) {// kuv += 10; kuv ++; yog (i> = 100) kuv = 100; PWM1_Duty (i); PWM2_Duty (0); } yog (chij == 0) {// j += 10; j ++; yog (j> = 100) j = 100; PWM2_Duty (j); PWM1_Duty (0); }}
yog (! readPin (4)) {
delayMs (200); PWM1_Duty (0); PWM2_Duty (0); kuv = 0; j = 0; }
}
}
Pom zoo:
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: Ib txoj hauv kev txuas ntxiv kev ua haujlwm ntawm micro: ntsis yog siv lub rooj tsav xwm hu ua moto: ntsis los ntawm SparkFun Electronics (kwv yees li $ 15-20). Nws zoo li nyuaj thiab muaj ntau yam ntxwv, tab sis nws tsis nyuaj rau kev ua haujlwm servo motors los ntawm nws. Moto: me ntsis tso cai rau koj
Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: 5 Kauj Ruam
Lub Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: Cov no yog cov lus qhia txhawm rau tsim koj tus kheej lub tsheb tswj chaw taws teeb, tswj siv wireless Xbox 360 maub los
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
KEYPAD Nrog 7 XEEM Siv CLOUDX MICROCONTROLLER: 4 Kauj Ruam
KEYPAD WITH 7 SEGMENT USING CLOUDX MICROCONTROLLER: Rau qhov haujlwm no, peb yuav lees txais tus lej nkag los ntawm Matrix Keypad thiab tom qab ntawd tso nws tawm ntawm xya ntu ntu Cov Qauv. Txij li 8 LEDs tau sau lo lus A rau G thiab DP (rau tus lej cim zauv), yog tias koj xav qhia tus lej 6, tom qab ntawd koj yuav thov
Sib cuam tshuam 7-Segment Zaub Nrog Hloov Sau Npe Siv CloudX Microcontroller: 5 Kauj Ruam
Sib cuam tshuam 7-Segment Zaub Nrog Hloov Sau Npe Siv CloudX Microcontroller: Hauv qhov haujlwm no peb tau tshaj tawm cov lus qhia yuav ua li cas cuam tshuam xya ntu ntu LED zaub nrog CloudX microcontroller. Xya ntu qhia tau siv nyob rau hauv ntau qhov system thiab cov ntawv thov kev lag luam uas qhov ntau ntawm cov txiaj ntsig yuav tsum tau qhia yog paub