Cov txheej txheem:
- Kauj ruam 1: Cov ntaub ntawv
- Kauj ruam 2: Laub Khawm Txuas
- Kauj Ruam 3: Kev Sib Txuas Tsav Tsheb
- Kauj Ruam 4: Txuas rau Servo Motor
- Kauj ruam 5: Code
- Kauj Ruam 6: Khaws Cov Khoom Siv Hluav Taws Xob
Video: Tsis siv neeg Fedora Tipper: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Koj puas muaj teeb meem no uas thaum koj taug kev hauv txoj kev thaum nqa qee yam hnyav (piv txwv li khoom noj khoom haus) thiab tus poj niam taug kev yav dhau los rau tus neeg uas koj xav qhia koj li fedora txhawm rau tos txais nws, tab sis yog tias koj ua li ntawd koj yuav poob koj nqa dab tsi? Kuv tsis yog, tab sis ua rau koj ua, ntawm no yog qhov yooj yim, txawm hais tias muaj kuab heev los daws qhov teeb meem no.
Kauj ruam 1: Cov ntaub ntawv
- Tus tswj hwm arduino
- Servo tsav
- Laub khawm hloov
- 10k Ohm Resistor- xim av-dub-txiv kab ntxwv
- Qhov txaus ntawm cov xov hlau sib txuas nrog koj qhov ntev
Kauj ruam 2: Laub Khawm Txuas
- Cov xaim dub ntawm daim duab txuas tus pin 1 ntawm qhov hloov (ntawm sab laug) mus rau GND tus pin ntawm Arduino.
- Cov kab hlau daj ntawm daim duab txuas tus pin 2 ntawm qhov hloov (ntawm sab xis) rau tus pin 8 ntawm Arduino.
-Txuas 10kΩ resistor (xim av-dub-txiv kab ntxwv) rau tus pin 2 (sab xis) thiab lwm lub dav hlau mus rau 3.3V tus pin ntawm Arduino.
Kauj Ruam 3: Kev Sib Txuas Tsav Tsheb
- Cov xaim dawb (daj hauv daim duab) txuas nrog los ntawm lub teeb liab pin ntawm servo motor rau tus pin ~ 9 ntawm Arduino.
- Cov hlau liab txuas nrog los ntawm tus pin teeb liab ntawm servo motor mus rau 5V tus pin ntawm Arduino.
- Cov hlau daj (dub hauv daim duab) txuas nrog los ntawm tus pin hauv av ntawm servo motor mus rau GND tus pin ntawm Arduino.
Kauj Ruam 4: Txuas rau Servo Motor
- Kuv tau txiav qee lub nplhaib hauv tus xaum xaum kom khi nws mus rau qhov tig ntawm Servo lub cev muaj zog. Koj tuaj yeem siv cov kab xev los ua li ntawd, tab sis kuv pom tias khi nws nrog hlua tau ruaj ntseg dua thiab khov kho.
- Lwm qhov kawg ntawm tus xaum xaum yuav tsum muab txuas rau lub kaus mom ntawm sab nraub qaum. Kuv thawb ib daim ntawv los ntawm lub kaus mom thiab khoov nws kom zoo li nws tuaj yeem tuav tus xaum rau hauv qhov chaw.
- Lub cav nws tus kheej yuav tsum tau txuas rau lub phaj (lossis lwm yam uas tuaj yeem so saum koj lub taub hau yam tsis txav ntau dhau), uas kuv tau tawm hauv daim duab kom pom tseeb.
Kauj ruam 5: Code
#suav nrog;
// pushbutton tus pin
const int buttonPin = 8;
// servo tus pin
const int servoPin = 9;
Servo tsav;
// tsim qhov sib txawv los khaws lub txee thiab teeb nws rau 0
int counter = 0;
void teeb tsa ()
{
servo.attach (servoPin);
// Teeb tsa lub laub khawm kom dhau los ua tswv yim:
pinMode (buttonPin, INPUT);
}
void lub voj ()
{
// qhov sib txawv hauv zos los tuav lub xeev khawm
int buttonState;
// nyeem lub xeev digital ntawm buttonPin nrog digitalRead () muaj nuj nqi thiab khaws tus nqi hauv buttonState kuj tsis paub meej buttonState = digitalRead (buttonPin);
// yog tias lub pob nyem nias tus lej nce ntxiv thiab tos me ntsis kom muab sijhawm rau peb tso lub pob
yog (buttonState == LOW)
// teeb lub LED
{
txee ++; ncua (150);
}
yog (counter == 0)
servo.write (20); cov.
// xoom degrees
lwm yog (counter == 1)
servo.write (80); cov.
// lwm qhov pib dua lub txee rau 0 uas rov pib thr servo rau 0 degrees
lwm tus
cov = 0;
}
Kauj Ruam 6: Khaws Cov Khoom Siv Hluav Taws Xob
- Txhawm rau ua kom qhov kev tsim kho zoo li tsis muaj qhov tshwj xeeb koj tuaj yeem thawb lub arduino thiab phaj nrog lub pob rau hauv lub thawv me me (piv txwv li ib pob sigarettes lossis lub npov pob ntawm daim npav) thiab ua lub qhov nyob hauv nws. Txoj hauv kev no koj tuaj yeem tuav kev tsim kho kom pom tseeb yam tsis muaj kev txhawj xeeb tias muaj qee yam ntxiv mus.
Pom zoo:
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: 18 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: Peb tau Ua Kov Tsis Pub Siv Gumball Siv lub micro: me ntsis, Crazy Circuits Bit Board, ntsuas qhov deb, siv servo, thiab duab los qhia. Ua nws thiab siv nws yog "BLAST" "! ? ? Thaum koj tso koj txhais tes rau hauv lub hauv paus ntawm lub foob pob hluav taws, lub ntsuas qhov deb
Tsis Siv Neeg Qhov Muag Tsis Pom Kev Siv EV3: 6 Cov Kauj Ruam
Tsis Siv Neeg Qhov Muag Qhov Muag Siv EV3: Kuv muaj txheej txheej qhov muag tsis pom qhov muag hauv kuv chav pw uas kuv feem ntau tsis hnov qab qhib lossis kaw thaum sawv ntxov lossis yav tsaus ntuj. Kuv xav kom siv qhov qhib thiab kaw, tab sis nrog kev thim rov qab thaum rau thaum twg kuv tab tom hloov pauv
Yooj Yim Tsis Siv Neeg Hloov Neeg Hlau Siv Arduino & L293d IC: 6 Kauj Ruam
Yooj Yim Tsis Siv Neeg Hloov Neeg Hlau Siv Arduino & L293d IC: Nov yog lub hauv paus neeg hlau ua haujlwm los ntawm arduino thiab nws ua dab tsi yog tias nws tsuas yog ncig ib puag ncig thiab ua raws txoj hauv kev ncig los ntawm txoj cai tab sis koj tuaj yeem hloov kho cov cai kom hloov txoj hauv kev yooj yim. Nws yog txoj haujlwm yooj yim uas txhua tus tuaj yeem tsim .. Yog li Yog Koj Ev
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe