# Help with 7 segment LED display

**URL:** <https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723>\
**Category:** General Guidance\
**Created:** [November 1, 2025, 8:44pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723 "2025-11-01T20:44:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadek920](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tadek920/32/1243625_2.png) [@tadek920](https://forum.arduino.cc/u/tadek920)\
**Post date:** [November 1, 2025, 8:44pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/1 "2025-11-01T20:44:57Z")

</div>

Hi, I'd like you to help me program a 7-segment LED. I'm completely new to Arduino, and my grandson would like to do something like that. Drivers drive too fast. Is this even possible?  
Best regards Tadek

---

<div class="post-metadata">

**Author:** ![PerryBebbington](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/perrybebbington/32/238766_2.png) [@PerryBebbington](https://forum.arduino.cc/u/PerryBebbington)\
**Post date:** [November 1, 2025, 9:24pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/2 "2025-11-01T21:24:27Z")

</div>

@tadek920,

Topic split from another topic. Please do not add your own questions to the end of other people's topics.

Could you take a few moments to Learn How To Use The Forum

> [@How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966):
>
> See also [FAQ - Arduino Forum](https://forum.arduino.cc/faq) for general rules on forum behavior and etiquette. Hello, Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frus…

It will help you get the best out of the forum in the future.

Thank you.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [November 1, 2025, 9:34pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/3 "2025-11-01T21:34:04Z")

</div>

> [@tadek920](#):
>
> I'd like you to help me program a 7-segment LED

Sorry I cannot help, you have not given us enough information to help you. Which of the many Arduinos are your using? What 7-segment display, post a link to its technical specifications.

> [@tadek920](#):
>
> Drivers drive too fast. Is this even possible?

Highly unlikely. But again it depends on what you have and how you have connected it. Start with an annotated schematic that will at least give us an idea of how it is connected to the Arduino.

That sounds like a great starting project that could be a lot of fun for both of you.! However, Please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code the best you can, then post it along with an annotated schematic and an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.

1. **Show Your Work First:** Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working. That includes a preliminary schematic that you drew.

2. **Provide Clear Documentation:** Since we can’t see, touch or feel your project, share an annotated schematic (best) or a clear drawing of your setup. Clear Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.

3. **Include Technical Details:** If there is specific hardware involved such as displays, include links to technical information. There are often many versions of similar components, so precise details are essential. I will assume the processor is a UNO. Many times the processor is stated as ESP32, please state which one and post a link to it.

4. **Reference Resources:** For additional help, check out useful links and tutorials: [Useful Links on Arduino Forum](https://forum.arduino.cc/t/useful-links-check-here-for-reference-posts-tutorials/370268). Of course one of the better sources of information (in my opinion) is the **Arduino Cookbook**. Skim it cover to cover and stop on any project that interests you.

I believe you will find most if not all of your project explained in the Arduino Cookbook.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [November 1, 2025, 9:49pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/4 "2025-11-01T21:49:28Z")

</div>

One of many tutorials on line:

> **[How to Use a 7-Segment Display with Arduino: A Complete Beginner's Guide](https://www.arduinointro.com/articles/projects/how-to-use-a-7-segment-display-with-arduino-a-complete-beginners-guide)**
>
> Learn how to use a 7-segment display with Arduino, control the decimal point, and create practical projects with step-by-step code explanations.

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [November 1, 2025, 10:56pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/5 "2025-11-01T22:56:56Z")

</div>

This is a community of helpers. We are not a free design or code shop. There is a paid section if you wish to go that route, however.  
SUGGESTION: The location you purchased the LED from will likely have library recommendations. Install that and then look at the examples. Pick the example closest to what you want to do and start modifying.  
And NO, drivers don't drive too fast.

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [November 3, 2025, 2:47am UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/6 "2025-11-03T02:47:40Z")

</div>

> [@tadek920](#):
>
> help me program a 7-segment LED

You will need to read about:

- how to control an LED (any LED) with an Arduino
- how to supply power to many LEDs
- 7seg COMMON ANODE and COMMON CATHODE
- The seven segments of a 7segLED (really, there are eight)

Here is a sketch written to use a 4-digit, 7-segment display. A few comments are in the code.

```arduino
// using common cathode

/* SEGMENTS
     A
    ---
  F| G |B
    ---
  E| |C
    --- o DP
     D
*/

int pinA = 2;
int pinB = 3;
int pinC = 4;
int pinD = 5;
int pinE = 6;
int pinF = 7;
int pinG = 8;
int D1 = 9;
int D2 = 10;
int D3 = 11;
int D4 = 12;
int DP = 13;

void setup() {
  Serial.begin(115200);

  for (int i = 0; i < 12; i++)
    pinMode(i + 2, OUTPUT);

  digitalWrite(D1, LOW); // turn this digit ON
  digitalWrite(D2, HIGH); // OFF
  digitalWrite(D3, HIGH); // OFF
  digitalWrite(D4, HIGH); // OFF

  digitalWrite(pinA, HIGH); // turn this segment ON
  digitalWrite(pinB, HIGH); // ON
  digitalWrite(pinC, HIGH); // ON
  digitalWrite(pinD, HIGH); // ON
  digitalWrite(pinE, HIGH); // ON
  digitalWrite(pinF, HIGH); // ON
  digitalWrite(pinG, LOW); // turn this segment OFF
}

void loop() {
}

```

---

<div class="post-metadata">

**Author:** ![tadek920](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tadek920/32/1243625_2.png) [@tadek920](https://forum.arduino.cc/u/tadek920)\
**Post date:** [November 3, 2025, 8:17am UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/7 "2025-11-03T08:17:41Z")

</div>

Hello, thank you very much for your help.

Med venlig hilsen/Best regards/Mit freundlichen Grüßen/Pozdrawiam  
Tadeusz Kobylarczyk

man. 3. nov. 2025, 03.57 skrev xfpd via Arduino Forum \<[notifications@arduino.discoursemail.com](mailto:notifications@arduino.discoursemail.com)\>:

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [November 3, 2025, 8:41am UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/8 "2025-11-03T08:41:57Z")

</div>

> [@tadek920](#):
>
> Drivers drive too fast

Are you trying to make a speed sensor or just want to know how to connect a 7 segment display to an Arduino.

---

<div class="post-metadata">

**Author:** ![tadek920](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tadek920/32/1243625_2.png) [@tadek920](https://forum.arduino.cc/u/tadek920)\
**Post date:** [November 3, 2025, 10:42am UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/9 "2025-11-03T10:42:19Z")

</div>

I'm trying to build a speed sensor and connect it to the 7th segment. HLK-LD2415H Arduino ESP 32 or another.

Med venlig hilsen/Best regards/Mit freundlichen Grüßen/Pozdrawiam  
Tadeusz Kobylarczyk

man. 3. nov. 2025, 09.51 skrev Jim P via Arduino Forum \<[notifications@arduino.discoursemail.com](mailto:notifications@arduino.discoursemail.com)\>:

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [November 3, 2025, 10:56am UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/10 "2025-11-03T10:56:51Z")

</div>

Well your title only mentions 7 segment display, so everyone will respond with help for a dispaly and not the speed sensor part.

You may want to change the title to include speed sensor and ESP32.

---

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [November 3, 2025, 2:04pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/11 "2025-11-03T14:04:09Z")

</div>

What you appear to be wanting is some help in adapting the code in the project described here: [Help with 7 segment LED display](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723) to output to a seven segment display instead of the TFT display that is currently used.

It seems that the code is so structured that it would be reasonably straightforward to replace the TFT screen with a 7 segment display for showing vehicle speed. Some of the messages, say "coming"/"going" would get lost or need another solution. The code is written for a 3v3 board with two UARTs (from the comments an ESP32).

If it is intended that the 7 segment display is to be visible from the road, there are plenty of projects showing that these can be made from banks of leds (google for "seven segment display huge diy"). Otherwise use a standard display. I guess you need a maximum of 3 digits. You could break it down into two separate projects which could later be joined (a) speed measurement and (b) display.

As has been suggested in post #10, change your title. Maybe also update your first post to include a statement that the project will be based on an existing project and include a link.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 2, 2026, 2:04pm UTC](https://forum.arduino.cc/t/help-with-7-segment-led-display/1411723/12 "2026-05-02T14:04:20Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
