Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Ua li cas Ultrasonic Sensors Ua Haujlwm
- Kauj Ruam 3: Sib cuam tshuam Ultrasonic Sensor Nrog PICO
- Kauj ruam 4: Ultrasonic Sensor Sketch
- Kauj Ruam 5: Txuas Buzzer
- Kauj Ruam 6: Programming Buzzer
- Kauj Ruam 7: Txuas cov LEDs
- Kauj Ruam 8: Kev teeb tsa LEDs
- Kauj Ruam 9: Txuas Lub Hwj Huam Fais Fab
- Kauj ruam 10: Koj Ua tiav
Video: Lub Tswb Tswb Tswb Tswb Siv Super Tiny Arduino Compatible Board !: 10 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Nyob zoo, hnub no peb tab tom ua qhov project txias me me. Peb tab tom yuav tsim lub tswb me me uas ntsuas qhov nrug nruab nrab ntawm nws tus kheej thiab cov khoom nyob rau ntawm nws xub ntiag. Thiab thaum cov khoom txav mus los yav dhau los teeb tsa, lub cuab yeej yuav ceeb toom rau koj nrog lub suab nrov nrov nrov.
Txhawm rau ua lub tswb me me, peb xav tau cov khoom siv me me, yog vim li cas peb thiaj siv PICO los ua peb tus tswj hwm microcontroller, vim nws ua tiav peb cov kev xav tau thaum me me me. Peb kuj tseem siv cov khoom siv feem ntau los nyeem qhov deb thiab muab lub teeb liab rau lub suab nrov. Txoj haujlwm no yuav coj koj ncig 45 feeb kom tiav, yog tias koj xaiv siv qhov chaws muab.
Kauj Ruam 1: Cheeb Tsam
- 1 PICO board, muaj nyob ntawm mellbell.cc ($ 17)
- 1 ultrasonic sensor, ebay ($ 1.03)
- 1 lub suab me me 5 ~ 6 volt, ib pob ntawm 10 ntawm ebay ($ 1.39)
- 3 LEDs 5mm (xim sib txawv), ib pob ntawm 100 ntawm ebay ($ 0.99)
- 4 330 ohm resistors, ib pob ntawm 100 ntawm ebay ($ 1.08)
- 12 jumber xov hlau, ib pob 40 ntawm ebay ($ 0.99)
- 1 lub khob cij me me, ib pob ntawm 5 ntawm ebay ($ 2.52)
Kauj Ruam 2: Ua li cas Ultrasonic Sensors Ua Haujlwm
Ua ntej koj txuas lub ultrasonic sensor thiab siv nws, cia peb kawm paub nws ua haujlwm li cas:
- Ua ntej, nws xa tawm Ultrasonic nthwv dej los ntawm tus xa tawm transducer (sab laug Transducer). Yog tias muaj ib qho khoom nyob rau sab xub ntiag ntawm lub ntsuas cua, cov nthwv dej tsoo cov khoom ntawd thiab rov qab mus rau tus txais kev hloov pauv (txoj cai hloov pauv)
- Tom qab ntawd, lub microcontroller suav lub sijhawm ntawm kev xa cov nthwv dej thiab txais lawv. Tom qab ntawd, lub microcontroller ua qee qhov kev suav ua lej thiab tau txais qhov deb nruab nrab ntawm lub ntsuas cua thiab cov khoom ua ntej nws.
- Nov yog cov qauv siv kom tau txais qhov nrug deb hauv CM: (ntev / 2) /29.1 (Koj tuaj yeem pom cov lej tom qab cov mis no hauv daim duab saum toj no).
Kauj Ruam 3: Sib cuam tshuam Ultrasonic Sensor Nrog PICO
Thawj qhov ua, yog saib koj lub PICO thiab pom tias koj tuaj yeem ua dab tsi nrog nws. Thiab raws li koj pom, PICO muaj 5 digital I/O Pins, thiab 3 analog input pins. Uas yuav siv raws li hauv qab no:
Ultrasonic sensor tus pin tawm:
- VCC (Ultrasonic Sensor) - VCC (PICO)
- GND (Ultrasonic Sensor) - GND (PICO)
- Trig (Ultrasonic Sensor) - A1 (PICO)
- Ncha (Ultrasonic Sensor) - A0 (PICO)
Tam sim no txhua yam koj xav tau yog txhawm rau txuas lub ntsuas hluav taws xob ultrasonic nrog PICO thiab xyuas kom tseeb tias txhua yam zoo meej.
Kauj ruam 4: Ultrasonic Sensor Sketch
Tam sim no koj yuav tsum tsim cov phiaj xwm, uas siv qhov ntsuas nrug deb ntawm lub ntsuas hluav taws xob ultrasonic, thiab tso tawm nws ntawm lub ntsuas saib. Yog li koj tuaj yeem tau txais kev nyeem thiab paub tseeb tias txhua yam txuas nrog thiab ua haujlwm tau zoo.
Tsim kom muaj nuj nqi hu ua ntsuasDistance uas yog lub luag haujlwm ntsuas lub sijhawm ntawm kev xa lub teeb liab thiab tau txais nws, thiab suav qhov deb. Koj kuj tseem yuav tsum tso saib cov ntawv nyeem ntawm koj tus lej saib, yog li koj tuaj yeem debug qhov haujlwm hauv IDE.
Koj tuaj yeem rub tawm qhov program txuas, yog tias koj tsis xav sau nws tus kheej. Koj kuj tseem tuaj yeem pom yuav ua li cas cov ntawv nyeem nyeem yuav tsum saib los ntawm cov duab saum toj no.
Kauj Ruam 5: Txuas Buzzer
Tam sim no, tias koj muaj koj lub ntsuas hluav taws xob muab qhov nrug ntawm nws tus kheej thiab txhua yam khoom nyob rau ntawm nws xub ntiag. Koj yuav tsum tau ua qee yam nrog kev nyeem ntawv, thiab raws li peb tau hais ua ntej, koj yuav muaj lub suab nrov nrov nrov thaum cov khoom nyob rau hauv pem hauv ntej ntawm lub sensor tau txais txoj kev deb dhau.
Ua haujlwm nrog buzzers yog qhov yooj yim heev, vim tias lawv tsuas muaj ob lub xeev ua haujlwm, yog ON lossis OFF. Lawv kuj tsuas muaj ob txhais ceg, ib qho yog qhov zoo (ceg ntev), thiab lwm qhov tsis zoo (Short Leg).
- Thaum 5V tau thov rau lub suab nrov, nws qhib thiab ua rau lub suab nrov nrov nrov.
- Thaum 0V tau thov rau lub suab nrov, nws hloov tawm thiab tsis muaj suab nrov.
Kauj Ruam 6: Programming Buzzer
Koj xav kom lub buzzer pib nrov nrov thaum cov khoom nyob rau hauv pem hauv ntej ntawm lub sensor tau txais ntau dua 20CM, thiab tua tawm thaum cov khoom ze dua 20CM "Koj tuaj yeem siv qhov deb li cas koj xav tau".
Cov kev pabcuam txuas nrog muaj cov cai uas tau txais kev nyeem los ntawm lub ntsuas hluav taws xob ultrasonic, thiab xa xaj mus rau lub tswb nrov. Uas yog pib ua suab nrov thaum lub hom phiaj yog ntau dua 20CM, thiab kom nres thaum nws nyob ze dua qhov ntawd.
Nco ntsoov tias koj tuaj yeem hloov kho txoj cai rau txhua txoj cai thiab kev ncua uas koj xav tau.
Kauj Ruam 7: Txuas cov LEDs
Tam sim no, koj xav ntxiv peb LEDs rau koj txoj haujlwm kom nws muaj kev sib tham ntau dua thiab muaj zog.
Peb siv 5mm LEDs li niaj zaus, thiab cov no tsuas muaj ob txhais ceg, zoo (ceg ntev), thiab tsis zoo (ceg luv). Thiab thaum peb thov 5V rau cov coj nws tig thaum peb thov 0v nws tig tawm. Koj tuaj yeem siv hom LEDs twg los xij uas koj xav tau ntawm no, thiab yog tias koj muaj lus nug txog qhov ntawd, thov hu rau lawv.
Kauj Ruam 8: Kev teeb tsa LEDs
Peb siv 3 LEDs hauv peb txoj haujlwm, thiab lawv pom kev nyob ntawm qhov deb nruab nrab ntawm lub ntsuas cua thiab cov khoom nyob rau ntawm nws xub ntiag.
Cov xiav LED yuav qhib thaum qhov deb tsawg dua 10cm. LED daj yuav qhib thaum qhov kev ncua deb ntawm 10 cm thiab 20cm. Liab LED yuav qhib thaum qhov kev deb ntau dua 20cm.
Thiab ntxiv, nco ntsoov tias koj tuaj yeem hloov kho cov cai uas tswj hwm koj li LEDs li cas.
Kauj Ruam 9: Txuas Lub Hwj Huam Fais Fab
Hauv theem no, koj xav tau lub peev xwm siv koj lub tswb me me yam tsis raug yuam kom txuas nws mus rau PC. Yog li, ntxiv 9V roj teeb rau koj qhov project thiab txuas nws rau koj PICO.
- Cov hlau liab zoo (Roj teeb) - Vin (PICO)
- Cov xaim dub tsis zoo (Roj teeb) - GND (PICO)
Thiab tam sim no, koj lub tswb ceeb toom yuav ua haujlwm yam tsis tas yuav txuas nrog PC.
Kauj ruam 10: Koj Ua tiav
Nrog koj zoo siab! Tam sim no koj muaj lub cuab yeej uas ceeb toom koj raws qhov deb ntawm cov khoom nyob rau ntawm nws xub ntiag. Tsis tas li, tsis txhob hnov qab tias koj tuaj yeem hloov kho nws txoj cai, thiab hloov pauv li cas thiab vim li cas lub suab nrov nrov ua suab nrov.
Koj tuaj yeem pom peb ntawm peb nplooj ntawv Facebook, thiab ntawm mellbell.cc. Thiab thov koj xav nug cov lus nug, peb yuav zoo siab los teb lawv:)
Pom zoo:
Tswb Tswb Tswb Tswb Tswb: 3 Kauj Ruam
Lub Tswb Tswb Tswb Tswb: Kuv yog menyuam kawm ntawv 13 xyoos hauv Taiwan.Kuv ua yam nrog Arduino thawj zaug yog tias koj tuaj yeem qhia kuv yuav ua li cas txhim kho txoj haujlwm no, thov tawm lus rau kuv kom kuv tuaj yeem ua qhov zoo dua. (Ua tsaug ) Lub moos no tuaj yeem tsa koj thaum koj tsaug zog, tab sis kuv
Tswb Tswb Tswb Tswb Tswb Ntse Teeb: 8 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Tswb Lub Teeb: Hauv qhov haujlwm no kuv tau siv lub tshuab cua-tsoo lub tswb tawg tag. Lub ntsej muag ntawm lub moos tau hloov pauv los ntawm 12 LEDs, teeb pom kev los ntawm LED kab ib ncig ntawm ntug ntawm lub moos. 12 LEDs qhia lub sijhawm thiab cov hlua LED tau teeb tsa los ua lub tswb, tig
Arduino Push Alerts rau Lub Tswb, Tswb Tswb, Tswb Tswb Tswb Thiab Lwm Yam: 8 Kauj Ruam
Arduino Push Alerts rau Tswb, Tswb Tswb, Tswb Tswb Tswb thiab lwm yam: IoT Cov Ntawv Ceeb Toom los ntawm koj lub Tswb, Tswb Tswb, Tswb Tswb thiab lwm yam siv Arduino Uno thiab Ethernet Shield. Cov ncauj lus kom ntxaws ntawm kuv lub vev xaib ntawm no Hais txog Arduino Push Alert Box Siv Arduino Uno thiab Ethernet Shield raws li Wiznet W5100 nti rau
Tsim Lub Tswb Tswb Tswb Tswb Rau Koj Lub PC thiab Hluav Taws Xob Hluav Taws Xob-Clock: 3 Kauj Ruam (nrog Duab)
Tsim Tsa Tswb Tswb Tswb Tswb Rau Koj Lub PC thiab Hluav Taws Hluav Taws Xob-Clock: Lub tswb tooj dag, lub me me txuas ob peb yam ntxiv thiab lub tswb nrov tuaj yeem tsoo lub sijhawm ntawm koj lub khoos phis tawj. OS X kuj, Kuv xav tias yuav nruab Ubuntu Linux ntawm lub PC Kuv pom hauv lub thoob khib nyiab thiab ua haujlwm ntawm qhov ntawd: Kuv tsis tau
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj