Programming a 7 segment display timer

  • Thread starter Thread starter PaulEndacott
  • Start date Start date
  • Tags Tags
    Programming Timer
Click For Summary
The discussion centers around a student, Paul, who is redesigning a stopwatch as part of his industrial design coursework at Loughborough. He has a basic circuit and a seven-segment display set up on a breadboard but is struggling with programming the circuit to function as desired. Paul wants the stopwatch to start, stop, and reset with specific LED indicators and sounds when a button is pressed. He seeks assistance with programming, noting his lack of experience in this area. A response suggests that he needs a timer, either through software or hardware, and recommends looking into "one-shot" circuits for hardware solutions. Additionally, it mentions the necessity of a microcomputer for software programming, which Paul has not indicated he possesses.
PaulEndacott
Messages
1
Reaction score
0
Hi, I was wondering if anyone could help me, I am studying industrial design at Loughborough and as part of my coursework I am re-designing a stopwatch. Along with this coursework I need to submit a simulation of the electronics that would be involved.

We have all ben given a basic circuit, which I have added in the picture, and I have bought a 7 seven display to attach to it, on a breadboard

I have attatched a picture of what we have already made. And another of the breadboard and battery pack.

The problem I am having is programming the circuit to work how I want it:

I want to make it so when i press the button (pin3) then the timer will start, the green LED will flash momentarily, and the buzzer will beep momentarily. Then, when the same button is pushed again, the timer will stop on the number and the red LED will flash momentarily. Then, when the button is pushed again, the timer will reset and the yellow LED will flash momentarily.

I am useless at programming as I have never done it before and i was wondering if anyone could help me? The circuit does not have to work exactly as I want it to above but something on those lines. Any help on programming this sort of system would be much appreciated!

Many thanks,

Paul

Screen shot 2010-03-01 at 13.29.30.png


Screen shot 2010-03-01 at 13.28.37.png
 
Technology news on Phys.org
you need a timer, either in software or hardware. try googling "one-shot" circuits if you want to use hardware. if you want to use software, you need a microcomputer on the board--which you do not mention having.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
16
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K