Charlieplexed SSRs
 
Notifications
Clear all

Charlieplexed SSRs

35 Posts
7 Users
0 Reactions
13.4 K Views
ErnieHorning
Posts: 4434
(@erniehorning)
Famed Member
Joined: 19 years ago
Photovor wrote:If I had the parts for 30 channels, even to just do on/off and not dimming, I'd be prototyping this tomorrow. ·· I got 16 MOC3023's from fairchild direct(samples), so that gets me partially there...

Can you use surface mount? If so, PM me.


Reply
Posts: 577
Topic starter
(@photovor)
Honorable Member
Joined: 19 years ago
ErnieHorning wrote:Can you use surface mount? If so, PM me.

I was planning on developing this idea on a breadboard, and I really don't have the resources to work with surface mount (though I'm not afraid to solder it). So no, but thanks.


Reply
Posts: 2168
(@djulien)
Noble Member
Joined: 19 years ago
P. Short wrote:That works OK for discrete LEDs powered from DC, but not very well for lamps driven through opto/triac pairs and syncronized to the AC line. You will need to run the microcontroller at roughly 30 times the current frequency (well, 30 times 8 MHz) if you want to charlie-plex 30 outputs, and you will also run into the speed limitations of the opto-couplers and triacs.

Would arranging them in a rectangular matrix instead of charieplexing help here? Then you can turn on one of more LEDs in a row at the same time (as opposed to 1 or maybe 2 or 3 at a time with charlieplexing). For example, with a 4x4 grid, you would only need to run 4x as fast (less than the 56 you would get with charlieplexing, but still better than 8). Also, if there is not discernable visual difference in brightness within a few %, could you still run at the same speed and then the dimmed values would just be off by +/- 2?

don


Reply
Posts: 577
Topic starter
(@photovor)
Honorable Member
Joined: 19 years ago

Ok, here's a question. Let's toss out the whole SSR deal. Say I want to just control a bunch of discrete LED's individually, with some PWM code as well. Any thoughts?


Reply
Posts: 265
(@phenagan)
Reputable Member
Joined: 19 years ago

If you do away with the latching SSRs and drive LEDs, then charlieplexing works well because you no longer have to deal with 60Hz as your limiting frequency and you can drive the LEDs fast enough to eliminate perceived flickering. If you look at most of the apps you see using this technique, you'll see they're driving LEDs.


Reply
Posts: 577
Topic starter
(@photovor)
Honorable Member
Joined: 19 years ago

Should I look for PICs that have built in PWM channels, or just 'simulate' my own pwm by pulsing the ports fast enough?

Lets just say that I have 4 LEDs controlled by only 2 ports (charliplexed), I'm wondering how I'd keep track of which LEDs had which brightness values, as I'm swapping the ports back and forth. Now that I'm getting closer to a concept, I'm starting to confuse myself.


Reply
Posts: 265
(@phenagan)
Reputable Member
Joined: 19 years ago

Can't use built in PWM as that'll defeat the 'plexing. You're going to have to do it the hard way...


Reply
Posts: 577
Topic starter
(@photovor)
Honorable Member
Joined: 19 years ago
phenagan wrote:Can't use built in PWM as that'll defeat the 'plexing. You're going to have to do it the hard way...

That's what I thought.

I've been thinking of a different design for this charliplexing, no longer on the 'using for grinch/ren/olsen' thread anymore. I'd like to use 4 control lines to control an array of LEDs, but I'd need to implement dimming as well. I may start to do this without dimming first just to try the concept.


Reply
Posts: 265
(@phenagan)
Reputable Member
Joined: 19 years ago

Something else for you to take a look at: http://www.edn.com/article/CA6615603.html?spacedesc=designideas&nid=2431&rid=960326888 . It adds a few transistors to help with the current issues, which allows more than one LED to be on at once and gives some savings in cycle times.


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

That is a nice circuit that will allow you to increase the drive on each LED to 25 mA, which is the limit of the PIC outputs. The problem is that if you are doing PWM dimming you will probably want to over-drive the LEDs, relying on the lower duty cycle to prevent damage to the LEDs. You can't really do that, though, because of the PIC limits.


Reply
Page 3 / 4
Share: