connecting a 7-segment led to BS
Hi every one,
I want to display keypad presses on a 7-segment (one digit) led.
I don't want to use any additional chips and I want to connect the
led directly to the basic stamp
I already wrote the keypad-scanning program on the basic stamp 2 and
it's working properly.
I don't know what to do with the led though!
The pins on the led are as follows:
Pinout:
Pin 1: ................ Anode F
Pin 2: ................ Anode G
Pin 3: ................ N/C
Pin 4: ................ Common Cathode
Pin 5: ................ N/C
Pin 6: ................ Anode E
Pin 7: ................ Anode D
Pin 8: ................ Anode C
Pin 9: ................ RHDP (Right Hand Decimal Point)
Pin 10: ............... N/C
Pin 11: ............... N/C
Pin 12: ............... Common Cathode
Pin 13: ............... Anode B
Pin 14: ............... Anode A
NOTE: Pins 4 & 12 are internally connected
All anodes will be connected to the I/O pins of the BS through
resistors
Common cathode will be connected to ground
What about the RHDP pin? Should it be grounded or left floating?
And I'm not sure how to send data to the anodes using pbasic.
If anyone has a program or can help, I would appreciate it.
I want to display keypad presses on a 7-segment (one digit) led.
I don't want to use any additional chips and I want to connect the
led directly to the basic stamp
I already wrote the keypad-scanning program on the basic stamp 2 and
it's working properly.
I don't know what to do with the led though!
The pins on the led are as follows:
Pinout:
Pin 1: ................ Anode F
Pin 2: ................ Anode G
Pin 3: ................ N/C
Pin 4: ................ Common Cathode
Pin 5: ................ N/C
Pin 6: ................ Anode E
Pin 7: ................ Anode D
Pin 8: ................ Anode C
Pin 9: ................ RHDP (Right Hand Decimal Point)
Pin 10: ............... N/C
Pin 11: ............... N/C
Pin 12: ............... Common Cathode
Pin 13: ............... Anode B
Pin 14: ............... Anode A
NOTE: Pins 4 & 12 are internally connected
All anodes will be connected to the I/O pins of the BS through
resistors
Common cathode will be connected to ground
What about the RHDP pin? Should it be grounded or left floating?
And I'm not sure how to send data to the anodes using pbasic.
If anyone has a program or can help, I would appreciate it.