Cov txheej txheem:

UPS Ceeb Toom Teeb: 4 Kauj Ruam
UPS Ceeb Toom Teeb: 4 Kauj Ruam

Video: UPS Ceeb Toom Teeb: 4 Kauj Ruam

Video: UPS Ceeb Toom Teeb: 4 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Image
Image

Qhov teeb meem…

Kuv yog tus kws tshaj lij teeb pom kev zoo thiab nyob hauv kev lag luam lom zem, peb ua haujlwm ib puag ncig nrov nrov. Qhov no txhais tau tias peb feem ntau tsis tuaj yeem hnov lub tswb nrov ntawm UPS thaum peb poob lub zog uas tuaj yeem ua rau cov cuab yeej tseem ceeb poob nthav. Peb kuj nyiam cov chaw tsaus yog li peb tuaj yeem nkaum zoo dua thiab yog li xav ntxiv LED kab teeb pom kev nyob ib puag ncig peb cov racks kom yooj yim pom qhov peb tab tom ua.

Phau ntawv qhia no yuav piav qhia kuv qhov kev daws teeb meem no. Nws yog qhov yooj yim heev yog tias koj muaj cov txuj ci yooj yim soldering raws li txhua yam yog los ntawm qhov. Tsis muaj qhov tsim nyog tsim nyog tab sis kuv muab kuv cov cai tom qab yog tias koj xav hloov kho nws. Txawm li cas los xij koj yuav xav tau AVR programmer los nyem qhov ATtiny13. Koj lub UPS tseem yuav xav tau daim npav xa tawm uas xa lub teeb liab tsis muaj zog.

Qhov peb xav ua kom tiav …

Kuv xav tau 3 txoj haujlwm hloov pauv txhawm rau tso cai rau kuv xaiv WHITE, OFF, BLUE rau kuv lub teeb. Yog tias UPS poob lub zog, Kuv xav kom lub teeb nyem RED, txawm hais tias lawv raug kaw. Thaum lub zog rov qab los, kuv xav kom lub teeb rov qab mus rau lub xeev hloov.

Yog tias peb tsis muaj lub zog, Kuv xav kom tseem tuaj yeem qhib lub BLUE lossis WHITE lub teeb nrog RED flashing tom qab. Txog qhov no, Kuv yuav hloov mus rau OFF txoj haujlwm thiab tom qab ntawd rov qab rau cov xim uas xav tau.

Cia peb ua…

Tam sim no peb paub tias peb tab tom nrhiav dab tsi, cia pib ua. Saib cov vis dis aus saum toj no rau kev ua yeeb yaj kiab thiab taug kev los ntawm PCB txheej txheem tsim. Cov Lus Qhia no tseem yuav nkag mus ntxiv cov ntsiab lus raws li koj nyeem ntawm

Kauj Ruam 1: Schematic & PCB

Schematic & PCB
Schematic & PCB

Cov txheej txheem yog qhov yooj yim zoo ib yam li PCB.

Thawj tsab ntawv uas kuv tau ua yog ntawm lub veroboard thiab nws ua haujlwm tau zoo heev yog li tsis xav tias koj xav tau PCB. Kuv tsuas yog tsim PCB raws li peb xav tau tus kws tshaj lij saib tsim thiab npaj yuav ua tus lej ntawm cov koog no.

Capacitor qhov tseem ceeb tsis tas yuav zoo ib yam nkaus li lawv nyob ntawd tsuas yog ua kom muaj hluav taws xob zoo. Tus nqi tiv thaiv yuav tsum tau nyob ze tab sis, ib zaug ntxiv, tsis tas yuav muaj qhov tseeb. IRL530N mosfets tuaj yeem sib pauv rau ib qho zoo sib xws N -channel transistor - Kuv tau siv qhov no vim tias kuv muaj pawg ntawm tes los ntawm txoj haujlwm yav dhau los.

Tseem nco ntsoov tias qhov kev tsim qauv no yog rau 12V LED kab xev nrog ib qho +ve.

Kauj ruam 2: Code & Flashing ATtiny13

Code & Flashing ATtiny13
Code & Flashing ATtiny13

"thauj khoom =" tub nkeeg "peb tso lub UPS rau, peb yuav tsum pom qee qhov xim ua rau lub ntsej muag li 5 vib nas this. Qhov no yog li peb tuaj yeem tshawb xyuas tias txhua 3 xim ntawm LED ua haujlwm thiab vim tias kuv zoo li muaj nws nyem:)

Thaum qhov ntawd daws teeb meem, peb mus rau qhov tshwm sim tseem ceeb. Siv qhov hloov pauv los xaiv koj cov xim uas koj xaiv. Tom qab tshuaj xyuas cov xim dawb thiab xiav ob qho tib si ua haujlwm, sim tig lub hwj huam hluav taws xob rau UPS tawm (tab sis tawm ntawm UPS kom pom tseeb). Lub tswb ceeb toom ntawm UPS tej zaum yuav nrov nrov thiab koj cov LEDs liab yuav tsum tau ntsais muag ib yam nkaus.

Nyem qhov hloov mus rau txoj haujlwm tawm thiab tom qab ntawd xiav lossis dawb. Cov xim xaiv yuav tsum tam sim no tuaj yeem tso cai rau koj kho qhov teeb meem lub zog tab sis liab yuav tsum ua kom pom kev tom qab kom txog thaum lub zog rov qab los.

Tam sim no tig koj lub UPS rov qab. Vam tias koj cov LED tam sim no nyob rau hauv cov xim zoo li tau xaiv los ntawm koj qhov kev hloov.

Pom zoo: