Hello ACC Forum,
Working on display that will control 292 LEDS in a curvilinear line like
This animated GIF shows half of the eight characters or 150 of the total 292
lights.
Using an Arduino UNO to control four PCBs with 7219 Maxim IC which controls 64 LEDS
each to make 256 lights and a fifth board with 36 LEDs to make 292. The display is activated
by a PIR sensor, motion detector.
Had problems with the design of a PCB which would allow the construction and connection
of a linear display using the 7219 which was designed to do a matrix or a seven
segment display. But after several false starts and a four level PCB I licked it.
Then there were problems with power: 292 LEDs drawing a max 20m amps each is almost 6 amps.
Solved that problem by running the Arduino, the five 7219s and a PIR circuit all from
a power distribution circuit driven by a five volt 10 amp power supply.
Thanks to ebeowolf17 and kjj for helping solve the power problem in this post.
https://forum.allaboutcircuits.com/threads/arduino-to-max7219-to-light-256-leds.148095/
I got it to work!
Started to put in the frame and ran into issues.
The test of the operation of the LEDs was previously been limited to seeing that the lights came
on and went off.
When I started connecting the LED wires from the PCBs to LEds in the frame
unpredictable results occurred.
Heres what happens. (For trouble shooting the PIR was disconnected and only the first
eight LEDs on the first PCB were tuened on in the Arduino sketch, LEDControl_180526B copied herewith below.
LED 0 Comes on and stays on even after it is programmed to stay off and all the other LEDs are off.
LEDs 2 & 3 come on simultaeously
LED 4 On
LED 5 On
LED 6 On
LED 7 and 1 On simultaeously
LED 2& 3 off
LED 4 off
LED 5 off
LED 6 off
LED 7 and 1 off simultaeously
So tried reversing the sequence starting w seven and going to zero
LED 6 On
LED 5 On
LED 4 On
LEDs 2 & 3 come on simultaeously
LED 7 and 1 On simultaeously
LED 2& 3 off
LED 4 off
LED 5 off
LED 6 off
LED 7 and 1 off simultaeously
So tried just turning the first LED on and off
It will come on but will not go off.
Stumped.
Cant figure it out.
Allen in Dallas
//+++++LEDControl_180526_b.ino++++++ turns on eight LEDS and turns them off
// beginning with LED 000 and going to LED 007
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,1);
unsigned long delaytime=750;
unsigned long delaytime2=100;
void setup() {
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}
void loop() {
lc.setLed(0,0,4,true);
delay(delaytime2);
lc.setLed(0,0,4,false);
//lc.setLed(0,0,1,true);
// delay(delaytime);
//lc.setLed(0,0,2,true);
// delay(delaytime);
//lc.setLed(0,0,3,true);
// delay(delaytime);
//lc.setLed(0,0,4,true);
// delay(delaytime);
//lc.setLed(0,0,5,true);
// delay(delaytime) ;
//lc.setLed(0,0,6,true);
// delay(delaytime);
//lc.setLed(0,0,7,true);
// delay(delaytime);
//lc.setLed(0,0,1,false);
//lc.setLed(0,0,2,false);
//lc.setLed(0,0,3,false);
//lc.setLed(0,0,4,false);
//lc.setLed(0,0,5,false);
//lc.setLed(0,0,6,false);
//lc.setLed(0,0,7,false);
}
//+++++LEDControl_180526_c.ino++++++ turns on eight LEDS and turns them off
// beginning with LED 007 and going to LED 000
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,1);
unsigned long delaytime=750;
unsigned long delaytime2=100;
void setup() {
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}
void loop() {
lc.setLed(0,0,7,true);
delay(delaytime);
lc.setLed(0,0,6,true);
delay(delaytime);
lc.setLed(0,0,5,true);
delay(delaytime);
lc.setLed(0,0,4,true);
delay(delaytime);
lc.setLed(0,0,3,true);
delay(delaytime);
lc.setLed(0,0,2,true);
delay(delaytime);
lc.setLed(0,0,1,true);
delay(delaytime);
lc.setLed(0,0,0,true);
delay(delaytime);
lc.setLed(0,0,0,false);
lc.setLed(0,0,1,false);
lc.setLed(0,0,2,false);
lc.setLed(0,0,3,false);
lc.setLed(0,0,4,false);
lc.setLed(0,0,5,false);
lc.setLed(0,0,6,false);
lc.setLed(0,0,7,false);
}
Working on display that will control 292 LEDS in a curvilinear line like
This animated GIF shows half of the eight characters or 150 of the total 292
lights.
Using an Arduino UNO to control four PCBs with 7219 Maxim IC which controls 64 LEDS
each to make 256 lights and a fifth board with 36 LEDs to make 292. The display is activated
by a PIR sensor, motion detector.
Had problems with the design of a PCB which would allow the construction and connection
of a linear display using the 7219 which was designed to do a matrix or a seven
segment display. But after several false starts and a four level PCB I licked it.
Then there were problems with power: 292 LEDs drawing a max 20m amps each is almost 6 amps.
Solved that problem by running the Arduino, the five 7219s and a PIR circuit all from
a power distribution circuit driven by a five volt 10 amp power supply.
Thanks to ebeowolf17 and kjj for helping solve the power problem in this post.
https://forum.allaboutcircuits.com/threads/arduino-to-max7219-to-light-256-leds.148095/
I got it to work!
Started to put in the frame and ran into issues.
The test of the operation of the LEDs was previously been limited to seeing that the lights came
on and went off.
When I started connecting the LED wires from the PCBs to LEds in the frame
unpredictable results occurred.
Heres what happens. (For trouble shooting the PIR was disconnected and only the first
eight LEDs on the first PCB were tuened on in the Arduino sketch, LEDControl_180526B copied herewith below.
LED 0 Comes on and stays on even after it is programmed to stay off and all the other LEDs are off.
LEDs 2 & 3 come on simultaeously
LED 4 On
LED 5 On
LED 6 On
LED 7 and 1 On simultaeously
LED 2& 3 off
LED 4 off
LED 5 off
LED 6 off
LED 7 and 1 off simultaeously
So tried reversing the sequence starting w seven and going to zero
LED 6 On
LED 5 On
LED 4 On
LEDs 2 & 3 come on simultaeously
LED 7 and 1 On simultaeously
LED 2& 3 off
LED 4 off
LED 5 off
LED 6 off
LED 7 and 1 off simultaeously
So tried just turning the first LED on and off
It will come on but will not go off.
Stumped.
Cant figure it out.
Allen in Dallas
//+++++LEDControl_180526_b.ino++++++ turns on eight LEDS and turns them off
// beginning with LED 000 and going to LED 007
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,1);
unsigned long delaytime=750;
unsigned long delaytime2=100;
void setup() {
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}
void loop() {
lc.setLed(0,0,4,true);
delay(delaytime2);
lc.setLed(0,0,4,false);
//lc.setLed(0,0,1,true);
// delay(delaytime);
//lc.setLed(0,0,2,true);
// delay(delaytime);
//lc.setLed(0,0,3,true);
// delay(delaytime);
//lc.setLed(0,0,4,true);
// delay(delaytime);
//lc.setLed(0,0,5,true);
// delay(delaytime) ;
//lc.setLed(0,0,6,true);
// delay(delaytime);
//lc.setLed(0,0,7,true);
// delay(delaytime);
//lc.setLed(0,0,1,false);
//lc.setLed(0,0,2,false);
//lc.setLed(0,0,3,false);
//lc.setLed(0,0,4,false);
//lc.setLed(0,0,5,false);
//lc.setLed(0,0,6,false);
//lc.setLed(0,0,7,false);
}
//+++++LEDControl_180526_c.ino++++++ turns on eight LEDS and turns them off
// beginning with LED 007 and going to LED 000
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,1);
unsigned long delaytime=750;
unsigned long delaytime2=100;
void setup() {
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}
void loop() {
lc.setLed(0,0,7,true);
delay(delaytime);
lc.setLed(0,0,6,true);
delay(delaytime);
lc.setLed(0,0,5,true);
delay(delaytime);
lc.setLed(0,0,4,true);
delay(delaytime);
lc.setLed(0,0,3,true);
delay(delaytime);
lc.setLed(0,0,2,true);
delay(delaytime);
lc.setLed(0,0,1,true);
delay(delaytime);
lc.setLed(0,0,0,true);
delay(delaytime);
lc.setLed(0,0,0,false);
lc.setLed(0,0,1,false);
lc.setLed(0,0,2,false);
lc.setLed(0,0,3,false);
lc.setLed(0,0,4,false);
lc.setLed(0,0,5,false);
lc.setLed(0,0,6,false);
lc.setLed(0,0,7,false);
}