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 hour73
Using the Pmod 8LD with Arduino Uno

Things used in this project

Hardware components

Pmod 8LD
Digilent Pmod 8LD
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

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.
Pmod8ld arduinouno bb y38sjskicc

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 • 5 followers
Alex Wong

Alex Wong

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

Comments

Add projectSign up / Login