Git Product home page Git Product logo

gfe-dmx-dimmer's Introduction

DMX-Dimmer

DIY 5 channels dmx dimmer for 4 stage halogen lights.

Get the full assembled board: http://gfehandmade.bigcartel.com/product/dmx-dimmer-for-4-stage-halogen-lamps

About software:

The software is based on a finite state machine. The DMX start address can be choosen on the software modifying "#define DMX_START_ADDRESS 65". The DMX channels are currently set like following:

  • DMX CHANNEL 65: lamp 1 dimmer (0 -> 100% fade)
  • DMX CHANNEL 66: lamp 2 dimmer
  • DMX CHANNEL 67: lamp 3 dimmer
  • DMX CHANNEL 68: lamp 4 dimmer
  • DMX CHANNEL 69: strobo all lamps at chosen speed (40 - 255 strobe from 100ms to 1s)

HardwareSerial0.cpp EDIT:

To let Arduino IDE compile the code we need to do some mods to the HardwareSerial0.cpp file. On my current Mac OSX Arduino version (1.6.10) the file is placed at the following path: Arduino/Contents/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp. Inside it we need to comment out the whole block between line 40 and line 51:

/*
#if defined(USART_RX_vect)
  ISR(USART_RX_vect)
#elif defined(USART0_RX_vect)
  ISR(USART0_RX_vect)
#elif defined(USART_RXC_vect)
  ISR(USART_RXC_vect) // ATmega8
#else
  #error "Don't know what the Data Received vector is called for Serial"
#endif
  {
    Serial._rx_complete_irq();
  }
*/

That's because we need to tell the Arduino IDE that inside the code we wrote our personal Interrupt Service Routine ("ISR") and we need it to use it in DMX serial communications. Remember to remove the mods after uploading the code or Serial communications ( like the one we use in Serial.print() ) wont work anymore.

You can find my copy of modded HardwareSerial0.cpp inside the file list.

File list:

Connections:

Board

Some pics:

Painting the enclosure and test fitting the pcb: PIC1

gfe-dmx-dimmer's People

Contributors

giacu92 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.