Hi there,
I recently found some old ICs in various old Messure-Devices, so soldered them out and tried to make some of them work. Same goes for the BU4052BC witch is a Dual 4-Chan analog Demux. So that looked nice to be able to control some LEDs seperatly. I hooked it up on my breadboard and it worked out fine when I added the first LED. It seemed to work out nicely. That single LED was perfectly fading from off to full brightness. So I added more LEDs, and it turned out that the more LEDs I connect the more all of them would be flickering. So I checked where to find the problem. First I checked the Frequency my Arduino nano could provide on my PWM out - no Problems here. Then I checked the frequency the IC should be able to deliver witch is hard to read out of the Datasheet, but all Values I found would be in nS, so I assumed that could'nt be the problem neither. So I looked at power consumption - I used some leftover LED-Strips witch i wired up through transistors and supplied it with an external 12v source. No changes at all. The more colors from the Strip i add the more it started to flicker.
Here's the corresponding Datasheet:
My scematic is attatched.
And finally some testcode:
// like ic 4051 (1x 8-Chan), 4052 (2x 4-Chan)
// smaresh
int icA = 6; //difine control pin A
int icB = 7; //difine control pin B
int comY = 10; //difine analog Output Pin = Common Y on IC
void setup() {
Serial.begin(9600);
pinMode(icA, OUTPUT);
pinMode(icB, OUTPUT);
pinMode(comY, OUTPUT);
}
void loop() {
for (int i = 0; i <= 255; i++) {
digitalWrite(icA, LOW);
digitalWrite(icB, LOW);
analogWrite(comY, i);
digitalWrite(icA, HIGH);
digitalWrite(icB, LOW);
analogWrite(comY, i);
digitalWrite(icA, LOW);
digitalWrite(icB, HIGH);
analogWrite(comY, i);
digitalWrite(icA, HIGH);
digitalWrite(icB, HIGH);
analogWrite(comY, i);
}
Serial.println("new cicle");
}
Thanks in advance.
