Pages: [1]   Go Down
Author Topic: Multiply the analog Outputs up to 12 channels  (Read 1155 times)
0 Members and 1 Guest are viewing this topic.
basel switzerland
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello there,
Does anyone know, how to multiply the pwm outputs? I want to control 12 Power Led's from my arduino board, and they should be fading out individually. Everything works fine with digitalWrite, hooking up the led's is not the problem.  

I found the article about analog inputs (from Massimo), is this chip also useful for outputs, or do i need another chip.

Liebe Grüsse Matthias
« Last Edit: August 20, 2006, 09:42:43 am by matthiasBasel » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you can use normal outputs and a software pwm to do the job. but that's very slow
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
shrz
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
you could youse an analog multiplexer like described in tutorials thread. with that device you can send or recive a certain voltage, or a pulsed signal, or whatever via one wire to the ic where its spread (multiplexed) over up to 16 ch if you youse the 4067b for example. you need again 5 wires to controll the multiplexer.
its a serial technique, so if you run the controll programm very quick it seems to be same time.
if you combine them you'll have even more chs.
costs around 1,50 eur.

regards
woo
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Curious,

It has been a long time since I dabbled in electronics... but couldn't you also add a counter in between the arduino  and the multiplexer?  Then just use a single pin out from the arduino and step through the counter for the output you want?    

Hmm, maybe you would need two pins from the arduino.   One to step the counter and the other to tell the device to activate...  that would probably mean an additional flipflop or something...


Cheers,

ñ
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
shrz
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have no idea, but seems interesting.
someone got a hint?
e.g. part number

cheers
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am struggling with the same thing:
Doing the PWM in software does not result in smooth 'dimming' on all outputs.
Multiplexing doesn't work because it is serial in the end.

So my thoughts are:
  • Use a CMOS Serial Digital Pulse Width Modulator (CDP68HC68W1) for each Led/Dimmer. (This device can be programmed to continuously produce a pulse with a specified pulse-width and even frequency.)
  • Drive 12 of these from a multiplexer connected to the Arduino board.
On the programming side it would look something like this:
for (int i=0;i<12;i++) {
  // set multiplexer to output i;
  // write serial message through multiplexer to corresponding CMOS Serial Digital Pulse Width Modulator
}
« Last Edit: October 22, 2006, 11:39:04 pm by Florito » Logged

Pages: [1]   Go Up
Jump to: