Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: Cov Khoom thiab Cov Khoom Xav Tau
- Kauj Ruam 2: Kauj Ruam 2: Nqe Lus Teeb Meem
- Kauj Ruam 3: Kauj Ruam 3: Tsab Ntawv tsa suab Sensor Configuration
- Kauj Ruam 4: Kauj Ruam 4: LCD Module Zaub
- Kauj Ruam 5: Kauj Ruam 5: Tsav Tsheb Servo Module
- Kauj Ruam 6: Kauj Ruam 6: Motion Sensor Camera
Video: Ntse Tsev Txheej Txheem: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Cov lus qhia no yuav pab piav qhia yuav teeb tsa thiab siv peb li Smart Home System los ntawm kev siv Matlab software thiab Raspberry Pi kho vajtse. Qhov kawg ntawm cov lus qhia no, koj yuav tsum muaj peev xwm siv peb cov khoom tau yooj yim!
Kauj Ruam 1: Kauj Ruam 1: Cov Khoom thiab Cov Khoom Xav Tau
- Raspberry Pi
- Daim ntawv qhia zaub mov (x2)
- PIR Tsab ntawv tsa suab sensor
- LCD Module
- LED Teeb
- Capacitor
- Raspberry Pi Lub Koob Yees Duab
- Micro Servo Tsav
- Ob Chav Xaim Xov (20)
Kauj Ruam 2: Kauj Ruam 2: Nqe Lus Teeb Meem
Cov teeb meem uas peb cov khoom tau sim daws yog phau ntawv tswj lub teeb, tswj qhov kub hauv tsev, thiab ua kom lub zog muaj zog. Peb tsom mus rau tus nqi zog uas lub tsev nruab nrab siv, thiab peb xav nrhiav txoj hauv kev los txo kev siv zog. Teeb tau tso tseg thiab qhov ntsuas cua sov tsis tsim nyog suav nrog kev siv lub zog tsis tsim nyog. Lub teeb yuav txav mus rau qhov chaw uas lawv kaw thaum chav tsis muaj chaw nyob, thiab lub ntsuas cua sov hloov mus rau qhov ntsuas kub ib puag ncig zoo raws li kev ntsuas kub sab nraum zoov.
Kauj Ruam 3: Kauj Ruam 3: Tsab Ntawv tsa suab Sensor Configuration
Lub suab ntsuas tau txuas nrog 3.3V fais fab tus pin, tus pin hauv av, thiab tus lej digital ntawm qhov koj xaiv. Lawv txuas nrog VCC, GND, thiab OUT cov chaw nres nkoj ntawm cov lus tsa suab sensor, feem. Lub suab ntsuas yuav pom thaum ib tus neeg nyob ze thiab qhib lub LED kom qhia tau tias lub teeb tau qhib. Thaum cov lus tsa suab tsis pom lawm, LED yuav tua nws tus kheej. Cov cai yog raws li hauv qab no:
thaum muaj tseeb
motionDetected = readDigitalPin (rpi, 3);
yog motionDetected == 1
writeDigitalPin (rpi, 16, 1)
lwm tus
writeDigitalPin (rpi, 16, 0)
kawg
kawg
Kauj Ruam 4: Kauj Ruam 4: LCD Module Zaub
LCD siv cov ntaub ntawv ntsuas kub los ntawm cov ntaub ntawv qhia huab cua nyob hauv internet. LCD module qhia qhov ntsuas kub tam sim no. Hauv Matlab, qhov ntsuas kub tau nyeem thiab tom qab ntawd dhau los yog lub voj los txiav txim siab ntau npaum li cas los kho qhov ntsuas kub hauv tsev. Cov cai yog raws li hauv qab no:
url = 'https://forecast.weather.gov/MapClick.php? lat = 35.9606 & lon = -83.9207 & FcstType = json';
cov ntaub ntawv = webread (url);
a = data.currentobservation. Temp;
fprintf ('Kub sab nraum zoov yog %s / n', a)
x = str2num (a);
yog x80
fprintf ('Tig lub ntsuas cua qis dua 15 degrees')
writeDigitalPin (rpi, 26, 1) %tig teeb
elseif x> 75 && x <80
fprintf ('Teem lub ntsuas sov tawm / n')
writeDigitalPin (rpi, 26, 1) %tig teeb
lwm x55
fprintf ('Tig lub ntsuas cua kom siab li 10 degrees / n')
writeDigitalPin (rpi, 26, 0) %tua teeb
lwm x45
fprintf ('Tig lub ntsuas sov kom txog 20 degrees / n')
writeDigitalPin (rpi, 26, 0) %tua lub teeb
lwm x40
fprintf ('Tig lub ntsuas cua sov mus txog 25 degrees / n')
writeDigitalPin (rpi, 26, 0) %tua teeb
lwm x30
fprintf ('Tig lub ntsuas cua kom siab li 35 degrees / n')
lwm tus
fprintf ('Tig lub ntsuas sov mus txog 65 degrees / n')
kawg
Kauj Ruam 5: Kauj Ruam 5: Tsav Tsheb Servo Module
Motor Servo Module yog los sawv cev rau lub peev xwm qhib thiab kaw qhov muag tsis pom. Thaum lub tsev yuav tsum tau txias, cov qhov muag tsis pom yuav kaw kom tso cua sov kom tsawg. Lub servo txiav txim siab yuav ua dab tsi los ntawm kev tau txais cov tswv yim los ntawm cov neeg siv cuam tshuam nrog cov ntawv qhia zaub mov ntawm kev xaiv. Cov cai rau lub cav yog raws li hauv qab no:
s = servo (rpi, 3) cov
writeDigitalPin (rpi, 4, 1)
sau Txoj Haujlwm (s, 45)
temp_sys = ntawv qhia zaub mov ('Koj xav li cas?') %temp kho
yog temp_sys == 1 %kub
writeDigitalPin (rpi, 26, 1) %tig teeb
writePosition (s, 0) %tig lub cav CW/CCW
kaw qhov muag tsis pom, tua teeb
elseif temp_sys == 2 %txias
writeDigitalPin (rpi, 26, 0) %tua teeb
writePosition (s, 180) %tig lub cav CCW/CW
qhib qhov muag tsis pom, qhib teeb
elseif temp_sys == 3 %yog lawm
fprintf ('Tswj xyuas qhov xwm txheej kub. / n')
kawg
Kauj Ruam 6: Kauj Ruam 6: Motion Sensor Camera
Lub koob yees duab ntsuas lub koob yees duab yuav yees duab ntawm cov uas nkag los lossis tawm hauv chav. Peb tau xaiv qhov no los ua kev nyab xeeb ntxiv rau cov uas xav paub txog leej twg tau nyob hauv lawv lub tsev. Thaum lub suab ntsuas pom lub suab, Matlab code qhia lub koob yees duab kom thaij duab thiab tso saib nws. Cov cai yog raws li hauv qab no:
kuv = 0
cam meej
cam = lub koob yees duab (rpi);
thaum kuv == 0
snapshot (cam); %meej cov duab tsis
img = snapshot (cam);
dluab (img);
kawg
Pom zoo:
4 txog 20 MA Cov Txheej Txheem Txheej Txheem Calibrator DIY - Kev Siv Hluav Taws Xob: 8 Kauj Ruam (nrog Duab)
4 txog 20 MA Cov Txheej Txheem Txheej Txheem Calibrator DIY | Kev Siv Hluav Taws Xob: Cov cuab yeej siv hluav taws xob thiab khoom siv hluav taws xob yog thaj chaw kim heev thiab nws tsis yooj yim kawm txog nws yog tias peb tsuas yog kawm tus kheej lossis nyiam ua haujlwm. Vim li ntawd kuv chav kawm ntsuas hluav taws xob thiab kuv tsim qhov peev nyiaj qis no 4 txog 20 mA
Linefollower HoGent - Txheej txheem txheej txheem: 8 Kauj Ruam
Linefollower HoGent - Syntheseproject: Voor het vak syntheseproject kregen peb de opdracht een linefollower te maken. Nyob rau hauv deze instructable zal ik uitleggen hoe ik deze gemaakt heb, en tegen welke problemen ik o.a ben aangelopen
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: 8 Kauj Ruam
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: Kev thauj mus los thiab/lossis ntim khoom ntawm cov khoom thiab cov khoom hauv thaj chaw ua haujlwm tau ua tiav siv cov kab ua siv siv txoj siv thauj khoom. Cov menyuam no pab txav cov khoom ntawm ib kis mus rau lwm qhov nrog qhov nrawm. Qee qhov kev ua lossis kev qhia paub ua haujlwm yuav yog
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): 9 Cov Kauj Ruam (nrog Duab)
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): Cov ntaub ntawv:-Ob tus tub ntxhais kawm Muaj cov khoom lag luam tsim qauv hauv Kortrijk (Belgium) tuaj nrog cov cuab yeej nyeem ntawv no. Peb pib raws qhov tsim qauv uas twb muaj lawm thiab tau txhim kho nws mus rau lwm qhov kev tsim. Kev nyeem ntawv-cuab yeej thaum xub thawj tau raug txhim kho rau cli & nte
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim Qauv-Txheej Txheem Txheej Txheem Tswj- Loop Nqe Lus: 8 Kauj Ruam
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim-Txheej Txheem Txheej Txheem- Loop Nqe Lus: Cov Txheej Txheem Txheej Txheem- Loop Nqe Lus Los ntawm tshooj no, koj yuav ntsib nrog qhov tseem ceeb thiab muaj zog paub txog-Loop Nqe Lus. Ua ntej nyeem tshooj no, yog tias koj xav kos 10,000 lub voj voos hauv txoj haujlwm, koj tsuas tuaj yeem ua nrog lub suab