Cov txheej txheem:

4 Ch DMX Dimmer: 6 Kauj Ruam
4 Ch DMX Dimmer: 6 Kauj Ruam

Video: 4 Ch DMX Dimmer: 6 Kauj Ruam

Video: 4 Ch DMX Dimmer: 6 Kauj Ruam
Video: Penggunaan Dimmer Pack 6 Channel 2024, Kaum ib hlis
Anonim
4 Ch DMX Dimmer
4 Ch DMX Dimmer

Lub tswv yim yog tsim thiab tsim lub dimmer nqa tau.

Yuav tsum:

  • DMX512 Tswj tau
  • 4 Raws
  • Portable
  • Yooj yim rau siv

Kuv tau thov lub tswv yim no rau kuv tus xibfwb ntawm WSU vim tias kuv xav ua ke kuv lub siab nyiam ua yeeb yam thiab khoos phis tawj. Txoj haujlwm no ua haujlwm zoo ib yam li kuv qhov haujlwm loj hauv chav ua yeeb yam. Yog tias koj muaj lus nug lossis lus nug, kuv xav pab.

Kev txhim kho yav tom ntej tuaj yeem suav nrog ntau txoj hauv kev, 5 tus pin DMX txuas, DMX passthrough, 8 nqes hluav taws xob hloov pauv cov channel, luam tawm Circuit board.

Kuv tau tsiv qhov haujlwm no los ntawm https://danfredell.com/df/Projects/Entries/2013/1/6_DMX_Dimmer.html vim tias nws tseem nrov, kuv twv. Tsis tas li kuv poob kuv cov ntaub ntawv noob iWeb yog li kuv tsis tuaj yeem hloov kho nws tau yooj yim dua. Nws yuav yog qhov zoo tso cai rau tib neeg los sib qhia lawv cov lus nug ntawm qhov haujlwm ib leeg.

Kauj Ruam 1: Sib sau Cov Khoos Phis Tawj

Sib Sau Cov Khoom Kho Vajtse
Sib Sau Cov Khoom Kho Vajtse

Kho vajtse Siv: Feem ntau nws tau xaj los ntawm Tayda Electronics. Kuv nyiam lawv zoo dua DigiKey vim qhov me me thiab nkag siab yooj yim rau xaiv.

  1. ATMEGA328, Micro-controller
  2. MOC3020, TRIAC Optocoupler. Tsis yog ZeroCross.
  3. MAX458 lossis SN75176BP, DMX Txais
  4. ISP814, AC Optocoupler
  5. 7805, 5v Tus Tswj
  6. BTA24-600, 600V 25A TRIAC
  7. 20 MHz Crystal
  8. 9V Fais fab mov

Ob peb qhov teeb meem thiab kawm tau los ntawm txoj kev

  • Yog tias koj tsis yog tus kws tshaj lij sau npe, lo nrog ATMEGA328P
  • Tsis ncaj ncees optocouplers. Koj tsis xav tau Zero Cross
  • Cov channel siab tsis ruaj khov. Hloov los ntawm 16MHz txog 20MHz daws qhov teeb meem no
  • Tsis tuaj yeem muaj DMX teeb pom kev zoo vim hais tias kev cuam tshuam hu yuav tsum tau nrawm heev
  • Lub zog DC yuav tsum ruaj khov heev, txhua lub suab nrov yuav ua rau DMX teeb liab nrov nrov

TRIAC tsim los ntawm MRedmon, ua tsaug.

Kauj Ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

Kuv siv Fritzing 7.7 ntawm Mac los tsim kuv lub voj voog.

MAX485 nyob rau sab saum toj yog siv los hloov lub teeb liab DMX rau qee yam uas Arduino nyeem tau.

4N35 ntawm sab laug yog siv txhawm rau txheeb xyuas qhov xoom hla ntawm AC teeb liab yog li Arduino yuav paub thaum twg thiaj li dim lub Sine yoj tso tawm. Xav paub ntau ntxiv txog yuav ua li cas kho vajtse thiab software cuam tshuam hauv ntu software.

Kuv tau txais cov lus nug yuav qhov haujlwm no ua haujlwm nyob hauv Europe nrog 230V thiab 50Hz? Kuv tsis nyob hauv Europe, thiab kuv tsis tau mus ncig ntau zaus kom tuaj yeem sim qhov kev tsim no. Nws yuav tsum ua haujlwm, koj tsuas yog yuav tsum hloov kho qhov ci ci lub sijhawm ntawm cov cai rau qhov sib txawv zaus ncua sijhawm.

Kauj Ruam 3: Kovari's Circuit Design

Kovari's Circuit Design
Kovari's Circuit Design
Kovari's Circuit Design
Kovari's Circuit Design

Los ntawm cov txheej txheem ntawm muaj kuv lub vev xaib Kuv tuaj yeem muaj ob peb tus email sib tham. Ib tus tau nrog Kovari Andrei uas ua tus tsim tsim hluav taws xob raws qhov haujlwm no thiab xav qhia nws qhov kev tsim. Kuv tsis yog tus tsim lub rooj sib tham tab sis nws yog Eagle project. Qhia rau kuv paub tias nws ua haujlwm li cas rau koj yog tias koj siv nws.

Kauj Ruam 4: Giacomo's Circuit Design

Giacomo's Circuit Tsim
Giacomo's Circuit Tsim

Qee lub sij hawm tib neeg yuav xa xov rau kuv nrog kev hloov pauv zoo uas lawv tau ua nrog cov lus qhia no thiab kuv xav tias kuv yuav tsum qhia lawv rau txhua tus ntawm koj.

Giacomo hloov kho qhov Circuit Court yog li qhov chaw nruab nrab tapped transformer tsis xav tau. Lub pcb yog ib leeg ib sab thiab tuaj yeem yog qhov kev daws teeb meem ntau dua rau leej twg tsis tuaj yeem ua ob tog nyob hauv tsev (nyuaj me ntsis).

Kauj ruam 5: Software

Software
Software

Kuv yog software engineer los ntawm kev lag luam yog li qhov no yog qhov ntxaws tshaj plaws.

Summery: Thaum Arduino thawj khau raj teeb tsa () txheej txheem hu ua. Nyob rau ntawd kuv teeb tsa ob peb qhov hloov pauv thiab cov chaw tso tawm kom siv tom qab. zeroCrossInterupt () hu ua/ khiav txhua lub sijhawm AC hla ntawm qhov zoo mus rau qhov tsis zoo. Nws yuav teeb tsa tus chij zeroCross rau txhua tus channel thiab pib lub sijhawm. Lub voj () txheej txheem hu ua txuas ntxiv mus tas li. Txhawm rau qhib cov zis, TRIAC tsuas yog yuav tsum tau ua rau 10 microseconds. Yog tias nws yog lub sijhawm los ua rau nws TRIAC thiab zeroCross tau tshwm sim cov zis yuav tig mus txog thaum kawg ntawm AC theem.

Muaj qee qhov piv txwv online uas kuv tau siv los pib qhov haujlwm no. Qhov tseem ceeb uas kuv nrhiav tsis tau yog muaj ntau yam TRIAC tso tawm. Lwm tus siv qhov ua haujlwm qeeb rau PWM tso tawm, tab sis qhov ntawd yuav tsis ua haujlwm hauv kuv rooj plaub vim tias ATMEGA yuav tsum tau mloog DMX txhua lub sijhawm. Kuv daws qhov no los ntawm pulsing TRIAC ntawm ntau ms tom qab xoom-hla. Los ntawm pulsing TRIAC ze rau xoom-hla qhov ntau ntawm kev ua txhaum nthwv dej tawm.

Nov yog qhov ib nrab 120VAC qhov kev ua txhaum zoo li ntawm oscilloscope, saum toj no.

ISP814 txuas nrog cuam tshuam 1. Yog li thaum nws tau txais lub teeb liab tias AC hloov pauv los ntawm qhov zoo mus rau qhov tsis zoo lossis vise sib txawv nws teeb tsa zeroCross rau txhua tus channel kom muaj tseeb thiab pib lub sijhawm nres.

Hauv lub voj () txoj hauv kev, nws tshuaj xyuas txhua txoj hauv kev yog tias xoomCross muaj tseeb thiab lub sijhawm rau nws qhib tau dhau los nws yuav ua rau TRIAC rau 10 microseconds. Qhov no txaus los qhib TRIAC. Thaum TRIAC qhib rau nws yuav nyob twj ywm mus txog rau thaum xoom hla. Lub teeb yuav flicker thaum DMX nyob ib puag ncig 3% yog li kuv tau ntxiv qhov txiav me me nyob ntawd kom tiv thaiv nws. Qhov no tau ua rau Arduino qeeb dhau, thiab cov mem tes yuav qee lub sijhawm ua rau nthwv dej txhaum tom ntej no tsis yog 4% kawg ntawm nthwv dej.

Tsis tas li hauv lub voj () Kuv teeb PWM tus nqi ntawm cov xwm txheej LEDs. Cov LEDs no tuaj yeem siv PWM sab hauv tsim los ntawm Arduino vim tias peb tsis tas yuav txhawj xeeb txog xoomCross ntawm AC. Thaum PWM tau teeb tsa Arduino yuav txuas ntxiv ntawm qhov ci ci ntawd kom txog thaum qhia lwm qhov ntse.

Raws li tau sau tseg hauv cov lus hais saum toj kawg nkaus txhawm rau siv DMX cuam tshuam ntawm tus pin 2 thiab khiav ntawm 20MHz koj yuav tau kho qee cov ntaub ntawv thov Arduino. Hauv HardwareSerial.cpp ib thooj ntawm cov cai yuav tsum raug tshem tawm, qhov no tso cai rau peb sau peb tus kheej cuam tshuam hu. Txoj hauv kev ISR no yog hauv qab ntawm txoj cai los tswj DMX cuam tshuam. Yog tias koj yuav siv Arduino ua ISP programmer, nco ntsoov rov qab hloov koj li HardwareSerial.cpp txwv tsis pub ATMEGA328 ntawm lub rooj mov ci yuav tsis tuaj yeem nkag mus. Qhov kev hloov thib ob yog qhov yooj yim dua. Cov ntaub ntawv boards.txt yuav tsum tau hloov mus rau qhov tshiab 20MHz moos ceev.

ci ntsa iab [ch] = daim ntawv qhia (DmxRxField [ch], 0, 265, 8000, 0);

Cov duab ci ci rau 8000 vim tias yog tus nqi microseconds ntawm 1/2 ntawm AC sine wave ntawm 60hz. Yog li ntawm qhov ci tag nrho 256 DMX txoj haujlwm yuav tawm 1/2 AC AC sine wave ON rau 8000us. Kuv tuaj nrog 8000 ntawm kev twv thiab kos. Ua lej ntawm 1000000us/60hz/2 = 8333 yog li ntawd tej zaum yuav yog tus lej zoo dua, tab sis muaj qhov ntxiv 333us dhau lub taub hau tso cai rau TRIAC qhib thiab muaj qhov tsis txaus ntseeg hauv qhov haujlwm yog tej zaum yog lub tswv yim zoo.

Ntawm Arduino 1.5.3 uas lawv tau hloov chaw ntawm HardwareSerial.cpp cov ntaub ntawv. Nws yog tam sim no /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp Koj yuav tsum tau tawm tswv yim tag nrho no yog tias thaiv pib nrog kab 39: #if txhais (USART_RX_vect)

Txwv tsis pub koj yuav xaus nrog qhov yuam kev no: core/core.a (HardwareSerial0.cpp.o): Hauv kev ua haujlwm `_vector_18 ':

Kauj Ruam 6: Ntim Nws

Ntim Nws Up
Ntim Nws Up
Ntim Nws Up
Ntim Nws Up
Ntim Nws Up
Ntim Nws Up

Kuv tau khaws lub thawv txho txho ntawm Menards hauv lawv qhov hluav taws xob. Kuv siv lub tshuab pom rov qab los txiav tawm qhov hluav taws xob ntsaws qhov. Cov ntaub ntawv tau txais kev ua yeeb yam c-clamp txuas rau sab saum toj rau dai lub hom phiaj. Teeb pom kev zoo rau txhua qhov kev tawm tswv yim thiab tso tawm los pab kuaj xyuas yog tias muaj teeb meem ib txwm muaj. Tus neeg tsim daim ntawv lo tau siv los piav qhia qhov chaw nres nkoj sib txawv ntawm lub cuab yeej. Cov lej tom ntej ntawm txhua lub ntsaws sawv cev rau DMX channel tus lej. Kuv txuas daim phiaj hluav taws xob thiab hloov pauv nrog qee cov kua nplaum kub. Cov LEDs tau daig hauv qhov chaw nrog cov tuav tuav.

Pom zoo: