Steps: Usage Manual Digital Signage Using Arduino
Steps: Usage Manual Digital Signage Using Arduino
Steps
1. Plug-in the 5V source.
3. If you want to change the display, change the code at line 106.
4. If you want to adjust its tie delay, change the code at line 89.
int x;
int y;
int clockPin2 = 10; //Arduino pin connected to white Clock 11 SRCLK of 74HC595
//=== B I T M A P ===
byte bitmap[8][7]; // Change the 6 to however many matrices you want to use.
int numZones = sizeof(bitmap) / 8;
byte alphabets[][5] = {
{0, 0, 0, 0, 0},
{127, 8, 8, 8, 127},
{2, 1, 1, 1, 126},
{127, 1, 1, 1, 1},
{124, 2, 1, 2, 124},
{126, 1, 6, 1, 126},
};
void setup() {
pinMode(latchPin1, OUTPUT);
pinMode(clockPin1, OUTPUT);
pinMode(dataPin1, OUTPUT);
pinMode(latchPin2, OUTPUT);
pinMode(clockPin2, OUTPUT);
pinMode(dataPin2, OUTPUT);
bitmap[row][zone] = 0;
//=== F U N C T I O N S ===
// This routine takes whatever we've setup in the bitmap array and display it on the matrix
void RefreshDisplay()
digitalWrite(latchPin2, LOW); //Hold latchPin LOW for as long as we're transmitting data
digitalWrite(latchPin1, LOW); //Hold latchPin LOW for as long as we're transmitting data
//-- Shift out to each matrix (zone is 8 columns represented by one matrix)
//-- Done sending Column bytes, flip both latches at once to eliminate flicker
digitalWrite(latchPin1, HIGH);
digitalWrite(latchPin2, HIGH);
//-- Wait a little bit to let humans see what we've pushed out onto the matrix --
// Converts row and colum to actual bitmap bit and turn it off/on
int colBitIndex = x % 8;
if (isOn)
else
// Plot each character of the message one column at a time, updated the display, shift bitmap left.
void AlphabetSoup()
char msg[] = "I LOVE SIR WILSON DULDULAO "; CHANGING THE DISPLAY
bool isOn = 0;
//-- The more times you repeat this loop, the slower we would scroll --
for (int refreshCount = 0; refreshCount < 5; refreshCount++) //change this value to vary speed
RefreshDisplay();
// Roll over lowest bit from the next zone as highest bit of this zone.
//=== L O O P ===
void loop() {
AlphabetSoup();
}