YAD Yet anothe Dimm...
 
Notifications
Clear all

YAD Yet anothe Dimmer

12 Posts
4 Users
0 Reactions
7,681 Views
Matt_Edwards
Posts: 2664
Topic starter
(@matt-edwards)
Famed Member
Joined: 18 years ago
[#6224]

Folks,
To date I have been using a combination of LED and Incandescent lamps for my controllers. I have only dimmed the LEDs but not the Lamps.
This thread will detail how I travel as I develop my own dimmer. Your comments will be welcomed.

But first things first:
There are many top notch dimmers in existence already. I am doing this because i can, not because I want to do it better. I love to learn new stuff.
If I was going to copy an DMX AVR based dimmer, I already know which one I would copy and invest in.

After a brief discussion with Art and his new dimmer, I have concluded mine will be different in sufficient ways to stand apart from what Art is doing.

My Starting design goal is:

  1. 16ch AC Dimmer
  2. Chip ATmega 16 or 32 running at 16Mhz
  3. Code: primarily C with ASM where required for optimisation
  4. Dimming levels: 256 ( ie DMX)
  5. Interface: DMX
  6. Communication and ZC to be Interrupt driven

I already have the DMX code down pat.

neat haves include:
RJ's switchless DMX
modified Least Squares or similar dimming rules

At this stage the program flow will be:

  • Start
  • Init IO
  • Init ISR
  • Get DMX Address
  • Enable Interupts
  • main loop
  • end

3 ISRs in use

  • DMX RX - RXs DMX and stores required channel values in table
  • Timer - set to 10ms/256 or 8.3 ms/256. simple increments a phase variable
  • ZC detect - starts the dimming cycle in process

Main loop will loop forever and toggle outputs dependant on the phase variable and the ZC flags.

That is the start of one of my new developments. I will of course be reusing some of my own LED dimmer boards to fast track the development and only use 36V AC to start to keep thing safe to begin with.

Cheers
Matt


11 Replies
dmcole
Posts: 2196
(@dmcole)
Noble Member
Joined: 19 years ago

Matt:

I too am working on a DMX receiver that dims (though mine is for LEDs) using AVR. I'll be most interested in following your progress.

\dmc


Reply
Matt_Edwards
Posts: 2664
Topic starter
(@matt-edwards)
Famed Member
Joined: 18 years ago

DMC,
I you dimming assuming a DC source or do you want to dim LEDs connected to AC?

What AVR are you using?
I use a lot of AT 2313, Tiny2313 and recently got into Mega 32.

Have you got the DMX reception finished?

Cheers
Matt


Reply
dmcole
Posts: 2196
(@dmcole)
Noble Member
Joined: 19 years ago
Matt_Edwards wrote:I you dimming assuming a DC source or do you want to dim LEDs connected to AC?

This will be a DC-source project (though, of course, it will start out AC -- I'll either spec a DC WW or add a rectifier circuit).

Matt_Edwards wrote:What AVR are you using?
I use a lot of AT 2313, Tiny2313 and recently got into Mega 32.

I've got a Mega48 in the bb right now. I may have to go to an 88 because I'm a sloppy coder 😉 ...

Matt_Edwards wrote:Have you got the DMX reception finished?

Ha! I'm still working on the PWM and POV routines ... I'm not happy with the brightness of the LEDs in the POV mode ... I'm overdriving the LEDs like mad and they're still only about half as bright as if they were directly driven with a standard resistor.

I'm probably going to be leaning heavily on Henne's code (i.e.: cut-and-paste) 😉 ...

\dmc


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 20 years ago

What is the duty cycle of the LED drive?


Reply
Page 1 / 3
Share: