Cov txheej txheem:
- Kauj Ruam 1: Sau cov khoom siv
- Kauj ruam 2: Txuas Pi thiab Breadboard
- Kauj Ruam 3: Hlau Mini Reed Sensor
- Kauj Ruam 4: Hlau LED
- Kauj Ruam 5: Hlau Buzzer
- Kauj ruam 6: Khiav Ib co Code
Video: RaspberryPi 3 Magnet Sensor Nrog Mini Reed Sensor: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv Cov Lus Qhia no, peb yuav tsim lub IoT magnet sensor siv RaspberryPi 3.
Lub ntsuas hluav taws xob suav nrog LED thiab lub suab nrov, ob qho tib si tig thaum lub hlau nplaum tau hnov los ntawm lub ntsuas me me.
Kauj Ruam 1: Sau cov khoom siv
Txhawm rau pib, nco ntsoov tias koj muaj tag nrho cov khoom siv tsim nyog. Koj yuav xav tau:
- Ib qho RaspberryPi 3
- Ib T Cobbler
- Ib qho Breadboard
- Ib Ribbon Txuas
- Lub Mini Reed Sensor
- Ib LED
- Ib Buzzer
- Cov Khoom Sib Txuas (suav nrog qee qhov nrog tsawg kawg ib tus poj niam kawg)
Kauj ruam 2: Txuas Pi thiab Breadboard
Tom ntej no, koj yuav txuas RaspberryPi thiab Breadboard. Txhawm rau ua qhov no, koj yuav tso ib kawg ntawm txoj hlua txuas rau hauv T Cobbler, thiab lwm qhov hla tus pin ntawm RaspberryPi. Tom qab ntawd muab tus T Cobbler tso rau hauv lub khob cij.
Kauj Ruam 3: Hlau Mini Reed Sensor
Tam sim no, xaim lub mini reed sensor. Koj yuav xav siv xov hlau nrog tus poj niam kawg kom ua tiav qhov no, vim lub ntsuas cua muaj txiv neej tus pin. Los ntawm sab laug mus rau sab xis, lub cim ntsuas tus pin tau tso tawm, lub zog, thiab hauv av.
Hlau tus pin tso tawm rau T Cobbler GPIO24, lub zog rau ib qho 5V T Cobbler tus pin, thiab hauv av rau ib qho GND T Cobbler tus pin.
Kauj Ruam 4: Hlau LED
LED tuaj yeem ua rau me ntsis yog tias koj tsis paub nws! LED nws tus kheej muaj qhov kawg ntev thiab qhov luv luv. Qhov ntev kawg yuav tsum txuas nrog GPIO26 los ntawm 330k ohm resistor, thiab qhov luv luv txuas ncaj qha mus rau hauv av, raws li qhia saum toj no. Koj tuaj yeem xaiv siv xov hlau txuas ntxiv kom ntseeg tau tias txhua yam nyob zoo thiab zoo!
Kauj Ruam 5: Hlau Buzzer
Koj yuav pom tias koj lub suab nrov muaj ob qho + thiab a - cim nyob hauv qab. + Qhia tias tus pin buzzer yuav tsum txuas nrog lub zog, thiab - qhia tus pin uas yuav tsum txuas nrog hauv av.
Txuas tus + tus pin rau GPIO25, thiab tus pin rau GND. Kuv xaiv siv tib txoj hauv kev kuv xaim kuv LED rau GND ntawm, tab sis koj tsis tas yuav ua qhov no!
Kauj ruam 6: Khiav Ib co Code
Tus nab npawb nab npawb muab rau ntawm no sau peb cov cuab yeej raws nraim qhov peb xav kom nws ua; thaum lub mini reed sensor pom cov hlau nplaum, LED thiab buzzer tig rau. Thaum tshem cov hlau nplaum, ob qho tib si tua. Nco ntsoov tias peb yuav tsum tau hloov pauv qhov txiaj ntsig kev nkag los ntawm peb lub mini reed sensor. Qhov no yog vim tias lub ntsuas pa ib txwm qhib, thiab qis qis thaum nws hnov cov hlau nplaum.
Tam sim no koj yuav tsum muaj lub tshuab nqus hlau ua haujlwm!
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov Khaub Ncaws Khaub Ncaws Niaj Hnub Nyoog Vintage Cov Kab Xev Nrog Cov Ntaub Ntawv MP3: 8 Kauj Ruam (nrog Duab)
Kev Sau Ntiag Tug Vintage Cassette Tapes Nrog Cov Ntaub Ntawv MP3: Nrog cov kab xev nplaum kab xev popping hauv pop-kab lis kev cai tam sim no ntau dua li yav tas los, ntau tus neeg xav tsim lawv tus kheej cov ntawv. Hauv qhov kev qhia no, kuv yuav qhia koj yuav ua li cas (yog tias koj muaj daim kab xev kaw) kaw koj tus kheej cov kab xev nrog cov thev naus laus zis niaj hnub
Cov Khaub Ncaws Khaub Ncaws Jelly Donuts - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: 4 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws Khaub Ncaws - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: Peb pom hauv Twitter tias ntau ntawm peb Cov Khaub Ncaws thiab Makey Makey cov neeg ntxeev siab xav paub ntau ntxiv txog kev xaws khaub ncaws, yog li peb tau tsim qhov kev qhia no kom qhia rau koj sai ntawm kev xaws khaub ncaws thiab yuav ua li cas koj tuaj yeem xaws qee cov khoom sib dhos. (Qhov no yog
Yuav Ua Li Cas Tsim Koj Tus Kheej Anemometer Siv Reed Switches, Hall Effect Sensor thiab Qee Cov Scraps ntawm Nodemcu - Ntu 2 - Software: 5 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tsim Koj Tus Kheej Anemometer Siv Reed Switches, Hall Effect Sensor thiab Qee Cov Scraps ntawm Nodemcu - Ntu 2 - Software: Qhia Taw Qhia Qhov no yog qhov txuas ntxiv rau thawj kab ntawv "Yuav Ua Li Cas Tsim Koj Tus Kheej Anemometer Siv Reed Hloov, Hall Effect Sensor thiab Qee Cov Scraps" ntawm Nodemcu - Ntu 1 - Kho vajtse " - qhov twg kuv qhia yuav ua li cas sib dhos cua nrawm thiab ntsuas ntsuas
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Cov Txheej Txheem Digital thiab Analog 2015: 3 Cov Kauj Ruam (nrog Duab)
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Digital thiab Analog Cov Txheej Txheem 2015: Txog tam sim no, cov khoom siv hlau yog cov khoom siv tes ua uas tsis muaj kev cuam tshuam digital. Vim li no, nws zoo siab heev los ua phooj ywg nrog cov cuab yeej tshiab. Lub hauv paus pib yog daim ntawv qub thiab CNC Styrocutter.DESIGNBOOM