04 | Controlling Multiple LEDs

Light Emitting Diodes (LEDs) are high efficiency lights commonly used in indicators and for illumination. In this tutorial we'll learn how to manually control four LEDs using front panel controls and then modify the code to display the binary representation of a user specified number.



Parts List
  • Sparkfun RedBoard

  • 4x LED (any color)
  • 4x 330 Ohm Resistors
Circuit Schematic



  • Open the LINX - Digital Output N Channel example from the LabVIEW Example Finder.

  • Select the DO Channels connected to the LEDs.

  • Run the VI, and click the LED control to toggle the LED on and off.

  • Modify the VI to increment a counter each loop iteration and display the binary representation of the counter value on the LEDs.
  • Modify the software to include a counter start value and a maximum count value.

  • Modify the circuit and code to use an 8-bit counter.