Martha MigliacioAlex Wong
Published © GPL3+

Using the Pmod 8LD with Arduino Uno

Application notes for Pmod 8LD and Arduino Uno. In this app, LEDs will light up like in a famous television series from the 2000s.

EasyShowcase (no instructions)1 hour83
Using the Pmod 8LD with Arduino Uno

Things used in this project

Story

Read more

Schematics

Pmod 8LD and Arduino Uno Fritzing file

Fritzing file displaying the connection of the Pmod 8LD to the Arduino Uno.

Pmod 8LD and Arduino Uno Fritzing Image

Fritzing image displaying the connection between the Pmod 8LD and Arduino Uno.

Code

Pmod 8LD and Arduino Uno Code

Arduino
Using this code will light up the LEDs on the Pmod 8LD.
/************************************************************************
*
* Test of the Pmod module
*
*************************************************************************
* Description: Pmod_8LD
* led will light on like in a famous television series from the 2000s
*
* Material
* 1. Arduino Uno
* 2. Module Pmod 8LD
*
************************************************************************/

void setup()
{
 for (int i=2; i<=9; i++) // configuration of pins 2 to 9 in output
 {
  pinMode(i,OUTPUT);
 }
}

void loop()
{
 for (int i=1; i <=4; i++) // LED light on from exterior to interior of the module
  {
   digitalWrite(i+1,HIGH);
   digitalWrite(10-i,HIGH);
   delay(300);
  }
delay(600);
for (int i=1; i <=4; i++) // LED light on from interior ro exterior of the module
 {
   digitalWrite(6-i,LOW);
   digitalWrite(5+i,LOW);
   delay(300);
 }
 delay(600);
}

Credits

Martha Migliacio

Martha Migliacio

5 projects • 6 followers
Alex Wong

Alex Wong

5 projects • 18 followers
I work in Digilent and like creating projects
Thanks to Lextronics.

Comments