Cov txheej txheem:

Automated Water Motor With Indicator Level: 6 Kauj Ruam (nrog Duab)
Automated Water Motor With Indicator Level: 6 Kauj Ruam (nrog Duab)

Video: Automated Water Motor With Indicator Level: 6 Kauj Ruam (nrog Duab)

Video: Automated Water Motor With Indicator Level: 6 Kauj Ruam (nrog Duab)
Video: Top 15 Casio G Shock Watches Under $500 | Best G-Shock Watches Below $500 2024, Hlis ntuj nqeg
Anonim
Automated Dej Tsav Nrog Qib Qhov Taw Qhia
Automated Dej Tsav Nrog Qib Qhov Taw Qhia
Automated Dej Tsav Nrog Qib Qhov Taw Qhia
Automated Dej Tsav Nrog Qib Qhov Taw Qhia

Nyob Zoo Txhua Tus, zoo siab txais tos rau lwm Cov Lus Qhia. Hauv Txoj Haujlwm no peb yuav kawm paub yuav Ua Li Cas Tsis Siv Neeg Dej Dej Tank Tswj Tus Kheej nrog rau qib ntsuas Qhov ntsuas siv Arduino Nano.

Arduino yog lub hlwb ntawm txoj haujlwm no. Nws yuav siv cov tswv yim los ntawm cov ntsuas thiab tswj txhua lwm chav nyob raws li tus nqi tau txais. Qhov thaiv thib ob yog 16x2 LCD zaub. Chav tsev no yuav tso saib Cov Dej nyob rau hauv feem pua nrog rau hauv Daim Duab, nws tseem yuav qhia pom lub twj tso kua mis. Nqe lus no tseem yuav ceeb toom rau peb thaum twg lub Sump tank tsis muaj dab tsi. Qhov thib peb thaiv yog Sonar Sensor. Qhov no yog siv los ntsuas cov dej theem tam sim no ntawm lub taub dej taub hau.

Yog li hauv txoj haujlwm no kuv yuav siv HC-SR04 Ultrasonic Module los ntsuas Dej Dej thiab I2C LCD kom pom cov qib dej hauv cm.

Khoom siv

Arduino Nano Cov

JSN-SR04 Dej Pov Thawj Ultrasonic Module

16X 2 LCD Zaub (Xiav/Ntsuab)

230-5V Cov Qauv Hluav Taws Xob

5v zoj

Sib Nqus Sib Nqus

Lub thawv kaw

Kauj Ruam 1: Pib Nrog JSN-SR04

Pib Nrog JSN-SR04
Pib Nrog JSN-SR04

JSN-SR04 lossis Dej Pov Thawj ultra sonic sensor yog lub tshuab hluav taws xob uas ua haujlwm ntawm lub hauv paus ntsiab lus ntawm kev sib kis thiab kev xav.

Lub luag haujlwm ntawm ECHO tus pin yog tso tawm cov nthwv dej mus rau cov channel. Qhov no nthwv dej hla dhau qhov nruab nrab raws li nthwv dej thiab xav rov qab thaum puas nws tsoo ib yam khoom lossis teeb meem ua ntej ntawm nws txoj kev nthuav tawm. xam thiab siv tus nqi no peb txiav txim siab qhov kev ncua deb ntawm cov teeb meem uas tuaj rau peb.

  • TRIG tus pin txuas nrog tus lej digital 5 ntawm nano.
  • ECHO tus pin txuas nrog tus lej digital 5 ntawm nano.
  • Tus VCC tus pin txuas nrog rau qhov zoo ntawm tus ncej ntawm lub khob cij.
  • Tus GND tus pin txuas nrog qhov tsis zoo ntawm lub khob cij.

Kauj Ruam 2: Ua haujlwm ntawm Tus Tswj Dej Tsis Siv Neeg

Ua haujlwm ntawm txoj haujlwm no yog qhov yooj yim heev peb tau siv Ultrasonic sensor module uas xa lub suab tsis zoo hauv lub taub dej thiab kuaj pom lub suab tsis zoo uas yog ECHO. Ua ntej tshaj plaws peb yuav tsum ua kom pom lub ntsuas hluav taws xob ultrasonic sensor kom xa cov teeb liab los ntawm kev siv Arduino thiab tom qab ntawd tos kom tau txais ECHO. Arduino nyeem lub sijhawm nruab nrab ntawm kev ua thiab tau txais ECHO. Peb paub tias qhov nrawm ntawm lub suab nyob ib puag ncig 340 m/s. yog li peb tuaj yeem suav qhov deb los ntawm kev siv cov qauv:

Qhov nrug = (sijhawm mus ncig/2) * lub suab nrawm Qhov twg suab nrawm yog kwv yees li 340m ib pliag. Los ntawm kev siv cov txheej txheem no peb tau txais kev nrug deb ntawm lub sensor mus rau dej saum npoo av. Tom qab nws peb yuav tsum xam cov dej theem. Tam sim no peb yuav tsum suav tag nrho ntev ntawm lub tank dej. Raws li peb paub qhov ntev ntawm lub tank dej peb tuaj yeem suav cov qib dej los ntawm kev rho tawm qhov ua tau los ntawm ultrasonic los ntawm tag nrho ntev ntawm lub tank. Thiab peb yuav tau txais cov dej theem nrug deb. Tam sim no peb tuaj yeem hloov qib dej no mus rau feem pua ntawm cov dej, thiab tuaj yeem tso tawm ntawm LCD.

Kauj Ruam 3: Daim duab qhia chaw thiab piav qhia

Daim duab kos thiab piav qhia
Daim duab kos thiab piav qhia

Raws li tau qhia hauv cov txheej txheem tswj dej hauv qab muab hauv qab no, Ultrasonic sensor module's "trigger" thiab "echo" pins tau txuas ncaj qha rau tus pin 5 thiab 4 ntawm arduino. 16x2 LCD txuas nrog arduino hauv 4-ntsis hom. Tswj tus pin RS, RW thiab En tau txuas ncaj qha rau arduino tus pin 3, GND thiab 2. Thiab cov ntaub ntawv tus pin D4-D7 txuas nrog 10, 9, 8 thiab 7 ntawm arduino, thiab buzzer txuas nrog tus pin 6. 5 Volt relay yog kuj txuas ntawm tus pin 12 ntawm arduino rau tig lossis tig lub twj tso kua dej tso tawm. A 230-5V Lub zog siv hluav taws xob siv rau lub zog-ntxiv rau chav tsev no.you tuaj yeem siv 1000mA Lub xov tooj them rau qhov no.n no Circuit Court Ultrasonic sensor module tau muab tso rau ntawm sab saum toj ntawm lub tank dej rau kev ua qauv qhia. Qhov ntsuas qhov ntsuas no yuav nyeem qhov nrug nruab nrab ntawm lub ntsuas qhov ntsuas thiab dej, thiab nws yuav qhia qhov nrug deb ntawm lub vijtsam LCD nrog cov lus "Dej Chaw hauv Tank yog:". Nws txhais tau tias peb nyob ntawm no qhia qhov chaw khoob ntawm qhov deb lossis ntim dej tsis txhob siv dej. Vim tias txoj haujlwm no peb tuaj yeem siv cov txheej txheem no hauv txhua lub tank dej. Thaum cov dej tsis muaj qib nce mus txog qhov deb li 30 cm ces Arduino tig rau lub twj tso kua mis los ntawm kev tsav tsheb. Thiab tam sim no LCD yuav qhia "LOW Water Level" "Motor ON ON", thiab Relay status LED yuav pib ci

Tam sim no yog tias qhov chaw khoob mus txog ntawm qhov deb txog 12 cm arduino tig OFF lub relay thiab LCD yuav qhia “Tank puv” “Motor Turned OFF”. Buzzer kuj tseem ceeb rau qee lub sijhawm thiab kev xa xov xwm LED yuav tig OFF.

Kauj ruam 4: Programming

Txhawm rau program Arduino rau cov tswj dej theem, ua ntej peb txhais txhua tus pin uas peb tab tom yuav siv hauv txoj haujlwm txhawm rau cuam tshuam cov khoom siv sab nraud xws li txuas, LCD, buzzer thiab lwm yam. thiab qhov chaw nres nkoj raug thiab tom qab ntawd nyem upload.

Kauj Ruam 5: Xeem & Sib Sau

Kev Xeem & Sib Sau Ua Ke
Kev Xeem & Sib Sau Ua Ke
Kev Xeem & Sib Sau Ua Ke
Kev Xeem & Sib Sau Ua Ke
Kev Xeem & Sib Sau Ua Ke
Kev Xeem & Sib Sau Ua Ke

Thiab tom qab koj ua tiav txoj haujlwm koj yuav tsum pom arduino tso saib cov dej hauv LCD. Koj tuaj yeem muaj lub suab nrov ntxiv los qhia rau koj paub tom qab ntawd cov qib dej nce mus txog tom qab qhov chaw pib.

Kauj Ruam 6: Txhim Kho

Txhim kho
Txhim kho
Txhim kho
Txhim kho
Txhim kho
Txhim kho

Nov yog qhov pib ua tiav thiab ua nrog cov peev txheej txwv. Kuv tab tom npaj txhim kho qhov no nrog SMS ceeb toom txog qib dej siv SIM900A tus qauv ua cov kauj ruam tom ntej.

Ua tsaug rau koj saib.

Pom zoo: