The OpenSegment Serial Display is a vibrant and compact module featuring four 7-segment blue LED displays. This 20mm display is designed for readability and ease of use, making it an excellent choice for projects requiring numerical output, such as clocks, counters, and readouts for sensors. It is controlled via a serial interface, which simplifies the connection and programming.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 7V) |
2 | GND | Ground connection |
3 | RX | Serial receive pin |
4 | TX | Serial transmit pin (not used) |
#include <SoftwareSerial.h>
// RX pin is not used for this display, hence we set it to -1.
// TX pin is the pin connected to the RX pin of the display.
SoftwareSerial openSegmentSerial(-1, 2); // RX, TX
void setup() {
// Start serial communication at 9600 baud rate.
openSegmentSerial.begin(9600);
}
void loop() {
// Send a number to the display.
openSegmentSerial.print("1234");
// Add a delay between updates.
delay(1000);
}
Q: Can I control the brightness of the display? A: Yes, the brightness can typically be controlled through serial commands. Refer to the manufacturer's command set for details.
Q: Is it possible to display letters as well as numbers? A: The 7-segment display is primarily designed for numbers, but certain letters can be approximated. Check the character set supported by the display.
Q: How do I connect multiple OpenSegment displays together? A: Some models support daisy-chaining. Refer to the specific model's documentation for instructions on connecting multiple units.
Q: Can I use this display with a 3.3V system? A: Yes, the display operates within a 3.3V to 7V range, making it compatible with both 3.3V and 5V systems.