Questions tagged [seven-segment-display]

Numeric display formed by seven line segments, often with additional decimal points or colons.

Examples of a seven segment display format.

 _           _   _   _   _           _   _   _   _
|_|         |_| |_|.|_| |_|         |_| |_| |_| |_| 
|_|.        |_| |_|.|_| |_|         |_|.|_|.|_|.|_|.
74 questions
1
vote
1 answer

Verilog: task using case not choosing the correct case

I have the follow task, but some how when I use the task, it doesn't give me the correct digit output, I have tried not using the task, and it give me the correct output. Can any one see if I have anything wrong? For example when…
keivn
  • 114
  • 3
  • 12
0
votes
0 answers

Error when trying to use value stored in array in digitalWrite()

Im driving a 7-segment display using Arduino and want to display some letters. I passed the index of array -> digitPins (which has stored the ports connected to Arduino) in the digital write function but it doesn't work. However, it works when I use…
Spenzr
  • 1
  • 1
0
votes
1 answer

Displaying '-' sign on seven segment display for negative temperature

I'm currently working on Arduino Nano. My task is to write a code to display the ambient temperature (-19 to 50) on the seven segment display using the temperature sensor. My code is almost correct. It can display positive temperature perfectly on…
K_njb
  • 1
0
votes
2 answers

24 hour arduino based clock not resetting correctly after counting up

I am making a 24 hour clock with a four digit seven segment display based on an arduino uno with the SevSeg.h library. Will recreate with a nano later on. Currently, the timer ticks up nicely from 0 to 23.59, but does not reset back to 0 like I want…
0
votes
0 answers

I need a counter 0 - 99 using two seven segments, and a push button to increase the counter by one

I need a counter to count between 0 - 99 using two 7 segments and a push buttons to increase the counter by 1 using HAL language in Keil uvision and cubeMX. I have to use EXTI for the button. When I write my code in the interrupt file it works only…
0
votes
0 answers

I can't fix this error while it was working fine 30 mins ago "a function-definition is not allowed here before '{' token"

was working on seven segment display and deleted unnecessary lines of code a function-definition is not allowed here before '{' token error in arduino IDE full code: main problem in void loop where the error message above displays Tagged and Spoiler…
0
votes
1 answer

Can someone explain me the code written for sms32v50 assembly

Hello i have exercise to do a clock which will be counting from 1 to 59 in loop without ending. Can someone answer me to couple questions ? Why there are such numbers after DB? Is it ASCII or what? Why to BL we adding 03 ? If someone can explain…
0
votes
0 answers

Problem using SevSegShift library with ESP32 and 74HC595

I'm trying to build a digital clock using ESP32. I cannot use the TM1637 display module because it's too small. So I'm using a generic common anode 4 digit 7 segment display. I used the Arduino SevSeg library on ESP32 and it worked perfectly.…
0
votes
1 answer

Addition with 7-Segment Display

I am trying to add the 2 outputs together and show their result in a third/fourth display on the 7 segment display. Each output is shown in their own segment respectively. The fourth display being a double digit number (Max being 14, Min being 0). I…
Kyle Gerik
  • 19
  • 2
0
votes
2 answers

Controlling 8-digit 7-segment displays using 74HC595 using Raspberry Pi Python

I have an 8-digit LED display board, but I'm getting odd results. Line 21 defines which segments are lit AND which displays are used. So [1,0,0,0,1,0,0,0] turns off the 1st and 5th segments and lights the 4th and 8th displays (displays are in the…
0
votes
1 answer

10170 syntax error occurs for verilog codes to on/off the 7 segment LED

My project is about finding the common factor value between two inputs P[3:0] and Q[3:0]. The display output is G[13:0]. P,Q and G are 2 digits values. I am trying to build a display module for two digits 7 segment display with the code below.…
Tang
  • 11
  • 2
0
votes
1 answer

What changes has to be made to my original code?

I have written a code for DL1416 display it is a 4 digit 16 segments display. I need to test pd2816 display using arduino. The pd2816 is a 8 digit 18 segments display. Can someone help me out with what changes can be made to my actual code so that I…
0
votes
1 answer

C - BYTE manipulation for display

This is a programming question which has hardware limitations. I am working on a reverse engineering / hacking project of a "smart" thermostat. (which was not so smart, but it will be able to handle MQTT traffic.) My problem is with the built in LED…
Zoszko
  • 75
  • 1
  • 7
0
votes
0 answers

Using Rs485 and I2C display together

I am using rs485 to communicate between two Arduino nano. I have connected a 4 bit I2C display to one of the Arduino nano. When the nano receives data via Rs485 from the master nano, the data is displayed on the I2C display. But the issue is that I…
0
votes
0 answers

Multiplexing in seven segment display

We were asked a question on multiplexing. Why is multiplexing important in utilizing the seven-segment display and which part of the code it performs the multiplexing? ORG 0000H START: SETB P3.3 SETB P3.4 MOV P1, #10100100B CALL…
Araine
  • 15
  • 4