The OpenSegment Serial Display is a versatile and bright single-digit 7-segment LED display designed for numeric output in electronics projects. Its 20mm size and vibrant red color make it highly visible, and it is capable of being controlled through serial communication, making it an excellent choice for applications such as counters, timers, and readouts in various devices.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground connection |
3 | RX | Serial receive pin |
4 | TX | Serial transmit pin (not used) |
#include <SoftwareSerial.h>
// RX pin is not used in this example, hence we set it to -1.
SoftwareSerial openSegmentSerial(-1, 2); // RX, TX
void setup() {
// Start serial communication with the display at 9600 baud rate.
openSegmentSerial.begin(9600);
}
void loop() {
// Send a numeric value to the display.
openSegmentSerial.print(5);
delay(1000); // Wait for 1 second.
// Clear the display.
openSegmentSerial.write(0x76); // Clear command for OpenSegment.
delay(1000); // Wait for 1 second.
}
Q: Can I chain multiple displays together? A: This particular model is a single-digit display and does not support chaining. You would need to control multiple displays individually.
Q: What is the default baud rate for the display? A: The default baud rate is 9600.
Q: Can I use this display with a 3.3V system? A: Yes, the display operates between 3.3V and 5V, making it compatible with both 3.3V and 5V systems.
Q: How do I change the baud rate of the display? A: The baud rate can typically be changed through specific serial commands or configuration settings. Refer to the manufacturer's datasheet for detailed instructions.
Q: Is it possible to display letters as well as numbers? A: The 7-segment display is primarily designed for numbers, but some letters can be approximated. The exact capability will depend on the controller used with the display.