Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Ntau Txog MLX90614:
- Kauj Ruam 3: Ntau Ntxiv Txog HCSR04 Module:
- Kauj Ruam 4: Ntau Txog 16x2 LCD:
- Kauj Ruam 5: Cov Duab Ntxiv
- Kauj ruam 6: Code
- Kauj Ruam 7: Nqis Hauv Qhov Project Los Ntawm Lub Tsev
Video: Cov Khoom Siv Teeb Meem Siv Chaw Taws Teeb Siv Arduino: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Niaj hnub no, Cov Tsim, Cov Tsim Kho xav tau Arduino rau kev txhim kho sai ntawm cov qauv ntawm cov phiaj xwm. Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Arduino muaj zej zog cov neeg siv zoo heev. Hauv txoj haujlwm no, peb yuav pom yuav ua li cas thiaj nkag siab qhov ntsuas kub thiab qhov deb. Lub hom phiaj tuaj yeem yog txhua yam zoo li lub thawv kub lossis cov dej khov nab kuab tiag tiag phab ntsa sab nraum. Yog li, nrog cov kab ke no, peb tuaj yeem txuag peb tus kheej. Thiab tseem ceeb dua, qhov no tuaj yeem pab tau rau cov neeg xiam oob khab (cov neeg dig muag).
Kauj Ruam 1: Cheeb Tsam
Rau txoj haujlwm no peb yuav xav tau cov khoom siv hauv qab no,
1. Arduino Nano
2. MLX90614 (IR Kub sensor)
3. HCSR04 (Ultrasonic sensor)
4.16x2 LCD npo
5. Breadboard
6. Txhua Hlau
Peb tuaj yeem siv ib qho Arduino board hloov chaw ntawm Arduino nano txiav txim siab tus lej cim.
Kauj Ruam 2: Ntau Txog MLX90614:
MLX90614 yog i2c raws li qhov ntsuas kub IR ua haujlwm ntawm kev ntsuas hluav taws xob cua sov.
Sab hauv, MLX90614 yog kev sib txuas ntawm ob lub cuab yeej: lub ntsuas hluav taws xob infrared ntsuas hluav taws xob thiab lub teeb pom kev zoo daim ntawv thov txheej txheem. Raws li txoj cai Stefan-Boltzman, ib yam khoom uas tsis qis dua qhov tsis muaj pes tsawg (0 ° K) tso tawm (tsis yog tib neeg-qhov muag-pom) lub teeb nyob rau hauv cov duab hluav taws xob uas yog ncaj qha piv rau nws qhov kub. Qhov tshwj xeeb infrared thermopile sab hauv MLX90614 nkag siab ntau npaum li cas lub zog hluav taws xob infrared tau tawm los ntawm cov khoom siv hauv nws qhov kev pom, thiab tsim hluav taws xob teeb liab sib piv rau qhov ntawd. Qhov hluav taws xob uas tsim los ntawm cov thermopile tau khaws los ntawm daim ntawv thov txheej txheem 17-ntsis ADC, tom qab ntawv ua ntej dhau mus rau lub microcontroller.
Kauj Ruam 3: Ntau Ntxiv Txog HCSR04 Module:
Hauv ultrasonic module HCSR04, peb yuav tsum muab lub plawv dhia rau ntawm tus pin, yog li nws yuav tsim hluav taws xob ntawm zaus 40 kHz. Tom qab tsim hluav taws xob piv txwv li 8 mem tes ntawm 40 kHz, nws ua rau tus ncha pin siab. Echo tus pin tseem nyob siab kom txog thaum nws tsis tau txais lub suab ncha rov qab.
Yog li qhov dav ntawm tus ncho tus pin yuav yog lub sijhawm rau lub suab mus rau qhov khoom thiab rov qab los. Thaum peb tau txais lub sijhawm peb tuaj yeem suav nrug, raws li peb paub lub suab nrawm. HC -SR04 tuaj yeem ntsuas txog li ntawm 2 cm - 400 cm. Ultrasonic Module yuav tsim cov nthwv dej ultrasonic uas siab dua tib neeg-kuaj pom ntau zaus, feem ntau tshaj 20, 000 Hz. Hauv peb qhov xwm txheej peb yuav kis tus zaus ntawm 40Khz.
Kauj Ruam 4: Ntau Txog 16x2 LCD:
16x2 LCD yog 16 tus cim thiab 2 kab lcd uas muaj 16 tus pin txuas. Lub LCD no xav tau cov ntaub ntawv lossis ntawv hauv ASCII hom los tso tawm. Thawj kab pib nrog 0x80 thiab kab thib ob pib nrog 0xC0 chaw nyob. LCD tuaj yeem ua haujlwm hauv 4-ntsis lossis 8-ntsis. Hauv 4 hom me me, Cov Ntaub Ntawv/Cov Lus Hais tau xa hauv Nibble Format First Nibble Siab dua thiab tom qab ntawd Nibble qis dua.
Piv txwv li, xa 0x45 Thawj 4 yuav raug xa Tom qab ntawd 5 yuav xa mus.
Muaj 3 tus tswj hwm tus pin uas yog RS, RW, E.
Yuav Siv RS li cas:
Thaum hais kom xa, ces RS = 0
Thaum Cov Ntaub Ntawv raug xa, ces RS = 1
Yuav siv RW li cas:
RW tus pin yog Nyeem/Sau.
qhov twg, RW = 0 txhais tau tias Sau Cov Ntaub Ntawv ntawm LCD
RW = 1 txhais tau tias Nyeem Cov Ntaub Ntawv los ntawm LCD
Thaum peb sau rau LCD cov lus txib/Cov Ntaub Ntawv, peb tau teeb tus pin li LOW.
Thaum peb nyeem los ntawm LCD, peb teeb tus pin li HIGH.
Hauv peb qhov xwm txheej, peb tau siv nws nyuaj rau qib LOW, vim tias peb yuav sau mus rau LCD ib txwm.
Yuav siv E (Pab kom):
Thaum peb xa cov ntaub ntawv mus rau LCD, peb tab tom muab mem tes rau lcd nrog kev pab ntawm E tus pin.
Qhov no yog qib ntws peb yuav tsum ua raws thaum xa COMMAND/DATA rau LCD.
Nram qab no yog Sequence to Follow.
Siab Nibble
Pab kom Pulse, Tus nqi RS kom raug, Raws li COMMAND/DATA
Sab Nibble
Pab kom Pulse, Tus nqi RS kom raug, Raws li COMMAND/DATA
Kauj Ruam 5: Cov Duab Ntxiv
Kauj ruam 6: Code
Thov nrhiav tus lej ntawm github:
github.com/stechiez/Arduino.git
Pom zoo:
DIY LED Teeb - Niaj Hnub Teeb Meem Teeb Nrog Cov Chaw Taws Teeb: 8 Kauj Ruam (nrog Duab)
DIY LED Teeb - Niaj Hnub Teeb Mood Teeb Nrog Chaw Taws Teeb: Hauv kab lus no kuv yuav mus hla cov txheej txheem Kuv tau siv los tsim qhov no zoo heev pyramid zoo li tus LED Mood Teeb.Kuv siv maple rau cov qauv tseem ceeb thiab qee qhov mahogany txhav ntxiv rau lub zog. Rau lub teeb Kuv siv RGB LED teeb uas tuaj nyob hauv 16 ko taw
Ordinary Cov Khoom Siv Hluav Taws Xob Hloov pauv mus rau Plaub-channel RC Qho Chaw Taws Teeb Chaw Taws Teeb: 4 Cov Kauj Ruam
Ordinary Cov Khoom Siv Hluav Taws Xob hloov pauv mus rau plaub-channel RC Toy Remote Control: 将 将 通用 遥控 器 转换 转换 玩具 玩具 模型 使用 的 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62方法 方法 非常。 只需 准备 一些 瓦楞纸 瓦楞纸 板 板 , , , 然后 然后
Hloov ATX Cov Khoom Siv Hluav Taws Xob rau hauv Cov Khoom Siv Hluav Taws Xob DC!: 9 Cov Kauj Ruam (nrog Duab)
Hloov ATX Lub Hwj Huam Muab Rau Hauv Ib Lub Sij Hawm DC Lub Hwj Huam!: DC Lub zog hluav taws xob tuaj yeem nyuaj nrhiav thiab kim. Nrog cov yam ntxwv uas ntau dua lossis tsawg dua ntaus lossis ploj rau yam koj xav tau. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav hloov pauv lub computer fais fab li cas mus rau DC lub zog hluav taws xob nrog 12, 5 thiab 3.3 v
Hloov Cov Khoom Siv Hluav Taws Xob ntawm Cov Khoom Siv Hluav Taws Xob Pheej Yig: 3 Cov Kauj Ruam
Hloov pauv qhov hluav taws xob ntawm Kev Siv Hluav Taws Xob Pheej Yig: Cov lus qhia no qhia yuav hloov pauv li cas hauv lub zog hluav taws xob me me kom chnage qhov hluav taws xob tso tawm kom haum rau koj cov kev xav tau. Rau DIY qhov project kuv xav tau qhov ruaj khov ntawm qhov tseeb 7V dc thiab txog 100 mA. Saib ib ncig ntawm kuv cov khoom sau Kuv pom ib
Rov Siv Cov Khoom Siv Yas Zib Zib Zib Zib Hnab Rau Hauv Cov Chaw Muag Khoom Chaw Muag Khoom: 6 Kauj Ruam
Reuse Recycle Plastic Chewing Gum Cannister Into Solder Station Dispenser: Cov lus qhia no yuav qhia koj yuav ua li cas siv cov yas zom zom tuaj yeem ua kom khaws cov kab laug sab zoo thiab huv. Qhov no yuav ua haujlwm ntawm lwm yam khoom siv spooled thiab; Txoj hlua, Hlau, Cables