The SparkFun 7-Segment Serial Display is a versatile and easy-to-use LED numerical display module. It features a bright blue LED display capable of showing numbers, some characters, and a few special symbols. This component is commonly used in digital clocks, electronic meters, and other devices that require a numerical display. Its serial interface simplifies the connection to microcontrollers, such as the Arduino UNO, making it a popular choice for hobbyists and educators alike.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 6V) |
2 | GND | Ground connection |
3 | RX | Serial receive pin |
4 | TX | Serial transmit pin (not used) |
To control the SparkFun 7-Segment Serial Display with an Arduino UNO, you can use the following sample code:
#include <SoftwareSerial.h>
// Create a software serial object
SoftwareSerial sevenSegSerial(2, 3); // RX, TX (TX not used)
void setup() {
// Start serial communication at 9600 bps
sevenSegSerial.begin(9600);
}
void loop() {
// Send a number to the display
sevenSegSerial.write('4');
delay(1000); // Wait for 1 second
// Clear the display
sevenSegSerial.write(0x76); // Clear command
delay(1000); // Wait for 1 second
}
Q: Can I daisy-chain multiple displays? A: Yes, multiple displays can be daisy-chained using the serial out pin, but this feature is not covered in this documentation.
Q: How do I change the baud rate of the display? A: The baud rate can be changed using a specific serial command; refer to the manufacturer's datasheet for detailed instructions.
Q: Can the display show letters as well as numbers? A: The display can show a limited set of characters and symbols. Refer to the character map in the datasheet for supported characters.
Remember to consult the SparkFun 7-Segment Serial Display datasheet for more detailed information and advanced features.