Arduino digital LED screen driver

Source: Internet
Author: User

Today, I tried to drive the LED screen of a digital tube. I used a common cathode LED screen of a product to check the LED screen of a digital tube based on the circuit diagram.

The Code is a little lengthy. There are several driver methods. Here is just one of the most direct solutions. We need to make time to make more efficient calls and driver solutions.






// Set the cathode interface int d1 = 1; int D2 = 2; int D3 = 3; int D4 = 4; int D5 = 5; int D6 = 6; int D7 = 7; // set the anode interface int A = 8; int B = 9; int c = 10; int d = 11; int e = 12; int F = 13; int G = A0; int H = A1; void setup () {pinmode (D1, output); pinmode (D2, output); pinmode (D3, output); pinmode (D4, output ); pinmode (D5, output); pinmode (D6, output); pinmode (D7, output); pinmode (A, output); pinmode (B, output); pinmode (C, output); pinmode (D, output); pinmode (E, output); pinmode (F, output); pinmode (G, output); pinmode (H, output ); digitalwrite (A, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (H, low); digitalwrite (D1, high); digitalwrite (D2, high); digitalwrite (D3, high ); digitalwrite (D4, high); digitalwrite (D5, high); digitalwrite (D6, high); digitalwrite (D7, high);} void loop () {// digitalwrite (D7, low); digitalwrite (A, high); digitalwrite (B, high); delay (500); // low-level digitalwrite (A, low ); digitalwrite (B, low); digitalwrite (C, high); digitalwrite (D, high); delay (500); // Timed Shutdown digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, high); digitalwrite (F, High); digitalwrite (G, high); delay (500); // The temperature is 10 digits 8 digitalwrite (D7, high); digitalwrite (D1, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (A, high ); delay (300); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low); digitalwrite (C, high ); delay (300); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low); digitalwrite (E, high ); delay (300); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low); digitalwrite (G, high ); delay( 300); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high ); digitalwrite (F, High); delay (300); // temperature position 8 digitalwrite (D1, high); digitalwrite (D2, low); digitalwrite (B, low ); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (, high); delay (300); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low); digitalwrite (C, high); delay (300); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low); digitalwrite (E, high); delay (300); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low); digitalwrite (G, high); delay( 300); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high); digitalwrite (F, High); delay (300); // warm sign degree digitalwrite (D2, high); digitalwrite (A, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low ); digitalwrite (H, high); digitalwrite (D1, low); delay (500); // sleep symbol digitalwrite (D1, high); digitalwrite (D2, low ); delay (500); // hour 10 digits 8 digitalwrite (D2, high); digitalwrite (D3, low); digitalwrite (B, low); digitalwrite (C, low ); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (A, high); delay (300 ); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low); digitalwrite (C, high); delay (300 ); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low); digitalwrite (E, high); delay (300 ); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low); digitalwrite (G, high); delay (300 ); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high); digitalwrite (F, high); delay (300); // 8 digits per hour digitalwrite (D3, high); digitalwrite (D4, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (H, low ); digitalwrite (A, high); delay (300); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low ); digitalwrite (C, high); delay (300); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low ); digitalwrite (E, high); delay (300); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low ); digitalwrite (G, high); delay (300); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high ); digitalwrite (E, high); digitalwrite (F, High); delay (300); // colon digitalwrite (A, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (H, high ); delay (500); // ten digits in minutes 8 digitalwrite (D4, high); digitalwrite (D5, low); digitalwrite (B, low); digitalwrite (C, low ); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (A, high); delay (300 ); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low); digitalwrite (C, high); delay (300 ); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low); digitalwrite (E, high); delay (300 ); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low); digitalwrite (G, high); delay (300 ); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high); digitalwrite (F, high); delay (300); // 8 digits per minute digitalwrite (D5, high); digitalwrite (D6, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (A, high ); delay (300); digitalwrite (A, low); digitalwrite (B, high); delay (300); digitalwrite (B, low); digitalwrite (C, high ); delay (300); digitalwrite (C, low); digitalwrite (D, high); delay (300); digitalwrite (D, low); digitalwrite (E, high ); delay (300); digitalwrite (E, low); digitalwrite (F, High); delay (300); digitalwrite (F, low); digitalwrite (G, high ); delay( 300); digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high ); digitalwrite (F, High); delay (300); // fully bright digitalwrite (A, high); digitalwrite (B, high); digitalwrite (C, high); digitalwrite (D, high); digitalwrite (E, high); digitalwrite (F, High); digitalwrite (G, high); digitalwrite (H, high); digitalwrite (D1, low ); digitalwrite (D2, low); digitalwrite (D3, low); digitalwrite (D4, low); digitalwrite (D5, low); digitalwrite (D6, low); digitalwrite (D7, low); delay (500); // completely destroy digitalwrite (A, low); digitalwrite (B, low); digitalwrite (C, low); digitalwrite (D, low ); digitalwrite (E, low); digitalwrite (F, low); digitalwrite (G, low); digitalwrite (H, low); digitalwrite (D1, high); digitalwrite (D2, high); digitalwrite (D3, high); digitalwrite (D4, high); digitalwrite (D5, high); digitalwrite (D6, high); digitalwrite (D7, high ); delay (500 );}



We plan to use machine vision to detect the issue and identify the issue of quality inspection, such as the disconnection pen and the large Brightness Difference Between the pen segments.

Arduino digital LED screen driver

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.