Things used in this project

Hardware components:
Anduino Arduino Uno
×1
Pmod oc1  44559.1456866935.500.659
Digilent Pmod OC1
×1
09590 01
LED (generic)
×4
330 ohm resistor
×4
Solderless Breadboard Kit: Small
×1
Software apps and online services:
Ide web
Arduino IDE

Schematics

Pmod OC1 and Arduino Uno Fritzing file
Fritzing file displaying the connection of the Pmod OC1 to the Arduino Uno.
pmodoc1arduinouno_ZeeeEgk8RG.fzz
Pmod OC1 and Arduino Uno Fritzing Image
Fritzing image displaying the connection between the Pmod OC1 and Arduino Uno.
Pmodoc1arduinouno bb v9qx5gmafj

Code

Pmod OC1 and Arduino Uno CodeArduino
Using this code will light up LEDs and turn them off successively one after the other.
/************************************************************************
*
* Test of the Pmod
*
*************************************************************************
* Description: Pmod_OC1
* The LEDs light up and go out successively one after the other.
*
* Material
* 1. Arduino Uno
* 2. Pmod OC1 (do not remove the jumper)
* 3. 4 LEDs with 4 330 ohm resistors
*
************************************************************************/

void setup()
{
 for (int i=2; i<=5; i++) // configuration of pins 2 to 5 en sortie
 {
  pinMode(i,OUTPUT);
 }
}

void loop()
{
 for(int i = 2; i < 6; i++)
 {
  digitalWrite(i,HIGH); // Saturation of the transistors
  delay(500);
  digitalWrite(i,LOW); // Blocking transistors
 }
}

Credits

01aa44817a11ceb1a3050ebac4b68bbc
Martha Migliacio
1 project • 0 followers
Contact
Thanks to Lextronics.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login