Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [7-segment]

It refers to a seven-segment display (SSD) is a form of electronic display device for displaying decimal numerals.

Filter by
Sorted by
Tagged with
9
votes
2answers
20k views

How to use a common anode 7-segment, 4-digit display?

Please take this question as an example to (my own) answer below. I've got an 7 segment, 4 digit LED display, but I don't have any idea on how to wire it. I don't understand the difference between ...
6
votes
2answers
923 views

7 Segment display dimming

I've got project that needed to have some (4) digits display, and had plenty of 7 seg. displays lying around. I didn't have any multiplexers left but have instead wired it up as per this diagram: I'...
2
votes
2answers
3k views

Problem with a seven segment display. The segments blink then turn off

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good. I tried to connect to GND instead of the 5 V but then, nothing ...
2
votes
3answers
1k views

Convert from 3 V to 5 V

I'm new to Arduino, electronics, and this forum. I have made up a little project that connects an HC-SR04 ultrasonic range detector, and displays the distance on a 4 digit, 7 segment LED display. ...
2
votes
3answers
434 views

How to multiplex multiple displays?

I want to use 2 "displays" with 4 digits. The displays are common cathodes with cathode transistors connected to the digits, as the figure: The segments of both displays are connected together on the ...
2
votes
3answers
599 views

Problems coding a 12 pin 7 segment display and grove temperature sensor with Arduino Uno

I am trying to code my 12 pin seven segment display to display the temperature from my grove temperature sensor. I am new to this and I have been struggling, so if anyone could help that would be much ...
1
vote
1answer
2k views

7-segment display code

What is the meaning of BitSet = bitRead(numeral[number], segment);? const byte numeral[10] = { //ABCDEFG /dp B11111100, // 0 B01100000, // 1 B11011010, // 2 B11110010, // 3 B01100110, ...
1
vote
2answers
334 views

4-digit 7-segment display resets when common pin set to HIGH

I'm trying to make a simple stopwatch application with my Arduino Mega 2560 and a 4-digit 7-segment display, but the leftmost three digits only light up for a split second before they go out every ...
1
vote
2answers
64 views

Matrix keyboard and 7segment display countdown combination

I'm working on an escape room for my university with an Arduino Mega. The last part consists of a 7segment display representing a time countdown, and the participants have to introduce the correct ...
1
vote
1answer
172 views

7 segment multiple display, only display 1 digit

I try to create a display so that when I press the button, the counter is increased by one. The problem is only one of them light up and it is not showing the correct output, it is showing the ...
1
vote
1answer
294 views

7-Segment, 3-digit display not displaying correctly

I have written the code that should work, but for some reason the numbers do not display correctly. When I choose to display 3 times the same number it works correctly (so pin connections are correct) ...
1
vote
2answers
2k views

6 wire 3 digits 7 segment display and arduino question

Here's a brain teaser for you: I have the following 3 digit 7 segment display that has only 6 wires Experimentally I found out how it works, even though I don't understand it, but anyways every ...
1
vote
1answer
708 views

I'm trying to display the numbers 0-99 by multiplexing to two 7 segment displays. One number does not display

//Numbers 0-9. int numberArray[10][7] = { { 0, 0, 0, 0, 0, 0, 1 }, //0 { 1, 0, 0, 1, 1, 1, 1 }, //1 { 0, 0, 1, 0, 0, 1, 0 }, //2 { 0, 0, 0, 0, 1, 1, 0 }, //3 { 1, 0, 0, 1, 1, 0, 0 }, //4 { ...
1
vote
1answer
6k views

74HC595 with 4 digit 7 segment display. Any way to get rid of leading zeros?

I am working on an Arduino based temperature reader using a DS18B20 temperature IC. The display is a 4 digit 7 segment LED common anode display driven by a single 74HC595 shift register. Currently, it ...
1
vote
2answers
2k views

Why doesn't my 7 segment update every second like in the program?

I used sevseg.h library to write numbers to my 4 digit seven segment. The display should update every second with the current time since program started running. This is my code so far: #include <...
1
vote
1answer
31 views

number generator show wrong segments on 7 segment display

I created a program to show a random number on a 7 segment display. It shows a random number in the serial monitor but always shows the same segments 'a c d and g'. anyone know hopw to fix this ...
1
vote
1answer
878 views

Seven-Segment Display doesn't work on two lights

This is my code: void setup() { pinMode(2, OUTPUT); } void loop() { digitalWrite(2, HIGH); } This is my circuit: Problem: Light A and B doesn't work when I plug the red cable to 4 and 5. ...
1
vote
0answers
357 views

Arduinino & Max7219

I'm using a MAX7219 and 6 (six) seven segment displays I used my own board and two purchased on ebay - no difference in operation. MOSI, and CLK are correct and verified with my scope (Tektronics) CS (...
0
votes
2answers
463 views

A function-definition is not allowed here before '{' token

I'm trying to light up 81 on a 4-digit 7-segment display, but when I try to upload the code to my Uno R3 it gives me this error: "a function-definition is not allowed here before '{' token". I'm new ...
0
votes
2answers
2k views

Switching methods/functions with a button

I am trying to program a basic counter using 7segment display and a button. What I am trying to achieve is the following: Display 0 at the beginning. When the button is pressed: Start Loop 0-9 ...
0
votes
1answer
22 views

How to add numbers to a position when controlling a seven-segment display

I'm recently having a hard time with my Arduino project. I'm trying to control a seven-segment display (it has a microcontroller on it) with an encoder, and I'm trying so that everytime I rotate the ...
0
votes
2answers
934 views

How to power up this LCD 7 segments display

I got two of these type of 7 segments display in LCD material. And here is the datasheet I tried to power up to UNO, it can make the segment on, while a second, the segment go off, but the pinMode ...
0
votes
1answer
691 views

Something's wrong with my code for a 4 digit 7 segment clock display

I'm trying to do a clock using 4x7 segment displays but once I run the code the Display doesn't turn on here's my Code that I'm like 90% sure that there's nothing wrong with it bool A = 2; bool B = ...
0
votes
1answer
120 views

4 digit 7 segments display wrong number

I'm an Arduino newbie having problems with 4 digit 7 segments display. I want to display some thousands to 4 digit 7 segments display but it display only 0000. I want to receive data from serial with ...
0
votes
1answer
254 views

Connect a TM1627 to ESP32

I want to control a 7 segment display that has a TM1637 integrated with an ESP32. Some time ago I created a layout that used an ESP12e but I need more GPIO pins so I'm switching over to an ESP32. ...
0
votes
1answer
733 views

Using Multiple 4 Digit displays with the same pins

I currently have a ton of 4 Digit 7 Segmented displays(TOFD-5465GGH-B). The display is driven by a PT6961 LED Driver. Using a Library that I found here I was able to use the display with no issues. ...
0
votes
3answers
426 views

4 digit 7-segment display

What happends if I turn on all LEDs at the same time in an 4 digit 7 segment display? that would be 32 LEDs turned on at once, wouldn't that exceed the 200ma MAX for the arduino output?
0
votes
1answer
180 views

Multiplex 7 segment during delay (external IC?)

I am using some sensors with the arduino which take a second to receive the data from them. My guess is that there is a delay used somewhere in the library. During this time the multiplexed displays ...
0
votes
1answer
57 views

Mapping segments and memory allocation on a segment LCD driver [closed]

I've just configured a segment LCD and driver, everything works fine, but because I decided to not use vias on the PCB, the connections between the two are mixed. To be more precise, in order to ...
0
votes
1answer
158 views

Flashing a specified digit 4x7 segment display and shift register 74HC595N

I have a project that is simply a relay timer. The code is not complete so you will see 'in progress' sections not related to my question in my code. However, my question is... I am creating a timer ...
0
votes
3answers
1k views

Run two Loops Simultaneously on Arduino

I am not able to combine the below two sketches. What I require is to either run both the loops together or find a way to run both the functions inside a single loop. Sketch 1 #include <SevSeg.h&...
0
votes
1answer
851 views

Correct connections: 7-segment, 4-digit display with common anode

I see this connections for 4-digit display. All used pins set up on output. But, really, is it correct connections? Why it used A* input pins, and, digital pins set up on output, it is right? Maybe ...
-1
votes
1answer
2k views

3 digit 7 segment display

I have 3 digit 7 segment display with 10 pins I found this image pinout but it not working for me I need to know the pin out of this display
-1
votes
1answer
2k views

Interfacing key-pad with arduino with 7 segment display [closed]

I have the following components: Arduino Mega 7-segment display 12-digit key-pad For my project, I would like to display on the 7-segment display the number that the user presses on the keypad.
-1
votes
1answer
354 views

How to read Output data from SPI connector using Arduino Uno?

I am having main controller circuit board that give the data such as ("HAI", "HELLO") to 5 pin SPI Connector mounted on the same board. In that 5 pin SPI connector I could connect separate circuit ...