Cov txheej txheem:

Anti-Icing System: 8 Kauj Ruam
Anti-Icing System: 8 Kauj Ruam

Video: Anti-Icing System: 8 Kauj Ruam

Video: Anti-Icing System: 8 Kauj Ruam
Video: Rae Sremmurd - No Type (Official Video) 2024, Kaum ib hlis
Anonim
Anti-Icing System
Anti-Icing System

Txoj haujlwm no lub hom phiaj txhawm rau tiv thaiv kev tsim cov dej khov lossis daus los ntawm kev siv cov dej qab ntsev los ua cov tshuaj tiv thaiv icing. Siv cov av noo thiab ntsuas qhov ntsuas kom pom ib puag ncig ib puag ncig, cov kais dej kis tau cov dej qab ntsev uas tswj los ntawm Raspberry Pi. IR sensor siv los tshuaj xyuas tib neeg thiab tsiaj txhu. Thaum nws pom tib neeg, lub tshuab tso dej tawm.

tag nrho cov lus qhia los tsim thiab siv txoj haujlwm tau muab rau hauv kuv nplooj GitHub.

GitHub: Kev Tiv Thaiv Icing System

Kauj ruam 1: GitHub Txuas

Ua siab zoo tuaj xyuas peb nplooj ntawv GitHub kom nkag siab txog cov khoom sib txawv, cov cuab yeej thiab pob khoom siv los tsim cov kab ke.

Anti-Icing system

xa mus rau qhov txuas saum toj no kom paub ntau ntxiv txog qhov haujlwm vim nws muaj nplooj ntawv sib txawv suav nrog readme thiab wiki cuam tshuam nrog nws los pab koj zoo dua hauv kev yooj yim tsim koj tus kheej los tiv thaiv icing system.

Kuv yuav muab cov lus qhia ib qib zuj zus los ntawm qib peb mus rau tom ntej txhawm rau ua kom yooj yim dua rau RPi cov neeg txhawb siab los tsim nws los ntawm cov lus qhia:)

Kauj Ruam 2: Nyob Ua Ke hauv YouTube

xa mus rau peb nplooj ntawv YouTube rau kev ua yeeb yam nyob. txuas hauv qab no:

YouTube demo rau Anti-Icing system

Kauj Ruam 3: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Kho vajtse:

1. IR sensor: HC-SR501 PIR Motion Detector Voltage: 5V-20VPower Siv: 65mATTL tso zis: 3.3V, 0VLock lub sijhawm: 0.2 secTrigger txoj kev: L-ua kom rov ua dua, H pab kom rov ua dua Kev ntsuas ntau: tsawg dua 120 degree, hauv 7 metersTemperature: - 15 ~ +70Dimension: 32*24 mm, nrug nruab nrab ntawm cov ntsia hlau 28mm, M2, Lens dimension hauv txoj kab uas hla: 23mm

2. Vaum thiab ntsuas kub: DHT22 (AM2302)

Tus nqi qis 3 txog 5V lub zog thiab I/O2.5mA siv tam sim no thaum hloov pauv (thaum thov cov ntaub ntawv) Zoo rau 0-100% cov av noo nyeem nrog 2-5% qhov tseeb Zoo rau -40 txog 80 ° C ntsuas kub ± 0.5 ° C raug Tsis muaj ntxiv tshaj li 0.5 Hz tus qauv piv txwv (ib zaug txhua 2 vib nas this) Cov tsheb npav ib leeg yog siv rau kev sib txuas lus ntawm MCU thiab DHT22, nws raug nqi 5ms rau kev sib tham ib zaug.

3. Txhuam Txhuam DC Lub Cev Tsav Tsheb Txiav QR50E

Tus nqi qis thiab ntau yam 12V 5W Rating280l/H twj tso kua mis tuaj yeem tswj ntau hom kev daws teeb meem suav nrog dej ntsev (brine) thiab roj ntawm ntau yam kev ntsuas

4. DC 12V roj teeb/ fais fab mov

Kauj Ruam 4: Yuav Ua Li Cas Siv Txoj Cai thiab Kev Sib Txuas

Txoj Cai:

  1. Clone qhov chaw cia khoom.
  2. Luam Code/html rau/var/www/html
  3. Hauv Code nplaub tshev, cov ntaub ntawv tseem ceeb tuaj yeem ua tiav.
  4. Yog tias koj hloov tus lej nkag/tso tawm tus lej tus lej, koj tuaj yeem siv CMake los tsim kho cov ntaub ntawv tseem ceeb.
  5. Qhib browser nkag mus rau qhov chaw nyob ntawm raspberryPi txhawm rau nkag mus rau tus neeg siv interface.

Kev Sib Txuas:

Peb siv WiringPi tus lej hauv peb tus lej, li no:

zog GPIO: 4.

lub cev GPIO: 3.

PIR sensor GPIO: 0.

DHT22 sensor GPIO: 7.

Kauj ruam 5: Kev teeb tsa

Raws li peb txoj haujlwm koom tes nrog Mysql, Php, web-server, muaj ntau qhov lus txib los teeb tsa chaw ua haujlwm raws li hauv qab no:

Txheeb xyuas raspberry pi system tau hloov kho tshiab

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

Txhim kho apache2, php, mysql txhawb nqa

sudo apt -tau nruab apache2 -y

sudo apt-tau nruab php7.0

sudo apt-tau nruab mysql-server

sudo apt-tau nruab mysql-client

sudo apt-tau txais default-libmysqlclient-dev

Tom qab txhim kho kev txhawb nqa rau ib puag ncig, database thiab cov lus cuam tshuam yuav tsum tau tsim los txhawm rau nyeem thiab sau cov ntaub ntawv.

Yog tias koj xav tsim tus lej tshwj xeeb nkag mus es tsis siv 'hauv paus', koj tuaj yeem yooj yim hla cov lus txib hauv qab no:

Tsim tus neeg siv tshiab npe hu ua 'pi'

sudo mysql -u hauv paus rau nkag mus rau mysql database.

mysql> Siv mysql;

mysql> Tsim tus neeg siv 'pi'@'localhost' IDENTIFIED BY '';

mysql> YOOJ YIM YOOJ YIM YOOJ YIM RAU *. * TO 'pi'@'localhost';

mysql> Hloov kho tus neeg siv SET plugin = 'mysql_native_password' YUAV UA LI CAS Tus Neeg Siv = 'pi';

mysql> NTSEEG NTSEEG NTAWV;

mysql> tawm;

service mysql rov pib dua

Tsim database rau raspberry pi

mysql> tsim database sensor;

mysql> siv sensor;

mysql> tsim cov lus th_sensor (lub npe char (20) tsis yog thawj qhov tseem ceeb, tus nqi ntab (10, 2) tsis yog null, tus nqi 2 ntab (10, 2);

mysql> tawm;

Tam sim no koj tuaj yeem luam/Code/html nplaub tshev rau lub neej ntawd localhost directory as/var/www/html.

Tsim cov ntawv sau rau kev pib ua haujlwm thaum lub pi qhib.

Piv txwv li, tsim cov ntaub ntawv npe ua boot.desktop nyob rau hauv kev taw qhia:.config/autostart/

Cov ntsiab lus ntawm cov ntaub ntawv raws li hauv qab no:

[Desktop nkag]

Hom = Daim Ntawv Thov

Lub npe = testboot

NoDisplay = muaj tseeb

Exec = xxx/xxx/xx./main

"Xxx/xxx/xx" yog cov npe ntawm koj cov ntaub ntawv tseem ceeb.

Thaum kawg, tom qab rov pib dua koj pi, koj tuaj yeem qhib koj lub vev xaib kom pom lub interface.

Kauj Ruam 6: PCB Tsim

PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim

Schematic thiab PCB Peb xaiv Orcad capture thiab PCB editor los kos PCB.

Sensors Circuit:

Thawj cov ntaub ntawv ntawm schematic. Thov qhib cov ntawv no los ntawm Orcad Capture.

Thawj daim ntawv ntawm PCB. Thov qhib cov ntawv no los ntawm PCB Editor.

Cov txheej txheem ntawm cov ntsuas hluav taws xob tau muab los saum toj no nrog rau cov ntaub ntawv PCB. 16 tus pin txaus rau peb txoj haujlwm, yog li peb tsuas yog siv lub taub hau nrog 16 Pins.

J2 yog rau PIR sensor

J3 yog rau cov av noo & ntsuas kub

J4 yog rau GPIO

R1 thiab R2 yog cov rub tawm cov neeg tawm tsam

D1 LED yog rau kev ntsuas lub cev. Lub teeb liab no yog siv los tswj lub cav.

D2 LED yog rau kev soj ntsuam. Nws yuav qhia yog tias lub Circuit Court ua haujlwm.

Tsav Tsheb Tsav Tsheb:

Thawj cov ntaub ntawv ntawm schematic. Thov qhib cov ntawv no los ntawm Orcad Capture.

Thawj daim ntawv ntawm PCB. Thov qhib cov ntawv no los ntawm PCB Editor.

Schematic thiab PCB rau Tsav Tsav

Schematic of Motor tsav Circuit yog muab saum toj no nrog rau cov ntaub ntawv PCB

J1 yog rau Cov Khoom Siv Hluav Taws Xob.

J2 yog rau Tsav.

J3 yog rau Tswj lub teeb liab uas los ntawm GPIO.

J4 yog rau hloov.

Q1 yog tswj lub cav.

D2 LED yog los xyuas seb lub Circuit Court ua haujlwm zoo li cas.

Kauj Ruam 7: Txheeb Xyuas Kev Tswj Dej Num Ntawm Qhov System

Xav paub ntau ntxiv Flow Graph ntawm System
Xav paub ntau ntxiv Flow Graph ntawm System

Cov ntsiab lus ntawm cov teeb liab ntws hauv tag nrho cov kab ke nrog rau lub sijhawm qeeb, piv txwv thiab rov ua dua tshiab thiab cov txheej txheem tsheb npav siv tau muab rau saum toj no txhawm rau nkag siab qhov system.

raws li ib txwm ntxiv cov lus qhia rau kev txhim kho thiab kev hloov kho tau zoo siab tos txais:)

Kauj ruam 8: Code

Cov lej pob tau muab tso rau hauv.zip cov ntaub ntawv uas koj tuaj yeem siv los rho tawm thiab sau ua ke hauv koj li raspberry pi.

Peb siv GitHub raws li peb qhov kev tswj hwm software raws li nws yog pub dawb, yooj yim los tswj thiab tso tawm cov ntawv tshiab sau tag nrho cov kev hloov pauv tau ua rau txoj haujlwm.

Cov txheej txheem ntawm cloning pob thiab suav nrog siv 'ua' cov lus txib yuav tsum yooj yim dua piv rau coding txhua kab (nws nyuaj rau sau ntau hom kev cai rau ntau yam khoom thiab ua haujlwm hauv ntau hom lus hauv cov ntaub ntawv sib txawv).

Kev tsis lees paub: Qhov no yuav tsum tsis txhob muab coj los tshaj tawm lossis txo qis rau lwm lub vev xaib, raws li kuv ntseeg tias peb tau qhib siab thiab muaj lub zej zog paub tab ua haujlwm ua ke txhawm rau txhim kho yav tom ntej zoo dua me ntsis:)

Vam tias koj txaus siab tsim lub phiaj xwm no ntau npaum li peb tau ua:)

Cheers!

Pom zoo: