O'Reilly logo

Arduino BLINK Blueprints by Utsav Shah, Samarth Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Synchronizing an LED array with a motor

In the previous sections of this chapter, we learned about controlling an LED array and DC motor using Arduino:

Synchronizing an LED array with a motor

Once you have connected the circuit as shown in the preceding image, upload the following code to Arduino. In the following code, we are writing the "Hello world" of persistence of vision:

int LEDPins[] = {2, 3, 4, 5, 6, 7, 8, 9}; int noOfLEDs = 8; //data corresponding to the each alphabet and a few characters to be displayed byte H[] = {B11111111, B11111111, B00011000, B00011000, B00011000, B00011000, B11111111, B11111111}; byte E[] = {B00000000, B11111111, B11011011, B11011011, B11011011, B11011011, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required