Cov txheej txheem:

Khw Vac Auto Hloov (tsis xav tau Arduino): 7 Kauj Ruam
Khw Vac Auto Hloov (tsis xav tau Arduino): 7 Kauj Ruam

Video: Khw Vac Auto Hloov (tsis xav tau Arduino): 7 Kauj Ruam

Video: Khw Vac Auto Hloov (tsis xav tau Arduino): 7 Kauj Ruam
Video: Tsis Tau Txaus Koj | Kong Chue (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Khw Vac Auto Hloov (tsis xav tau Arduino)
Khw Vac Auto Hloov (tsis xav tau Arduino)

Raws li ntau tus neeg ua haujlwm nyiam ua haujlwm ntoo, Kuv muaj lub khw nqus tsev txuas rau kuv lub rooj pom thiab txhua lub sijhawm kuv xav ua qhov txiav kuv yuav tsum tig nws ua ntej kuv tig lub kaw. Qhov no yuav zoo li dag tab sis nws mob hauv caj dab kom tig lub khw muag khoom tawm thiab tawm ntau zaus raws li lub rooj pom.

Muaj qhov kev daws teeb meem tam sim no rau qhov ntawd: "Khw tsis siv lub tshuab hloov pauv". Nov yog lub cuab yeej uas koj ntsaws koj lub rooj pom thiab koj lub khw muag khoom. Thaum cov cuab yeej siv tau qhib (lub rooj pom hauv qhov no) nws tso cai rau lub zog ntws hauv cov cuab yeej qhev (lub khw muag khoom).

Koj yuav pom tias muaj ntau ntau DIY cov haujlwm los ua qhov pib hloov ntawm koj tus kheej. Koj tsuas yog xav tau lub ntsuas hluav taws xob tam sim no, xa tawm thiab arduino. … Tos, siv cov arduino los ua qhov kev tswj hwm yooj yim … yuav tsis zoo li siv bazooka tua yoov? Tej zaum.

Hauv ible no kuv tshaj tawm qhov yooj yim, tseem muaj txiaj ntsig, txoj hauv kev los tsim koj tus kheej cov cuab yeej zoo ib yam, yam tsis xav tau Arduino!

Kev tsis lees paub: Kuv tsis yog tus kws tsim hluav taws xob thiab kom ntseeg tau tias lub Circuit Court kuv tsim tau tuaj yeem ua kom zoo dua. Thov tsis txhob ua siab deb los tawm tswv yim:)

Kauj Ruam 1: Cov khoom siv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Koj yuav xav tau cov khoom siv hauv qab no:

  • ib qho thaiv nrog tsawg kawg 2 tus poj niam phab ntsa ntsaws thiab ib tus txiv neej txuas (Kuv tau hloov kho lub qub "lub zog lim");
  • ib qho ASC712C tam sim no sensor module;
  • ib qho relay module;
  • ib tus neeg sib piv (Kuv siv MAX903);
  • ob peb resistors: 330Ω, 4.7kΩ, 2 x 1kΩ;
  • ib lub hwj chim (txhua tus nqi yuav ua);
  • ob 470µF electrolytic capacitors;
  • ib NPN transistor (nto moo 2N2222 yuav ua);
  • ib qho 5V DC fais fab mov (Kuv hloov kho lub xov tooj them nyiaj);
  • ib daim ntawv me me (koj tuaj yeem luam koj tus kheej lub voj voog);
  • solder, kab xev hluav taws xob, ntsws tubing, xov hlau thiab lwm yam.

Thiab qee cov cuab yeej yooj yim:

  • soldering hlau;
  • pliers;
  • lwm yam.

Kauj Ruam 2: Npaj daim ntawv kaw

Npaj daim ntawv kaw
Npaj daim ntawv kaw

Kuv txiav txim siab hloov kho qhov "lim dej" vim tias lub thawv ntawv yog qhov loj me, nws twb muaj 4 lub qhov hluav taws xob, ib lub qhov nkag thiab lub rocker qhib/tawm hloov.

Kuv xub tshem tag nrho cov khoom siv hluav taws xob tsis muaj txiaj ntsig los ntawm sab hauv (Kuv pov nws rau hauv "tej zaum yuav muaj txiaj ntsig tom qab" hauv).

Muab nws ntxuav me ntsis.

Hloov lub qhov ntsaws ntsaws nrog ib qho uas muaj cov xaim hlau siab dua.

Kauj ruam 3: AC thaiv

AC thaiv
AC thaiv
AC thaiv
AC thaiv
AC thaiv
AC thaiv
AC thaiv
AC thaiv

Ua ntej npaj 5VDC lub zog siv hluav taws xob, sib txuas ib khub ntawm 18 gage xov hlau mus rau qhov nkag ntawm phab ntsa txuas thiab tiv thaiv kev sib txuas nrog cov tubing lossis kab xev hluav taws xob, txiav lub xov tooj txuas thiab peele qhov kawg ntawm cov xov hlau, kos qhov zoo.

Xyuas kom tseeb tias N lub xov tooj ntawm lub qhov nkag nkag tau txuas nrog N ntawm ob qho chaw qhev, tus tswv lub qhov hluav taws xob thiab rau 5VDC lub zog siv. Kuj xyuas kom tseeb tias GND xaim ntawm lub qhov nkag tau txuas rau ob qho chaw ntawm txhua qhov hluav taws xob thiab rau rooj plaub hlau. L kab xaim ntawm qhov nkag yuav tsum tau muab faib ua 3 kab: ib qho yuav mus rau qhov ntsuas tam sim no, ib qho txuas mus rau lwm qhov thiab ib qho rau 5VDC lub zog siv.

Cov xaim xav tau los ntawm tus tswv lub qhov hluav taws xob L, tom qab ntawd peb yuav txuas nws mus rau qhov ntsuas tam sim no

Thiab cov xaim yuav tsum tau tawm ntawm tus qhev qhov hluav taws xob L, nws yuav txuas nrog lub txuas.

Kuv siv qhov hloov pauv rocker uas twb muaj lawm los ntxiv qhov tshwj xeeb: phau ntawv hla dhau. Nws yuav tso cai rau kuv qhib tus qhev qhov hluav taws xob manually thaum twg kuv xav tau. Nws tau txuas nrog ua ke nrog kev xa xov.

Kauj Ruam 4: Txoj Kev Xav

Theory
Theory
Theory
Theory
Theory
Theory
Theory
Theory

Raws li cov ntawv teev tseg, qhov ntsuas tam sim no ACS712C tso tawm 100mV/A muaj VCC/2 sawv cev rau 0A.

Txij li thaum peb tab tom ua haujlwm nrog Hloov Hloov Tam Sim No (AC), thiab VCC yuav tsum yog 5V, lub ntsuas pa yuav muab rau peb 60Hz sine-wave voltage nyob rau ntawm 2.5V nrog qhov dav sib npaug rau qhov tam sim no kos los ntawm tus kws tshaj lij.

Txhawm rau tuaj yeem hloov pauv lub teeb liab ntawd mus rau hauv kev nqis tes peb xav tau ob peb kauj ruam:

  1. sib piv qhov hluav taws xob nrog qhov siv, rau qhov peb yuav siv tus piv txwv MAX901 thiab qhov kev siv yuav muab los ntawm qhov sib txawv ntawm qhov faib hluav taws xob (lub hwj chim). Cov txiaj ntsig ntawm qhov sib piv yuav yog 0V thaum tsis muaj kev nkag siab tam sim no thiab 5V 60Hz square yoj lwm yam;
  2. hloov lub xwmfab yoj mus rau qhov yuav luag-kab nkhaus siv thawj qhov xaj RC lim;
  3. smoothen ntau dua qhov "yuav luag-kab nkhaus" nrog qhov xaj thib ob RC lim;
  4. negate lub teeb liab nrog NPN transistor (TSIS muaj nuj nqi) vim hais tias cov qauv xa tawm tau ua haujlwm thaum nws cov tswv yim qis (0V).

Kuv tau teeb tsa tus nqi RC siab heev txhob txwm ua vim tias lawv yuav ua qhov kev xav tau: ncua sijhawm. Hauv qhov xwm txheej no, kev xa tawm qhib me ntsis ntau dua li ib pliag tom qab qhov tam sim no tau hnov, thiab nws ua rau tib lub sijhawm ua haujlwm tom qab tsis muaj qhov hnov.

Xav txog thaum koj qhib lub tshuab muaj zog xws li lub rooj pom, thaum lub sijhawm cov hniav txav mus nrawm nws thim tag nrho lub zog. Nws yog qhov zoo dua los tos rau cov hniav nrawm los daws teeb meem, thiab kev noj kom nqes ua ntej pib lub cav hnyav thib ob zoo li lub khw muag khoom, qhov no koj txo txoj hauv kev kom ntau dhau koj li AC Circuit.

Thiab, thaum peb tua lub rooj pom, nws yog qhov zoo tshaj kom lub khw muag khoom ua haujlwm me ntsis sijhawm ntxiv los nqus tag nrho cov hmoov av uas seem.

Kauj ruam 5: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court

Koj tuaj yeem sim qhov Circuit Court ntawm daim ntawv qhia zaub mov yog tias koj nyiam.

Soldering cov khoom yuav tsum tsis sawv cev rau kev sib tw loj.

Txuas txhua yam ua ke, pawg thawj coj saib xyuas, lub ntsuas hluav taws xob thiab kev xa tawm thiab qhib nws. Nws yog ib qho tseem ceeb los teeb tsa qhov siv raug/tus nqi pib rau tus sib piv los ntawm kev hloov lub hwj chim kom txog thaum lub sij hawm uas cov relay tawm mus (xyuas kom tsis muaj cov cuab yeej txuas nrog tus tswv qhov hluav taws xob). Txoj hauv kev no koj "qhia rau tus neeg sib piv paub" thaum nws tuaj yeem "txiav txim siab" uas tsis muaj tam sim no raug kos.

Kuaj nws: txuas cov khoom siv rau lub qhov hluav taws xob (piv txwv li siv tes ua) thiab lwm qhov rau lub qhov hluav taws xob qhev (lub teeb rooj nrog lub teeb qhib rau piv txwv). Khiav tus tswv cuab, ib pliag tom qab cov cuab yeej qhev yuav tsum qhib.

Yog tias nws tsis ua haujlwm raws li qhov xav tau koj tuaj yeem sim daws teeb meem nrog voltmeter. Kev kwv yees: koj tab tom ua haujlwm nrog 5VDC.

Xeem Kev cia siab
thaum tus tswv tawm thaum tus tswv nyob
Qhov hluav taws xob nruab nrab ntawm "IN -" (siv/qhov pib) thiab "IN +" (tso tawm ntawm qhov ntsuas tam sim no) ntawm tus sib piv 0.00V > 0.00VAC (voltmeter hauv AC hom)
Qhov hluav taws xob nruab nrab ntawm GND thiab qhov tso tawm ntawm tus sib piv 0.00V 2.50VCC (voltmeter hauv CC hom)
Qhov nruab nrab ntawm qhov tso tawm ntawm thawj qhov kev txiav txim RC lim thiab GND 0.00V > 0.00VCC
Qhov nruab nrab ntawm qhov tso tawm ntawm qhov kev txiav txim thib ob RC lim thiab GND 0.00V > 0.00VCC
Qhov hluav taws xob nruab nrab ntawm cov tswv yim ntawm tus qauv txuas thiab GND 5.00 VCV 0.00V

Kauj Ruam 6: Rwb thaiv tsev thiab kaw

Rwb thaiv tsev thiab kaw
Rwb thaiv tsev thiab kaw
Rwb thaiv tsev thiab kaw
Rwb thaiv tsev thiab kaw
Rwb thaiv tsev thiab kaw
Rwb thaiv tsev thiab kaw

Rwb thaiv txhua qhov nrog kab xev hluav taws xob lossis nqaim tubing thiab kuaj xyuas tias nws tseem ua haujlwm raws li tsim;)

Muab nws tso rau hauv lub thawv thiab kaw nws.

Koj tuaj yeem sau daim ntawv rau sab xub ntiag.

Kuaj ib zaug ntxiv. Koj ua tiav!

Kauj Ruam 7: Xaus

Xaus
Xaus

Txoj haujlwm no lom zem thiab kawm tau zoo, qhov no yog qhov ntxiv rau kuv lub khw muag khoom me, kuv nyiam nws heev.

Kom paub tseeb tias qhov kev tsim hluav taws xob no tuaj yeem txhim kho, yog tias koj muaj lub tswv yim yuav ua li cas, thov qhia rau kuv paub hauv cov lus hauv qab no:)

Ua tsaug rau koj nyeem.

Pom zoo: