Cov txheej txheem:

UltraSonic Liquid Level Controller: 6 Kauj Ruam (nrog Duab)
UltraSonic Liquid Level Controller: 6 Kauj Ruam (nrog Duab)

Video: UltraSonic Liquid Level Controller: 6 Kauj Ruam (nrog Duab)

Video: UltraSonic Liquid Level Controller: 6 Kauj Ruam (nrog Duab)
Video: Только стакан этого сока ... Обратное забивание артерий и снижение высокого кровяного давления 2024, Kaum ib hlis
Anonim
UltraSonic Liquid Level Controller
UltraSonic Liquid Level Controller

Taw qhia Raws li koj tej zaum paub, Iran muaj huab cua qhuav, thiab tsis muaj dej hauv kuv lub tebchaws. Qee zaum, tshwj xeeb tshaj yog nyob rau lub caij ntuj sov, nws tuaj yeem pom tias tsoomfwv txiav cov dej. Yog li feem ntau ntawm cov tsev muaj lub tank dej. Muaj lub tank 1500 litre hauv peb chav tsev uas muab dej. Tsis tas li, muaj 12 chav nyob hauv peb chav tsev. Raws li qhov tshwm sim, nws tuaj yeem cia siab tias lub tank ploj mus sai sai. Muaj lub twj tso kua dej txuas rau lub tank uas xa dej mus rau hauv lub tsev. Thaum twg lub tank khoob, lub twj tso kua mis ua haujlwm yam tsis muaj dej. Qhov xwm txheej no ua rau muaj qhov kub hauv lub cev nce ntxiv, thiab thaum lub sijhawm, nws tuaj yeem ua rau lub twj tso kua mis tawg. Qee lub sij hawm dhau los, lub twj tso kua mis tsis ua haujlwm tau tshwm sim zaum thib ob rau peb, thiab tom qab qhib lub cav, peb pom tias cov xaim hluav taws xob tau hlawv. Tom qab peb hloov lub twj tso kua mis, txhawm rau tiv thaiv qhov teeb meem no dua, kuv txiav txim siab los ua tus tswj dej theem. Kuv npaj yuav ua ib lub voj voog los txiav lub twj tso kua mis lub zog thaum twg los cov dej tau qis dua qhov txwv qis hauv lub tank. Lub twj tso kua mis yuav tsis ua haujlwm kom txog thaum dej nce mus rau qhov txwv siab. Tom qab dhau qhov kev txwv siab, lub Circuit Court yuav txuas lub zog txuas ntxiv. Thaum pib, kuv tshawb hauv is taws nem kom pom tias kuv tuaj yeem pom qhov tsim nyog tsim hluav taws xob. Txawm li cas los xij, kuv tsis pom dab tsi tsim nyog. Muaj qee qhov Arduino raws cov ntsuas dej, tab sis tsis tuaj yeem daws kuv qhov teeb meem. Raws li qhov tshwm sim, kuv txiav txim siab los tsim kuv tus ntsuas dej theem. Ib qho tagnrho-hauv-ib pob nrog cov neeg siv yooj yim graphical interface los teeb tsa tsis. Tsis tas li, kuv tau sim txiav txim siab txog EMC cov qauv kom ntseeg tau tias lub cuab yeej ua haujlwm tau zoo nyob hauv ntau qhov xwm txheej.

Kauj Ruam 1: Txoj Cai

Txoj Cai
Txoj Cai

Tej zaum koj paub txoj cai ua ntej. Thaum lub teeb liab mem tes ultrasonic tso rau ntawm ib qho khoom, nws tau pom los ntawm qhov khoom thiab ncha rov qab rau tus xa ntawv. Yog tias koj suav Lub Sijhawm taug kev los ntawm cov mem tes ultrasonic, koj tuaj yeem pom qhov nrug ntawm qhov khoom. Hauv peb qhov xwm txheej, yam khoom yog dej.

Nco ntsoov tias thaum koj pom qhov deb mus rau dej, koj tab tom suav qhov ntim ntawm qhov chaw khoob hauv lub tank. Txhawm rau kom tau ntim cov dej, koj yuav tsum rho tawm qhov ntim los ntawm tag nrho cov ntim ntim khoom.

Kauj ruam 2: Sensor, Powersupply thiab Controller

Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller
Sensor, Powersupply thiab Controller

Kho vajtse

Rau lub sensor, Kuv siv JSN-SR04T waterproof ultrasonic sensor. Lub sijhawm ua haujlwm zoo ib yam li HC-SR04 (ncha thiab tus lej pin).

Qhia:

  • Qhov nrug: 25cm txog 450 cm
  • Ua haujlwm voltage: DC 3.0-5.5V
  • Ua haujlwm tam sim no: < 8mA
  • Qhov tseeb: cm 1cm
  • Zaus: 40khz
  • Ua haujlwm kub: -20 ~ 70 ℃

Nco ntsoov tias tus tswj hwm no muaj qee qhov txwv. Piv txwv li: 1- JSN-SR04T ntsuas tsis tau nrug deb hauv qab 25CM, yog li koj yuav tsum teeb tsa lub ntsuas ntsuas tsawg kawg 25CM saum cov dej. Ntxiv mus, qhov ntsuas siab tshaj plaws yog 4.5M. Yog li qhov ntsuas no tsis haum rau cov tso tsheb loj loj. 2- qhov tseeb yog 1CM rau qhov ntsuas no. Raws li qhov tshwm sim, raws li txoj kab uas hla ntawm lub tank, kev daws teeb meem ntawm lub ntim uas lub cuab yeej yuav qhia tuaj yeem sib txawv. 3- lub suab nrawm tuaj yeem sib txawv raws qhov kub thiab txias. Vim li ntawd, qhov raug tuaj yeem cuam tshuam los ntawm cov cheeb tsam sib txawv. Txawm li cas los xij, cov kev txwv no tsis tseem ceeb rau kuv, thiab qhov raug tsim nyog.

Tus Tswj

Kuv siv STM32F030K6T6 ARM Cortex M0 los ntawm STMicroelectronics. Koj tuaj yeem pom qhov tshwj xeeb ntawm tus tswj hwm microcontroller no.

Lub Hwj Huam

Thawj ntu yog hloov 220V/50Hz (Iran Hluav Taws Xob) rau 12VDC. Rau lub hom phiaj no, Kuv tau siv HLK-PM12 cov kauj ruam nqis qis rau cov khoom siv hluav taws xob. Qhov AC/DC hloov pauv no tuaj yeem hloov 90 ~ 264 VAC rau 12VDC nrog 0.25A tso tawm tam sim no.

Raws li koj tej zaum paub, cov khoom siv hluav taws xob ntawm kev xa tawm tuaj yeem ua rau muaj teeb meem ntau ntawm lub Circuit Court thiab cov khoom siv hluav taws xob, thiab teeb meem hauv lub zog hluav taws xob tuaj yeem ua rau qhov tsis sib xws, tshwj xeeb tshaj yog hauv microcontroller. Kev daws yog cais cov khoom siv fais fab. Tsis tas li, koj yuav tsum siv lub voj voos snubber ntawm kev sib txuas lus sib txuas. Muaj ntau txoj hauv kev cais cov khoom siv fais fab. Piv txwv li, koj tuaj yeem siv lub tshuab hloov pauv nrog ob qhov kev tso tawm. Ntxiv mus, muaj cais DC/DC hloov pauv tawm muaj qhov me me uas tuaj yeem cais cov zis los ntawm cov tswv yim. Kuv siv MINMAX MA03-12S09 rau lub hom phiaj no. Nws yog 3W DC/DC hloov pauv nrog kev rho tawm.

Kauj Ruam 3: Tus Thawj Saib Xyuas IC

Tus Thawj Saib Xyuas IC
Tus Thawj Saib Xyuas IC

Raws li TI App ceeb toom: Tus saib xyuas qhov hluav taws xob (tseem hu ua rov pib dua kev sib txuas Circuit [IC]) yog ib hom kev ntsuas hluav taws xob uas saib xyuas lub zog hluav taws xob. Cov neeg saib xyuas hluav taws xob feem ntau siv nrog cov txheej txheem, cov tswj hluav taws xob thiab cov sib txuas - feem ntau, qhov xav tau qhov hluav taws xob lossis tam sim no. Tus saib xyuas saib xyuas cov kab hluav taws xob kom ntseeg tau tias lub zog ua haujlwm, kuaj pom qhov tsis raug thiab sib tham nrog cov txheej txheem teeb tsa kom ntseeg tau tias muaj kev noj qab haus huv. koj tuaj yeem pom daim ntawv thov app no ntawm no. Txawm hais tias STM32 Microcontrollers tau ua tus saib xyuas xws li lub zog ntawm cov saib xyuas khoom, Kuv tau siv tus thawj saib xyuas sab nraud los xyuas kom txhua yam yuav ua haujlwm tau zoo. Hauv kuv qhov xwm txheej, Kuv siv TL7705 los ntawm TI. Koj tuaj yeem pom cov lus piav qhia los ntawm Texas Instruments lub vev xaib rau IC hauv qab no: TL77xxA tsev neeg ntawm kev sib koom ua ke muab hluav taws xob-tus saib xyuas hluav taws xob tau tsim tshwj xeeb rau siv raws li rov pib dua cov tswj hauv microcomputer thiab microprocessor systems. Tus saib xyuas qhov hluav taws xob saib xyuas cov khoom siv rau cov teeb meem qis hauv SENSE cov tswv yim. Thaum lub hwj chim-nce, RESET cov zis ua haujlwm (qis) thaum VCC ua tiav tus nqi nce mus txog 3.6 V. Ntawm qhov no (piv txwv tias SENSE yog siab dua VIT+), kev ncua sijhawm ua haujlwm qhib lub sijhawm ncua, tom qab uas tso tawm RESET thiab RESET (TSIS) mus tsis ua haujlwm (siab thiab qis, feem). Thaum qhov xwm txheej qis tshwm sim thaum lub sijhawm ua haujlwm ib txwm muaj, RESET thiab RESET (TSIS) mus ua haujlwm.

Kauj Ruam 4: Luam Luam Circuit Board (PCB)

Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)
Luam Circuit Board (PCB)

Kuv tsim PCB hauv ob daim. Thawj qhov yog LCD PCB uas txuas nrog lub hauv paus loj nrog kab/kab txuas ncaj qha. Qhov thib ob yog tus tswj hwm PCB. Ntawm PCB no, Kuv tso lub hwj chim, microcontroller, ultrasonic sensor thiab lwm yam khoom muaj feem cuam tshuam. Thiab kuj yog lub zog qhov uas yog kev xa tawm, tus hloov pauv thiab cov kab hluav taws xob sib nqus. Raws li koj tej zaum paub, cov khoom siv txuas ntxiv xws li kev xa tawm uas kuv tau siv hauv kuv lub Circuit Court tuaj yeem tawg yog tias lawv ib txwm ua haujlwm. Yuav kom kov yeej qhov teeb meem no, Kuv siv ib txwm kaw kev sib cuag (NC) ntawm kev xa xov. Yog li hauv qhov xwm txheej ib txwm, kev xa xov tsis nquag thiab ib txwm nyob sib ze tuaj yeem ua lub zog tso dej. Thaum twg los xij cov dej los qis dua qhov txwv qis, kev xa tawm yuav qhib, thiab qhov no yuav txiav lub zog. Tau hais tias, Qhov no yog qhov laj thawj uas kuv tau siv lub snubber Circuit ntawm NC thiab COM kev sib cuag. Hais txog qhov tseeb tias lub twj tso kua mis muaj lub zog siab, Kuv tau siv 220 qhov txuas thib ob rau nws, thiab kuv tsav nws nrog kev xa xov ntawm PCB.

Koj tuaj yeem rub tawm PCB cov ntaub ntawv xws li Altium PCB cov ntaub ntawv thiab cov ntaub ntawv Gerber los ntawm kuv GitHub ntawm no.

Kauj ruam 5: Code

Image
Image
Kev teeb tsa ntawm Tank
Kev teeb tsa ntawm Tank

Kuv siv STM32Cube IDE, uas yog ib qho kev daws teeb meem tag nrho rau kev txhim kho cov cai los ntawm STMicroelectronics. Nws yog raws Eclipse IDE nrog GCC ARM compiler. Tsis tas li, nws muaj STM32CubeMX hauv nws. Koj tuaj yeem nrhiav cov ntaub ntawv ntxiv ntawm no. Thaum xub thawj, kuv tau sau cov cai uas suav nrog peb lub tank tshwj xeeb (Qhov siab thiab taub). Txawm li cas los xij, Kuv txiav txim siab hloov nws mus rau GUI rau teeb tsa tsis raws qhov tshwj xeeb sib txawv.

Kauj Ruam 6: Kev teeb tsa ntawm Tank

Kev teeb tsa ntawm Tank
Kev teeb tsa ntawm Tank
Kev teeb tsa ntawm Tank
Kev teeb tsa ntawm Tank

Thaum kawg, Kuv tau ua lub thawv yooj yim rau nws los tiv thaiv PCB los ntawm dej. Tsis tas li, Kuv tau ua lub qhov nyob rau sab saum toj ntawm lub tank tso lub sensor rau nws.

Pom zoo: