Difference between revisions of "16 LEDs"
Line 11: | Line 11: | ||
=== Possible Configurations === |
=== Possible Configurations === |
||
⚫ | |||
The 16-leds board can be ordered in two versions. The common-anode version will connect all the anodes to VCC (pin 19,20) and the leds via a resistor to the 16 inputs (pin 3-18). This means that the led will light up if you drive the input pin (3-19) LOW. This is useful for open collector outputs. However usually this results in inverted logic: the led lights when the signal is low. |
|||
For example if you have a combination of the DIO and the 16LED (common GND), connect DIO-PIN1 to 16LED-PIN1 and DIO-PIN2 to 16LED-<b>PIN3</b> to light LED0 as DIO-PIN2 is VCC (5V). |
|||
Most people will want the common-cathode version. This connects all the cathodes to GND (pin 1/2) and then all the inputs to the leds. This results in normal logic: the leds light up if the signal is high. |
|||
=== testing === |
|||
⚫ | |||
Next take a 5V (or 3.3V) wire (pin 2 on DIO) and connect it one at a time to pin 3, 4, and so on. You can use a power supply pin or a pin programmed to "high". Each time you touch one of the inputs, one of the leds should light up. |
|||
== External resources == |
== External resources == |
Revision as of 15:31, 25 April 2013
This is the documentation page for the 16-LEDs board.
Overview
A very useful board to test your digital outputs. Works on 5V as well as 3.3V so for the DIO as well as the Pi GPIO pins.
Must have! Use the 10x1Pin F-F kabel to hook it up to the boards (e.g. i2c_dio or spi_dio). Or if your board has a 10x2 pin header, you can use a 20pin IDC cable.
Assembly instructions
No user adjustable settings.
Possible Configurations
The 16-leds board can be ordered in two versions. The common-anode version will connect all the anodes to VCC (pin 19,20) and the leds via a resistor to the 16 inputs (pin 3-18). This means that the led will light up if you drive the input pin (3-19) LOW. This is useful for open collector outputs. However usually this results in inverted logic: the led lights when the signal is low.
Most people will want the common-cathode version. This connects all the cathodes to GND (pin 1/2) and then all the inputs to the leds. This results in normal logic: the leds light up if the signal is high.
testing
To test the 16LED, connect the GND (pin 1 or 2) to any of the GND pins on your board.
Next take a 5V (or 3.3V) wire (pin 2 on DIO) and connect it one at a time to pin 3, 4, and so on. You can use a power supply pin or a pin programmed to "high". Each time you touch one of the inputs, one of the leds should light up.
External resources
Related projects
Pinout
pin | function | ||
---|---|---|---|
1 | 2 | GND | GND |
3 | 4 | LED0 | LED1 |
5 | 6 | LED2 | LED3 |
7 | 8 | LED4 | LED5 |
9 | 10 | LED6 | LED7 |
11 | 12 | LED8 | LED9 |
13 | 14 | LED10 | LED11 |
15 | 16 | LED12 | LED13 |
17 | 18 | LED14 | LED15 |
19 | 20 | VCC | VCC |
Jumper settings
Common Ground/Common VCC is hard wired in JP1.
1=2 3 | Common GND / kathode |
1 2=3 | Common VCC / anode |
Future hardware enhancements
Changelog
2.0
- Initial public release