Delivery throughout Europe

Ordered before 16:00 = Shipped today

Fast delivery with DHL

XNUMX days return *


Country

In this project you will learn how to make your own LED newspaper.

We do this with a 32X8 LED matrix and a Arduino UNO. The code that comes with this project is long. This is because you have to make every letter, number and the like yourself on a 7X8 grid. The reason it's 7 by 8 is because we're only using 7 of the 8 rows vertically to create the characters. The way we make the characters then this means we have seven rows of eight long. Each row consists of ones and zeros, 1 means that light is on and 0 means it is off.

  • Level - Medium 50% 50%
  • Duration - 45/75 Min 40% 40%
  • Costs - € 48.85 euros complete 40% 40%

Step 1: Requirements

1X Arduino UNO

1X 32X8 LED matrix

5X F / M jumper wires

Step 2: Building and Wiring

If you now have all the parts you can start wiring. First you go with a cable from the CLK to I / O pin 13, from CS to I / O pin 10, from DIN to I / O pin 11, from GND to the GND on the Arduino and from the VCC to the 5V on the Arduino.

Step 3: Programming

Now that you have connected everything you can start programming.

For programming it is important that you have the LED control library. You need these to control the modules on the matrices. You can find this library in the Arduino IDE if you go to manage libraries and when you are there type LedControl in the search bar.

It is a long code but it is almost just drawing figures. The reason is that a figure uses seven lines one below the other, you can also do it in one. But it is easier to make a figure because you are already partly visualizing it. So you already know partly what it will look like.

If you put the program on the Arduino as it is now you will see the text electronics for you. You can adjust this to show a text of your choice.

#include  

 

// ensures that the LED lights only come on when necessary

// if the value is below 14 it becomes more and more difficult to read what it says

unsigned long BL[14] = {0}; 

// makes sure the pins and amount of displays is clear

LedControl lc = LedControl (11,13,10,4);

// here you put the text you want to show

const unsigned char scrollText [] PROGMEM = {"electronics for you"};

 

void setup ()

{

  // here the screens are calibrated

  for (int x = 0; x <4; x ++)

  {

    lc.shutdown (x, false);      

    lc.setIntensity (x, 8);      

    lc.clearDisplay (x);        

  }

}

 

// here we make the text move

void loop () {

    scrollMessage (scrollText);      

}

 

// here we draw every letter, number and the like

const unsigned char font5x7[] PROGMEM = {    

    B00000000, // Space

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    3,

 

    B01000000, //!

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B00000000,

    B01000000,

    2,

 

    B10100000, // ”

    B10100000,

    B10100000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    4,

 

    B01010000, // #

    B01010000,

    B11111000,

    B01010000,

    B11111000,

    B01010000,

    B01010000,

    6,

 

    B00100000, // $

    B01111000,

    B10100000,

    B01110000,

    B00101000,

    B11110000,

    B00100000,

    6,

 

    B11000000, //%

    B11001000,

    B00010000,

    B00100000,

    B01000000,

    B10011000,

    B00011000,

    6,

 

    B01100000, // &

    B10010000,

    B10100000,

    B01000000,

    B10101000,

    B10010000,

    B01101000,

    6,

 

    B11000000, // '

    B01000000,

    B10000000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    3,

 

    B00100000, // (

    B01000000,

    B10000000,

    B10000000,

    B10000000,

    B01000000,

    B00100000,

    4,

 

    B10000000, //)

    B01000000,

    B00100000,

    B00100000,

    B00100000,

    B01000000,

    B10000000,

    4,

 

    B00000000, // *

    B00100000,

    B10101000,

    B01110000,

    B10101000,

    B00100000,

    B00000000,

    6,

 

    B00000000, // +

    B00100000,

    B00100000,

    B11111000,

    B00100000,

    B00100000,

    B00000000,

    6,

 

    B00000000, //,

    B00000000,

    B00000000,

    B00000000,

    B11000000,

    B01000000,

    B10000000,

    3,

 

    B00000000, // -

    B00000000,

    B11111000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    6,

 

    B00000000, //.

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    B11000000,

    B11000000,

    3,

 

    B00000000, ///

    B00001000,

    B00010000,

    B00100000,

    B01000000,

    B10000000,

    B00000000,

    6,

 

    B01110000, // 0

    B10001000,

    B10011000,

    B10101000,

    B11001000,

    B10001000,

    B01110000,

    6,

 

    B01000000, // 1

    B11000000,

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B11100000,

    4,

 

    B01110000, // 2

    B10001000,

    B00001000,

    B00010000,

    B00100000,

    B01000000,

    B11111000,

    6,

 

    B11111000, // 3

    B00010000,

    B00100000,

    B00010000,

    B00001000,

    B10001000,

    B01110000,

    6,

 

    B00010000, // 4

    B00110000,

    B01010000,

    B10010000,

    B11111000,

    B00010000,

    B00010000,

    6,

 

    B11111000, // 5

    B10000000,

    B11110000,

    B00001000,

 

    B00001000,

    B10001000,

    B01110000,

    6,

 

    B00110000, // 6

    B01000000,

    B10000000,

    B11110000,

    B10001000,

    B10001000,

    B01110000,

    6,

 

    B11111000, // 7

    B10001000,

    B00001000,

    B00010000,

    B00100000,

    B00100000,

    B00100000,

    6,

 

    B01110000, // 8

    B10001000,

    B10001000,

    B01110000,

    B10001000,

    B10001000,

    B01110000,

    6,

 

    B01110000, // 9

    B10001000,

    B10001000,

    B01111000,

    B00001000,

    B00010000,

    B01100000,

    6,

 

    B00000000, //:

    B11000000,

    B11000000,

    B00000000,

    B11000000,

    B11000000,

    B00000000,

    3,

 

    B00000000, //;

    B11000000,

    B11000000,

    B00000000,

    B11000000,

    B01000000,

    B10000000,

    3,

 

    B00010000, //

    B00100000,

    B01000000,

    B10000000,

    B01000000,

    B00100000,

    B00010000,

    5,

 

    B00000000, // =

    B00000000,

    B11111000,

    B00000000,

    B11111000,

    B00000000,

    B00000000,

    6,

 

    B10000000, //>

    B01000000,

    B00100000,

    B00010000,

    B00100000,

    B01000000,

    B10000000,

    5,

 

    B01110000, //?

    B10001000,

    B00001000,

    B00010000,

    B00100000,

    B00000000,

    B00100000,

    6,

 

    B01110000, // @

    B10001000,

    B00001000,

    B01101000,

    B10101000,

    B10101000,

    B01110000,

    6,

 

    B01110000, // A

    B10001000,

    B10001000,

    B10001000,

    B11111000,

    B10001000,

    B10001000,

    6,

 

    B11110000, // B

    B10001000,

    B10001000,

    B11110000,

    B10001000,

    B10001000,

    B11110000,

    6,

 

    B01110000, // C

    B10001000,

    B10000000,

    B10000000,

    B10000000,

    B10001000,

    B01110000,

    6,

 

    B11100000, // D

    B10010000,

    B10001000,

    B10001000,

    B10001000,

    B10010000,

    B11100000,

    6,

 

    B11111000, // E

    B10000000,

    B10000000,

    B11110000,

    B10000000,

    B10000000,

    B11111000,

    6,

 

    B11111000, // F

    B10000000,

    B10000000,

    B11110000,

    B10000000,

    B10000000,

    B10000000,

    6,

 

    B01110000, // G

    B10001000,

    B10000000,

    B10111000,

    B10001000,

    B10001000,

    B01111000,

    6,

 

    B10001000, // H

    B10001000,

    B10001000,

    B11111000,

    B10001000,

    B10001000,

    B10001000,

    6,

 

    B11100000, // I

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B11100000,

    4,

 

    B00111000, // J

    B00010000,

    B00010000,

    B00010000,

    B00010000,

    B10010000,

    B01100000,

    6,

 

    B10001000, // K

    B10010000,

    B10100000,

    B11000000,

    B10100000,

    B10010000,

    B10001000,

    6,

 

    B10000000, // L

    B10000000,

    B10000000,

    B10000000,

    B10000000,

    B10000000,

    B11111000,

    6,

 

    B10001000, // M

    B11011000,

    B10101000,

    B10101000,

    B10001000,

    B10001000,

    B10001000,

    6,

 

    B10001000, // N

    B10001000,

    B11001000,

    B10101000,

    B10011000,

    B10001000,

    B10001000,

    6,

 

    B01110000, // O

    B10001000,

    B10001000,

    B10001000,

    B10001000,

    B10001000,

    B01110000,

    6,

 

    B11110000, // P

    B10001000,

    B10001000,

    B11110000,

    B10000000,

    B10000000,

    B10000000,

    6,

 

    B01110000, // Q

    B10001000,

    B10001000,

    B10001000,

    B10101000,

    B10010000,

    B01101000,

    6,

 

    B11110000, // R

    B10001000,

    B10001000,

    B11110000,

    B10100000,

    B10010000,

    B10001000,

    6,

 

    B01111000, // S.

    B10000000,

    B10000000,

    B01110000,

    B00001000,

    B00001000,

    B11110000,

    6,

 

    B11111000, // T

    B00100000,

    B00100000,

    B00100000,

    B00100000,

    B00100000,

    B00100000,

    6,

 

    B10001000, // U

    B10001000,

    B10001000,

    B10001000,

    B10001000,

    B10001000,

    B01110000,

    6,

 

    B10001000, // V

    B10001000,

    B10001000,

    B10001000,

    B10001000,

    B01010000,

    B00100000,

    6,

 

    B10001000, // W

    B10001000,

    B10001000,

    B10101000,

    B10101000,

    B10101000,

    B01010000,

    6,

 

    B10001000, // X

    B10001000,

    B01010000,

    B00100000,

    B01010000,

    B10001000,

    B10001000,

    6,

 

    B10001000, // Y

    B10001000,

    B10001000,

    B01010000,

    B00100000,

    B00100000,

    B00100000,

    6,

 

    B11111000, // Z

    B00001000,

    B00010000,

    B00100000,

    B01000000,

    B10000000,

    B11111000,

    6,

 

    B11100000, // [

    B10000000,

    B10000000,

    B10000000,

    B10000000,

    B10000000,

    B11100000,

    4,

 

    B00000000, // (\)

    B10000000,

    B01000000,

    B00100000,

    B00010000,

    B00001000,

    B00000000,

    6,

 

    B11100000, //]

    B00100000,

    B00100000,

    B00100000,

    B00100000,

    B00100000,

    B11100000,

    4,

 

    B00100000, // ^

    B01010000,

    B10001000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    6,

 

    B00000000, // _

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    B11111000,

    6,

 

    B10000000, // `

    B01000000,

    B00100000,

    B00000000,

    B00000000,

    B00000000,

    B00000000,

    4,

 

    B00000000, // a

    B00000000,

    B01110000,

    B00001000,

    B01111000,

    B10001000,

    B01111000,

    6,

 

    B10000000, // b

    B10000000,

    B10110000,

    B11001000,

    B10001000,

    B10001000,

    B11110000,

    6,

 

    B00000000, // c

    B00000000,

    B01110000,

    B10001000,

    B10000000,

    B10001000,

    B01110000,

    6,

 

    B00001000, // d

    B00001000,

    B01101000,

    B10011000,

    B10001000,

    B10001000,

    B01111000,

    6,

 

    B00000000, // e

    B00000000,

    B01110000,

    B10001000,

    B11111000,

    B10000000,

    B01110000,

    6,

 

    B00110000, // f

    B01001000,

    B01000000,

    B11100000,

    B01000000,

    B01000000,

    B01000000,

    6,

 

    B00000000, // g

    B01111000,

    B10001000,

    B10001000,

    B01111000,

    B00001000,

    B01110000,

    6,

 

    B10000000, // h

    B10000000,

    B10110000,

    B11001000,

    B10001000,

    B10001000,

    B10001000,

    6,

 

    B01000000, // i

    B00000000,

    B11000000,

    B01000000,

    B01000000,

    B01000000,

    B11100000,

    4,

 

    B00010000, // j

    B00000000,

    B00110000,

    B00010000,

    B00010000,

    B10010000,

    B01100000,

    5,

 

    B10000000, // k

    B10000000,

    B10010000,

    B10100000,

    B11000000,

    B10100000,

    B10010000,

    5,

 

    B11000000, // l

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B01000000,

    B11100000,

    4,

 

    B00000000, // m

    B00000000,

    B11010000,

    B10101000,

    B10101000,

    B10001000,

    B10001000,

    6,

 

    B00000000, // n

    B00000000,

    B10110000,

    B11001000,

    B10001000,

    B10001000,

    B10001000,

    6,

 

    B00000000, // o

    B00000000,

    B01110000,

    B10001000,

    B10001000,

    B10001000,

    B01110000,

    6,

 

    B00000000, // p

    B00000000,

    B11110000,

    B10001000,

    B11110000,

    B10000000,

    B10000000,

    6,

 

    B00000000, // q

    B00000000,

    B01101000,

    B10011000,

    B01111000,

    B00001000,

    B00001000,

    6,

 

    B00000000, // r

    B00000000,

    B10110000,

    B11001000,

    B10000000,

    B10000000,

    B10000000,

    6,

 

    B00000000, // s

    B00000000,

    B01110000,

    B10000000,

    B01110000,

    B00001000,

    B11110000,

    6,

 

    B01000000, // t

    B01000000,

    B11100000,

    B01000000,

    B01000000,

    B01001000,

    B00110000,

    6,

 

    B00000000, // u

    B00000000,

    B10001000,

    B10001000,

    B10001000,

    B10011000,

    B01101000,

    6,

 

    B00000000, // v

    B00000000,

    B10001000,

    B10001000,

    B10001000,

    B01010000,

    B00100000,

    6,

 

    B00000000, // w

    B00000000,

    B10001000,

    B10101000,

    B10101000,

    B10101000,

    B01010000,

    6,

 

    B00000000, // x

    B00000000,

    B10001000,

    B01010000,

    B00100000,

    B01010000,

    B10001000,

    6,

 

    B00000000, // y

    B00000000,

    B10001000,

    B10001000,

    B01111000,

    B00001000,

    B01110000,

    6,

 

    B00000000, // z

    B00000000,

    B11111000,

    B00010000,

    B00100000,

    B01000000,

    B11111000,

    6,

};

 

// here we ensure that there are 7 LED vertically

// lights go on

void rotate () {

    for (int a = 0; a <7; a ++) {                   

        unsigned long x = BL [a * 2];   

        byte b = bitRead (x, 31);               

        x = x << 1;                             

        BL [a * 2] = x;                

        x = BL [a * 2 + 1];              

        x = x << 1;                              

        bitWrite (x, 0, b);                      

        BL [a * 2 + 1] = x;                

    }

 

// here we ensure that every letter, number and proper

// is available to use

void load (int ascii) {

    if (ascii> = 0x20 && ascii <= 0x7f) {

        for (int a = 0; a <7; a ++) {                    

            unsigned long c = pgm_read_byte_near (font5x7 + ((ascii - 0x20) * 8) + a);   

            unsigned long x = BL [a * 2];    

            x = x | c;                              

            BL [a * 2] = x;                 

        }

        byte count = pgm_read_byte_near (font5x7 + ((ascii - 0x20) * 8) + 7);   

        for (byte x = 0; x <count; x ++) {

            rotate ();

            print ();

            delay (10);

        }

    }

}

 

// here we ensure that the text follows the correct matrices

void print () {

  for (int a = 0; a <7; a ++) {                   

    unsigned long x = BL [a * 2 + 1]; 

    byte y = x;                            

    lc.setRow (3, a, y);                      

    x = BL [a * 2];                  

    y = (x >> 24);                           

    lc.setRow (2, a, y);                     

    y = (x >> 16);                           

    lc.setRow (1, a, y);                     

    y = (x >> 8);                            

    lc.setRow (0, a, y);                     

  }

}

 

// here we ensure that the text of

// moves right to left

void scrollMessage (const unsigned char * messageString) {

    int counter = 0;

    int myChar = 0;

    do {

 

        myChar = pgm_read_byte_near (messageString + counter);

        if (myChar! = 0) {

            load (myChar);

        }

        counter ++;   

    }

    while (myChar! = 0);

}

You now have a working Arduino alarm!

The rating of www.elektronicavoorjou.nl at WebwinkelKeur Reviews is 9.3/10 based on 4778 reviews.