Cov txheej txheem:

HALL MULTIPLEXER: 4 Kauj Ruam
HALL MULTIPLEXER: 4 Kauj Ruam

Video: HALL MULTIPLEXER: 4 Kauj Ruam

Video: HALL MULTIPLEXER: 4 Kauj Ruam
Video: Украсьте залы текстами песен HD | Рождественские песни и колядки 2024, Hlis ntuj nqeg
Anonim
HALL MULTIPLEXER
HALL MULTIPLEXER
HALL MULTIPLEXER
HALL MULTIPLEXER

(Hloov kho Lub Tsib Hlis 24 2019, kev hloov kho yav tom ntej yuav ua raws)

Nyob zoo. Kuv nyeem ntawm lwm lub rooj sab laj, (tsis tuaj yeem nco qhov twg?), Tus txiv leej tub no uas tau nrhiav txoj hauv kev ntse los ntsuas qib ntawm qee qhov "kua" hauv qhov loj, (tob), tank? Qhov teeb meem rau nws yog qhov xav tau ntau dua 40pcs. ntawm cov sensors, thiab hom twg? Nws nug txog kev siv lawv "HALL-effect" sensors. Yog li qhov teeb meem yog cable'ing. Yuav muaj 40+ tus coj. Zoo, qhov no ua rau kuv xav txog qhov no! Tsuas yog xav paub Kuv tau pib tshuaj xyuas tus cwj pwm ntawm lawv Halls, (tsis xav tau ncaj qha rau kuv ntawm qhov no tab sis … thaum Nerd zoo li kuv dawm taw ib yam li ntawd, koj tsuas yog tso tsis tau nws). Kuv tuaj nrog cov kev daws teeb meem ntawm kev muaj ntau lub tshuab luam ntawv.

Yog li, TXHUA, pib nrog kev tshawb fawb rau txhua qhov kev daws teeb meem uas twb muaj lawm. Muaj +++ ntawm lawv ob leeg Hall- thiab ntau qhov sib txawv ntawm txhua yam. Los ua ke ob qho no. Kuv tau ua ob qho qauv ntawm cov no.

Tus 1'st kuv hu rau: "Sawv Ib Leeg", Qhov 2'nd kuv hu rau: "Tus Kws Tshaj Lij Tswj"

Kuv tsis tau ua PCB ntawm ib qho ntawm lawv YET, (nyeem tom qab hauv kab lus, vim li cas tseem tsis tau), tsuas yog cov phiaj xwm rau lawv ob leeg thiab PCB-teeb tsa rau "Stand Alone". Tsis muaj tsawg dua, Kuv tau sim qhov ua haujlwm ntawm "Sawv Ib Leeg" ntawm chav tsev tawg.

Kauj Ruam 1: Sawv Ib Leeg Multiplexer

Sawv Ib Leeg Multiplexer
Sawv Ib Leeg Multiplexer
Sawv Ib Leeg Multiplexer
Sawv Ib Leeg Multiplexer
Sawv Ib Leeg Multiplexer
Sawv Ib Leeg Multiplexer

Sawv Ib Leeg.

Ntawm no kuv siv lawv paub 4017 lub xyoo caum txee thiab 555 raws li tus oscillator Kuv pib nrog HALL-chav nrog lub sensor SS49S, (kev tawg), thiab Mosfet's 2N7000.

Kuv tau txuas lawv tech. cov ntaub ntawv ntawm no li PDF thiab ua BMP cov ntaub ntawv thaum kawg, tag nrho cov txheej txheem PCB

Kuv "IDEA" yog txhawm rau txheeb xyuas "Source" ntawm FET rau HALL-sensor GND kom txhawb nws. Thiab tam sim no tau nyeem tawm ntawm HALL thaum cov hlau nplaum qhib nws.

Txheeb xyuas 555 qhov tso tawm 3 rau CLK tus pin 14 ntawm 4017 thiab Q9 (suav tus lej 10) tus pin 11 rau RESET tus pin 15 ntawm 4017 txhawm rau ua kom muaj kev sib txuas txuas ntxiv ntawm 4017. Txuas Q0 (suav tus lej 1) tus pin 3 ntawm 4017 rau sensor 1 rau ob FET GATEs rau T1 thiab T1.1 ntawm tus tiv thaiv, (tus tiv thaiv tej zaum tsis xav tau, tab sis muab tso rau qhov twg los xij), 1'FET T1 DRAIN txuas nrog rau GROUND ntawm HALL sensor, yog li qhib nws. Tom qab ntawv "teeb liab" los ntawm HALL, muab "0V" yog tias cov hlau nplaum ze rau lub sensor. HALL teeb liab txuas rau 2'nd FET T1.1 SOURCE.

DRAIN ntawm FET T1.1 txuas rau LED1 Kathod. Anods ntawm txhua qhov LED tau sib dhos ua ke thiab txuas rau +5V ntawm ib tus tiv thaiv (tsuas yog ib qho LED yuav tau teeb ib zaug, yog li tsuas yog xav tau ib tus tiv thaiv)

Kuv tseem muaj BUZZER txuas ua ke rau LED #8 yog li muab lub tswb ntawm qib qis tshaj.

Thiab voi'la. LED yuav ci thaum lub hlau nplaum nyob ze txaus lub sensor (tab sis tsis zoo li qhov kuv xav kom nws ua)

Tib yam mus rau tag nrho lawv cov sensors feem T2 & T2.1, T3 & T3.1 … thiab lwm yam.

Ua tus oscillator 555 kom khiav nrog qee 10KHz thiab "ntsais" tsis pom.

*Kuv yuav hloov kho tom qab ntawm qhov tseem ceeb ntawm RES & CAP rau 555 oscilator.*

Kuv tsis tau txais nws los laij, VIM LI CAS ?? Nws ua haujlwm zoo, tab sis tom qab rov ua dua, (nrog qee qhov kev hloov pauv), ntawm kaum ob lub sijhawm, Kuv nres, muaj kas fes, luam yeeb. (Kuv paub, tsis ua), thiab kev xav ntawm kuv tus kheej.

Gee … kuv nyeem lawv tech.specs, (zoo li nyeem phau bible, nrog kev hwm nws), Cov txiaj ntsig tau los meej rau kuv los ntawm kev lees txais "qhov tseeb". Cov txuj ci. specs. ntawm lawv cov khoom siv yog "raug" kiag li, kuv qhov kev sib tham yog txhua yam yog lawm, yog li …

Kuv Phem! (Kuv paub tias Koj paub qhov ntawd.)

HALL-sensor SS48E yog ANALOG sensor.

Nrog Vcc +5V thiab tsis muaj qhov sib nqus sib nqus, cov zis yog raws nraim Vol Voltage 2, 5V. Nyob ntawm qhov Polarity ntawm cov hlau nplaum thaum ua kom pom lub ntsej muag, cov zis tawm mus rau ntawm +5V lossis mus rau GND.

Qhov ntawd yog kuv qhov teeb meem. Kuv tsuas yog tsis tuaj yeem tau txais "meej" +V lossis 0V. Kuv tau xaj lwm lub ntsuas "3144" uas yog "LATCHING" yam muaj Qhib Cov Khoom Tso Tawm Cov ntsuas no muaj lub zog ua haujlwm ntawm 4, 5 txog 24V. Tseem tsis tau txais cov no, yog vim li cas kuv thiaj li tsis xaj lawv PCB's ib qho, yuav tsum tau sim cov no ua ntej.

Kuv paub tseeb tias ib tus neeg yuav tawm tswv yim zoo li: "Vim li cas thiaj siv ntau qhov sib npaug ntawm qhov no ?. Koj tsis tuaj yeem mus ncaj nraim rau pem hauv ntej kom pom lawv cov LED los ntawm cov tswv yim ntawm lub sensor?".

Ncaj ncees txaus. Qhov tseeb kuv, raws li tau piav qhia, tau pib qhov no los ntawm kev nqis "cov hlau lead" suav rau lawv cov cim, thiab nrog cov tshuaj no nws tsis ua li ntawd ntau. Qhov tseeb kuv pib nrog "Tus Kws Tshaj Lij Tswj" tab sis thaum khiav txoj kev no kuv dawm ower qhov kev daws teeb meem no tag nrho, (nco ntsoov: Kuv yeej tsis xav tsim qhov no rau kuv tus kheej siv, tab sis tsuas yog cuam tshuam ntawm yam). Yog li, qhov "Sawv Ib Leeg" no tsuas yog "yam" tab sis nws yuav muab qee lub tswv yim rau ib tus neeg rau lawv tus kheej tsim.

Tom qab ntawd kuv pib xav yog tias muaj "YOG" cov txiaj ntsig ntawm kev siv hom kev daws teeb meem no?

Kuv tuaj nrog qee yam: "Yog tias lub ntsuas hluav taws xob nyob ntawm qhov deb ntawm chav tswj hwm, tej zaum yuav muaj teeb meem nrog lawv qhov tsis zoo. Cov ntsuas yog" Qhib Tus Sau "yam thiab nrog qhov tsim nyog rub tawm tus tiv thaiv koj tuaj yeem tau txais ntau qib ntxiv Qhov tseeb Kuv tau ua qhov Ible rau HALL-sensors, tab sis koj tuaj yeem siv txhua yam ntawm lub ntsuas/hloov.

Hloov tshiab: Tsib Hlis 24, Kuv tau siv 47K resistors thiab 0.1uF (100nF) cap.to 555. Tsis tau kuaj xyuas nrog oscill. qhov nquag, tab sis los ntawm qhov muag pom nws zoo li OK., Tsis pom "flickering" pom.

Kuv tau txais lawv "Latching" Halls. Kuv khi lawv ua ke "cov cim" (cov txiaj ntsig) ntawm cov ntsuas tawm ntawm kab. Lawv txhua tus raug khi ua ke ntawm PCB pawg thawj coj saib. Koj tuaj yeem ua qhov no vim tias lawv yog Open Collector outputs thiab tsuas yog ib qho ntawm lawv tau qhib rau ib lub sijhawm.

Khiav zoo meej. Kuv sim nws nrog Neodyme hlau nplaum, 20x10x3mm loj thiab tsis muaj teeb meem hauv txoj kev. Hauv huab cua dawb nws ua haujlwm nkaus xwb, yog li … los ntawm qhov deb ntawm ~ 30mm. Nws yeej ua haujlwm tau zoo nrog qhov nrug deb <25mm.

Tam sim no koj xav tau 10P cable, (10P = 10leads, 1 lead rau txhua lub sensor mus rau Latch, +1 lead rau Vc +5V (common) thiab 1 lead rau Return Signal (common). Koj tuaj yeem siv 10P "tiaj -cable "aka a" ribbon-cable "nrog kev sib txuas IDC-txuas mus rau xaim rau chav nyob.

Koj yuav xav tau PCB me me rau txhua chav "sensor" suav nrog: "sensor" nws tus kheej thiab IDC-txuas. Kuv mam li teeb tsa qhov no tom qab thiab yuav hloov kho nws.

THOV NCO NTSOOV, vim tias kuv tsis pom muaj kev cuam tshuam txuas ntxiv qhov no yog tias nws tsis cuam tshuam leej twg !!

Kauj Ruam 2: Kev Tswj Xyuas Tus Kheej

Prosessor Tswj
Prosessor Tswj

Chav "Prosessor Controlled" unit. Tsis muaj TEST ua tiav YET. Koj tuaj yeem hu hom no ntawm kab I2C. Ntawm no kuv siv tus "Attiny 84" tus kws tshaj lij, (tus tswj hwm yuav ua). ua ke nrog 74HC595. Qhov "Lub tswv yim tseem ceeb" ntawm no yog tias kuv tsuas xav tau 4 lub xov hlau, (+ ob txoj kab hluav taws xob uas tuaj yeem dhia tawm ntawd).

4 cov xov hlau yog: DATA, CLOCK, STROBE (LATCH), RETURN. Koj tuaj yeem khi STROBE (LATCH) ua ke nrog CLOCK-kab hauv qhov tau txais qhov kawg yog li muaj ib kab tsawg dua los kos, tab sis qhov kev daws teeb meem no yuav ua rau koj mus rau hauv qhov haujlwm kom sib tham qee qhov, vim tam sim no qhov "tawm" hauv chav txais yuav ua raws CLOCK. Qhov no TSIS tau pom zoo vim tias yog koj "daisy-saw" ntau tau txais cov khoom Koj yooj yim poob qhov kev tswj hwm hauv txoj haujlwm "peb yuav mus qhov twg?"

Kauj Ruam 3: Txoj Kev RETURN

RETURN path. Because the "Latching" sensor 3144 muaj "open collector" output, lawv txhua tus tuaj yeem "khi" ua ke yog li xav tau ib kab nkaus xwb.

Ewery "chav nyob deb" ntsuas rau 8 HALL cov tswv cuab. Koj tuaj yeem siv ntau chav nyob deb hauv "teeb tsa daisy-saw" teeb.

Nws raug nquahu kom muab "dummy-load" rau hauv wery chav nyob kawg (lub 8'th), lub ntsuas cua.

Ua qhov no koj tuaj yeem ua tau hauv koj qhov program lees paub tias DATA tau hla txhua chav.

NCO TSEG: yog tias chav tswj hwm tseem ceeb nyob deb, koj xav tau kab-tsav tsheb rau cov cim, (Kuv tsis muaj cov ntaub ntawv ower no?).

Txoj kev RETURN yuav xav tau sab nrauv "rub-up" tus tiv thaiv ntawm hais qee ~ 10's ntawm Kohms, (tus kws tshaj lij ua-nyob rau hauv Pull-Up resistor yog heev "HIGH" ntawm impedance thiab tej zaum yuav tsis zoo txaus ntawm no).

Kuv yuav rov qab los tom qab thaum kuv tau txais lawv "Latching Halls" thiab tau sim lawv.

Tom qab kuaj lawv kuv yuav ua rau lawv kawg PCB-teeb tsa thiab hloov kho ible. Tom qab ntawd kuv yuav xaj xaj, (kom tau txais lawv yuav siv ob peb lub lis piam), thiab tom qab ntawd kuv yuav hloov qhov no dua. Kuv tseem yuav ua qhov program rau qhov no

Kauj ruam 4: Kho vajtse

Gee.. Kuv tsis nco qab txog qhov kev daws teeb meem ntawm cov khoom siv ntawm kev siv dag zog. Ua siab ncaj, kuv muaj nws hauv kuv lub taub hau nkaus xwb. Nws mus qee yam zoo li no, (Kuv tsis muaj duab lossis kos ntawm qhov no):

Koj muaj lub ntab dej, pob, lub tog raj kheej (nyiam dua), lossis….. Rau lub ntab dej no koj txuas cov hlau nplaum lossis cov hlau nplaum, (nrog lub tog raj kheej kheej kheej koj tuaj yeem txuas ob peb cov hlau nplaum, yog li tau txais qhov ua haujlwm “sib tshooj”).

Nws zoo tshaj plaws kom muaj cov ntab nyob rau hauv "raj" lossis ntawm txoj kev tsheb nqaj hlau kom txav mus deb nrug mus rau qhov ntsuas.

Ua lwm lub "raj", (cais tawm ntawm cov kua), thiab muaj txuas lawv cov ntsuas nrog qhov deb ntawm ib leeg.

1. Los ntawm kev teeb tsa lawv cov ntsuas nrog qhov nrug deb koj tuaj yeem khaws cov hlau nplaum kom qhib ob (lossis ntau dua) cov cim ib zaug. Txoj kev no koj ua siab zoo tau txais "kev nkag siab" ob npaug.

2. Muaj cov hlau nplaum (ob peb) mus txog qhov deb ntawm ob lub ntsuas pa koj tuaj yeem muaj qhov deb nyob deb. Kuv yuav ua daim duab ntawm kuv qhov kev pom zoo thiab hloov kho nws tom qab. Kuv txuas cov txheej txheem uas kuv muaj tam sim no, tsis txhob ua raws lawv qhov muag tsis pom, (raws li tau hais, Kuv tsis muaj lawv, tseem), thiab lawv cov txuj ci. cov ntaub ntawv ntawm cov khoom. Kuv tsis muaj BOM, vim tias kuv muaj tag nrho cov khoom no tau npaj txhij, tab sis txhua lub Cheebtsam yog wery ntau thiab yooj yim kom tau txais txhua qhov nyob txhua qhov chaw: e-bay, Bangood, Ali, thiab lwm yam.

Thov tawm tswv yim no Kuv ible yog li kuv tau txais cov lus tawm tswv yim yog tias kuv taug qab qee yam?

Zoo siab xa kuv cov lus nug los ntawm lub rooj sab laj no lossis ncaj qha rau kuv: [email protected]

Pom zoo: