AI

## Overview of FNDS-R
**FNDS-R** appears to be a part number for a **FND (Flexible Numeric Display)**, also called a **seven-segment display**. The "R" usually indicates **red** LEDs. I couldn't verify the exact datasheet for this designation, so the details below describe typical FND displays. Check the manufacturer's datasheet for exact specifications.
---
## Basic Structure
A seven-segment display contains:
- **7 LED segments** labeled **a to g**, arranged in a figure-eight pattern
- **1 decimal point (DP)** segment
- **Common pin**, either common anode or common cathode
- **Pins** for each segment, usually 10 pins for a single digit
### Segment Layout
```
a
-------
| |
f | | b
| g |
-------
| |
e | | c
| |
------- • dp
d
```
---
## Types
| Type | Common Pin Connection | Lighting Method |
|------|----------------------|-----------------|
| Common Anode (CA) | All LED anodes tied to VCC (+) | Segment lights when its pin is pulled LOW (0) |
| Common Cathode (CC) | All LED cathodes tied to GND | Segment lights when its pin is driven HIGH (1) |
---
## Key Electrical Characteristics
| Parameter | Typical Value |
|-----------|---------------|
| Forward voltage (Vf) | 1.8 V to 2.2 V (red LED) |
| Forward current per segment | 10 mA to 20 mA |
| Supply voltage | 5 V (with resistors) |
| Digit count | 1 digit (single) or multi-digit |
---
## Current-Limiting Resistor
Each segment needs a series resistor to limit current.
$$R = \frac{V_{supply} - V_f}{I_f}$$
**Example:** With a 5 V supply, Vf = 2 V, and If = 10 mA:
$$R = \frac{5 - 2}{0.01} = 300\ \Omega$$
Use the nearest standard value, such as 330 Ω.
---
## Driving Methods
| Method | Description | Pros | Cons |
|--------|-------------|------|------|
| Direct drive | Each segment driven by a GPIO pin | Simple | Uses many pins |
| BCD-to-7-segment decoder (e.g., 7447) | Converts 4-bit BCD to segment signals | Fewer MCU pins | Extra IC required |
| Multiplexing | Digits switched on in turn | Fewer pins for multi-digit | Needs fast scanning, can flicker |
| Driver IC (e.g., MAX7219, TM1637) | Handles driving and multiplexing | Easy control, low MCU load | Extra cost |
---
## Basic Arduino Example
```cpp
// Common cathode, direct drive of segments a-g
// Segment pins: a=2, b=3, c=4, d=5, e=6, f=7, g=8
const byte segPins[7] = {2, 3, 4, 5, 6, 7, 8};
// Digit patterns for 0-9 (bit order: a b c d e f g)
const byte digits[10][7] = {
{1,1,1,1,1,1,0}, // 0
{0,1,1,0,0,0,0}, // 1
{1,1,0,1,1,0,1}, // 2
{1,1,1,1,0,0,1}, // 3
{0,1,1,0,0,1,1}, // 4
{1,0,1,1,0,1,1}, // 5
{1,0,1,1,1,1,1}, // 6
{1,1,1,0,0,0,0}, // 7
{1,1,1,1,1,1,1}, // 8
{1,1,1,1,0,1,1} // 9
};
void setup() {
for (int i = 0; i < 7; i++) {
pinMode(segPins[i], OUTPUT);
}
}
void showDigit(int n) {
for (int i = 0; i < 7; i++) {
digitalWrite(segPins[i], digits[n][i]);
}
}
void loop() {
for (int n = 0; n <= 9; n++) {
showDigit(n);
delay(500);
}
}
```
---
## Tips
- Always use **current-limiting resistors** to protect the LEDs.
- Verify the **pinout** and **common type** (CA or CC) on the datasheet before wiring.
- If the display is dim, the resistor value may be too high. If it burns out, the resistor may be too low.
---
If you share the datasheet or the full part number, I can give pinout and specific ratings.
- ⤷What is the pinout of a common cathode FND display?
- ⤷ How do I drive a 4-digit FND with multiplexing?
- ⤷ How do I tell if an FND display is common anode or common cathode?