Cov txheej txheem:

Infra-Red Panel Timer: 4 Kauj Ruam (nrog Duab)
Infra-Red Panel Timer: 4 Kauj Ruam (nrog Duab)

Video: Infra-Red Panel Timer: 4 Kauj Ruam (nrog Duab)

Video: Infra-Red Panel Timer: 4 Kauj Ruam (nrog Duab)
Video: Военные тактические часы-Топ-10 самых жестких военных ч... 2024, Hlis ntuj nqeg
Anonim
Infra-Red Vaj Huam Sib Luag Timer
Infra-Red Vaj Huam Sib Luag Timer

Hauv ib chav ntawm chav nyob sab saud hauv kuv lub tsev kuv muaj lub vaj huam sib luag Infra Red. Thaum kuv nyob hauv chav ntawd thiab kuv hloov ntawm lub vaj huam sib luag no kuv qee zaum tsis nco hloov nws, uas yog pov tseg ntawm lub zog muaj txiaj ntsig. Txhawm rau tiv thaiv qhov no, Kuv tau ua qhov Infra Red Panel Timer. Tau kawg koj tuaj yeem siv lub voj voog no rau hloov lwm yam khoom siv tom qab lub sijhawm tas sijhawm.

Kev ua haujlwm ntawm lub sijhawm no yog qhov yooj yim. Thaum koj nias lub laub khawm ib zaug, ib lub LED tau qhib, Infra-Red vaj huam sib luag tau qhib thiab lub sijhawm teem sijhawm 30 feeb tau pib. Nias lub laub khawm dua yuav nce tus nqi sijhawm nrog ntxiv 30 feeb thiab LED thib ob yuav qhib. Txij li 4 LEDs nyob tam sim no, tus nqi siab tshaj plaws yog 2 teev. Thaum suav sau, cov LEDs yuav qhia tias muaj sijhawm ntau npaum li cas yog li tsuas yog 1 teev nyob ntxiv, 2 LEDs yuav ci. Yog tias lub sijhawm dhau mus, tag nrho cov LEDs tau tawm thiab Infra-Red vaj huam sib luag tau muab tua tawm.

Thaum lub sijhawm ua haujlwm, tus nqi ntsuas tuaj yeem nce ntxiv nrog 30 feeb - yog tseem tsis tau ntawm tus nqi siab tshaj ntawm 2 teev - los ntawm nias lub laub khawm ib zaug. Yog tias koj xav hloov lub sijhawm ua ntej lub sijhawm tas sijhawm dhau los, koj yuav tsum tuav lub pob nyem rau ib pliag.

Raws li ib txwm kuv tau tsim txoj haujlwm no ib puag ncig kuv nyiam micro tswj lub PIC tab sis koj tseem tuaj yeem siv Arduino.

Nco tseg tias txoj haujlwm tab tom hloov lub hwj chim tseem ceeb ntawm 230 Volts yog li ceev faj!

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

Koj yuav tsum muaj cov khoom siv hauv qab no rau txoj haujlwm no nrog qee cov ntaub ntawv hais qhia qhov twg koj tuaj yeem tau txais lawv:

  • Ib daim ntawm daim ntawv qhia zaub mov
  • PIC microcontroller 12F615,
  • Fuse yas dhos + fuse 4A/250V
  • Ceramic capacitor ntawm 100nF
  • 5 Volt Relays, muaj peev xwm hloov 230 V, 4 Ampere
  • Resistors: 1 * 1k, 1 * 10k, 5 * 330 Ohm, 1 * 220 Ohm
  • Diode 1N4148,
  • Transistor BC548,
  • Pushbutton
  • LEDs: 1 Ntsuab, 4 Amber, 1 Liab
  • 5 Volt fais fab mov
  • Lub tsev yas

Saib daim duab schematic ntawm yuav ua li cas txuas cov khoom siv.

Kauj Ruam 2: Lub Hwj Huam Fais Fab

Lub Hwj Huam
Lub Hwj Huam

Ib yam dab tsi yuav tsum tau hais txog kev siv fais fab. Koj tuaj yeem siv ib qho 5 Volt fais fab mov uas tuaj yeem muab tam sim no ntawm thaj tsam 200 mA. Hauv qhov haujlwm no kuv tau siv lub iPhone qub them los ntawm qhov uas kuv tshem lub tsev thiab lub USB txuas thiab muab tso rau ntawm lub khob cij nrog qee cov xov hlau nrog cov tub ntxhais khov.

Lub USB txuas ntawm lub zog siv hluav taws xob no tseem siv txuas ob ntu ntawm PCB ntawm lub zog xa khoom kom ntseeg tau tias ua kom muaj kev txuas nrog xaim. Ntawm daim duab - thov txim rau cov duab tsis zoo - koj tuaj yeem pom cov xaim no uas nyob ntawm qhov chaw uas USB txuas txuas siv los. Lub charger iPhone tuaj yeem muab lub zog xav tau yooj yim.

Kauj Ruam 3: Tsim Cov Khoom Siv Hluav Taws Xob

Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob

Koj tuaj yeem tsim lub Circuit Court ntawm lub khob cij tab sis ceev faj heev nrog Fuse thiab Relays uas hloov lub hwj chim loj rau Infra-Red Panel. Tsis txhob kov lub hwj chim loj hauv txhua txoj kev!

Hauv daim duab koj tuaj yeem pom lub Circuit Court raws li kuv tau tsim nws ntawm lub khob cij suav nrog kev teeb tsa ib ntus rau kev sim yog tias txhua yam ua haujlwm. Raws li tau hais ua ntej, Kuv txuas lub iPhone them nyiaj nrog qee lub xov hlau nrog lub hauv paus khov me ntsis saum lub khob cij. Nws tag nrho haum rau hauv tus qauv yas tsev.

Thaum tag nrho cov LEDs thiab Cov Tshaj Tawm nyob ntawm Circuit Court kos txog 130 mA los ntawm 5 Volt fais fab mov.

Kauj ruam 4:

Raws li tau hais dhau los, software tau sau rau PIC12F615. Nws tau sau hauv JAL. Txij li thaum kuv tsis tau siv ib lub tsev qiv ntawv tshwj xeeb tag nrho cov lej loj tsuas yog 252 bytes uas haum tau yooj yim hauv 1k program flash nco qhov tshwj xeeb xws li muaj.

Hauv txoj haujlwm no PIC ua haujlwm ntawm lub moos sab hauv ntawm 4 MHz, qhov twg Timer 1 tau siv los txo tus nqi sij hawm, tswj cov Relays thiab LEDs. Timer 1 zicks txhua 262 ms. Lub voj tseem ceeb ntsuas lub laub khawm thiab ua kom ncua sij hawm thaum nias lub pob los yog nws rov pib dua lub sij hawm thaum lub laub khawm tau nias rau 1 thib ob lossis ntev dua.

Cov ntaub ntawv JAL thiab cov ntaub ntawv Intel Hex tau txuas nrog.

Cov vis dis aus qhia kev ua haujlwm ntawm Infra-Red Panel Timer. Hauv cov vis dis aus no lub sijhawm tau teem rau 5 vib nas this rau ib qho LED hloov pauv li 30 feeb kom thiaj tuaj yeem qhia pom lub sijhawm ua haujlwm li cas. LED ntsuab qhia tias lub zog tau qhib thiab LED liab qhia tias lub vaj huam sib luag Infra-Red tau qhib. Hauv cov vis dis aus kuv siv lub teeb los qhia txog kev ua haujlwm.

Thaj kuv ua yeeb yaj kiab nws thim rov qab yog li thaum nce lub sijhawm siv sijhawm ntau dua LEDs ntawm sab laug yuav tig rau ntawm qhov yog yam uas koj ib txwm xav tau.

Daim vis dis aus qhia cov hauv qab no:

  • Thaum nias lub pob nyem, thawj LED tig thiab lub teeb tau hloov
  • Nias lub laub khawm dua, yuav ua rau kom lub sijhawm ntau dua thiab ntau lub LEDs yuav qhib kom txog thaum txhua lub LEDs tau qhib
  • Thaum suav suav, ntau thiab ntau cov LEDs yuav tua kom txog thaum lub sijhawm dhau mus uas hloov lub teeb
  • Nias lub laub khawm thaum lub sijhawm ua haujlwm yuav ua rau ncua sijhawm hauv qhov vis dis aus no nrog 5 vib nas this
  • Nias lub laub khawm rau 1 thib ob rov pib dua lub sijhawm thiab hloov lub teeb tawm.

Muaj kev lom zem tsim koj tus kheej txoj haujlwm thiab tos ntsoov rau koj cov kev xav.

Pom zoo: