Kunyangwe dambudziko iri risingakodzeri kutaurwa kune yemagetsi chena chena, asi kune vanotanga microcontroller shamwari, kune vanhu vakawandisa vanobvunza mubvunzo uyu. Sezvo ini ndiri wekutanga, ndinodawo kusuma muchidimbu kuti relay chii.
A relay is switch, uye switch iyi inodzorwa necoil mukati mayo. Kana iyo coil ikasimbiswa, relay inokwevera mukati uye switch inoita.
Vamwe vanhu vanobvunzawo kuti koiri chii? Tarisa mufananidzo uri pamusoro, pini 1 nepini 2 ndiwo mapini maviri ecoil, pini 3 nepini 5 apinda, uye pini 3 nepini 2 hazvisi. Ukabaya pini 1 nepini 2, unonzwa relay ichienda, uye pini 3 nepini 4 zvinoenda.
Semuenzaniso, kana iwe uchida kudzora pa-off yemutsara, unogona kutyora nemaune mutsara, imwe mugumo yakabatana nemakumbo matatu, imwe mugumo yakabatana nemakumbo mana, uyezve nekusimbisa uye kubvisa coil. , unogona kudzora on-off yemutsara.
Yakawanda sei voltage inoiswa pini 1 uye pini 2 yecoil?
Dambudziko iri rinoda kutarisa kumberi kwerelay yauri kushandisa, seyandiri kushandisa izvozvi, unoona kuti i05VDC, saka unogona kupa 5V kucoil yerelay iyi, uye relay ichadhirowa.
Nzira yekuwedzera sei coil voltage? Takazosvika padanho.
Iwe unogona zvakananga kushandisa maoko maviri kubata iyo 5V uye GND waya zvakananga kune maviri mapini eiyo relay coil, iwe uchanzwa ruzha.
Saka tinomugonesa sei ne microcontroller? Isu tinoziva kuti imwechete chip microcomputer pini inogona kuburitsa 5V, haina kufambidzana zvakananga neiyo imwechete chip microcomputer pini relay coil, zvakanaka?
Mhinduro ndeyechokwadi kwete. Nei zvakadaro?
Uchiri mutemo waOhm.
Shandisa multimeter kuyera kuramba kweiyo relay coil.
Semuenzaniso, kushorwa kwekoil yangu yerelay ndeye 71.7 ohms, kuwedzera 5V voltage, ikozvino 5 yakakamurwa ne71.7 inenge 0.07A, iyo 70mA. Rangarira, iyo yakanyanya kuburitsa pini yakajairwa yeimwe chip microcomputer yedu ndeye 10mA yazvino, uye iyo yakanyanya kuburitsa pini hombe iripo ndeye 20mA ikozvino (izvi zvinogona kureva dhetabheti yeimwe chip microcomputer).
Wona, kunyangwe iri 5V, iyo yekubuda ikozvino inogumira, uye haigone kusvika ikozvino yekutyaira relay, saka haigone kutyaira zvakananga relay.
Ndipo paunofanira kufunga chimwe chinhu. Semuenzaniso, shandisa triode S8050 drive. Dhiyagiramu yedunhu iri sezvinotevera.
Tarisa kune iyo S8050 dhatabheti, S8050 iNPN chubhu, iyo yakanyanya kutenderwa ikozvino yeICE i500mA, yakakura kwazvo kupfuura 70mA, saka hapana zvachose dambudziko neS8050 drive relay.
Kana iwe ukatarisa pamufananidzo uri pamusoro, ICE ndiyo inoyerera kubva kuC kuenda kuE, inova iripo mumutsara ine relay coil. NPN triode, heino switch, MCU pini inobuda 5V yakakwirira level, ICE pane relay ichadhirowa; SCM pini inoburitsa 0V yakaderera mwero, ICE yakagurwa, iyo relay haina kudhirowa.
Nenzira imwecheteyo, iyo solenoid valve inewo mutoro nekupikisa kuduku uye simba guru, uye inofanirwawo kusarudza zvikamu zvakakodzera zvekutyaira maererano nepamusoro peOhm's law method.
Nguva yekutumira: Jul-12-2023