Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Badminton Scoreboard

Status
Not open for further replies.

pradoartz.in

Newbie level 4
Newbie level 4
Joined
May 10, 2017
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
55
Hello,
Anyone can point me to project of electronic up/down counter scoreboard with Arduino uno as brain?

For reference please find the image below.
Badminton-Scoreboard-High-Brightness-LED-Score-Board.jpg


Thank you
 

Hi,

Searching for arduino scoreboard project brings up 102,000 results. These are four it might be worth looking at to see if they are any good.

7-Segment LED Scoreboard - My First Project

Scoreboard project

Portable Arduino Scoreboard

Remote Controlled Arduino Scoreboard Using LED Strips

Thanks for the reply bro..
After a long search i got the code, but not the circuit. can u help me in designing the circuit for the code below..


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
byte seven_seg_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,0,0,1,1 }   // = 9
                                                           };
const int one_u = A0; 
const int one_d = A1;     
const int one_ahlah = 10;
const int one_baga = 9;
int one_us=0;
int one_ds=0;
int one_ufront = 0;
int one_dfront = 0;
int one_count = 0;
//up2 a2-up, a3-down, 12-ahlah,11-baga
//a4 - reset
const int two_u = A2; 
const int two_d = A3;     
const int two_ahlah = 12;
const int two_baga = 11;
int two_us=0;
int two_ds=0;
int two_ufront = 0;
int two_dfront = 0;
int two_count = 0;
 
const int reset = A4;
int reset_s = 0;
int res = 0;
 
void setup() { 
  Serial.begin(9600);               
  pinMode(2, OUTPUT);   
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(one_u, INPUT);
  pinMode(one_d, INPUT);
  pinMode(two_u, INPUT);
  pinMode(two_d, INPUT);   
  pinMode(reset, INPUT); 
}
void sevenSegWrite(byte digit) {
  byte pin = 2;
  for (byte segCount = 0; segCount < 7; ++segCount) {
    digitalWrite(pin, seven_seg_digits[digit][segCount]);
    ++pin;
  }
}
 
void loop() {
 
  res = digitalRead(reset);
  if(res==HIGH && reset_s==0){ reset_s =1; }
  if(res==LOW && reset_s ==1){ reset_s =0; one_count = 0; two_count = 0;}  
  one_us = digitalRead(one_u);
  if(one_us==HIGH && one_ufront ==0){one_ufront =1;}
  if(one_us==LOW && one_ufront ==1) {one_ufront =0; one_count++;}
  one_ds = digitalRead(one_d);
  if(one_ds==HIGH && one_dfront ==0){one_dfront =1; }
  if(one_ds==LOW && one_dfront ==1) {one_dfront =0; one_count--;}
  
  if(one_count>99){one_count = 99;}
  if(one_count<0){one_count = 0;}      
   ////////////////////////////////////
   two_us = digitalRead(two_u);
  if(two_us==HIGH && two_ufront ==0){ two_ufront =1; }
  if(two_us==LOW && two_ufront ==1) { two_ufront =0;  two_count++; }
  two_ds = digitalRead(two_d);
  if(two_ds==HIGH && two_dfront ==0){ two_dfront =1; }
  if(two_ds==LOW && two_dfront ==1) { two_dfront =0;  two_count--; }
  
  if(two_count>99){two_count = 99;}
  if(two_count<0){two_count = 0;}
 
  
    digitalWrite(one_ahlah,1);  
    digitalWrite(one_baga,0);  
    digitalWrite(two_ahlah,0);  
    digitalWrite(two_baga,0);
    sevenSegWrite(one_count/10);
    delay(2); 
    digitalWrite(one_ahlah,0);  
    digitalWrite(one_baga,1);  
    digitalWrite(two_ahlah,0);  
    digitalWrite(two_baga,0);
    sevenSegWrite(one_count%10);
    delay(2);        
    digitalWrite(one_ahlah,0);  
    digitalWrite(one_baga,0);  
    digitalWrite(two_ahlah,1);  
    digitalWrite(two_baga,0);
    sevenSegWrite(two_count/10);
    delay(2);     
    digitalWrite(one_ahlah,0);  
    digitalWrite(one_baga,0);  
    digitalWrite(two_ahlah,0);  
    digitalWrite(two_baga,1);
    sevenSegWrite(two_count%10);
    delay(2); 
      
   
}





Reference: https://www.youtube.com/watch?v=7-MPmtZds10
 
Last edited by a moderator:

Hi,

Glad to hear you found something. How about starting with the circuit diagram available in the YouTube links under the video, above the comments, start there and see if you have any questions about it:


Circuit Diagram 7z OneDrive
 

Hi,

Glad to hear you found something. How about starting with the circuit diagram available in the YouTube links under the video, above the comments, start there and see if you have any questions about it:


Circuit Diagram 7z OneDrive

in the circuit diagram, there is no push-button and resistors placed(sorry for being so dumb, new to electronics). so i need a full schematic with all buttons and resistors.
Thanks.
 

In hand i got ,
- 4 x common cathode 7 segment display
- 1 Arduino Uno R3
- 5 x Push buttons

Thanks..
 

Hi,

The second picture shows what I guess is an example pushbutton powered by the Arduino 5V pin and the other side of the button goes to an analog input pin - presumably you'd need to repeat this for the other four buttons. The resistors in the picture are all 4K7. Not sure if a current limiting resistor from 5V pin to button, or from button to input pin wouldn't be a necessity.

Odd project - it shows five buttons and 2x2 seven-segment displays, but the circuit drawing does not reflect this.

Assuming you understand Arduino code, you'd need to wire the other segments and buttons accordingly, and set the I/Os to your board/set-up.

One thought - not sure why this needs two buttons per double-digit scoring seven-segments, one button should be enough to increment from 0 to 99. You may only need three buttons, one for each team/player and one for reset.

I only know a little python for Pi, the scoreboard code looks similar, but it's beyond me, so you'd need to work on fitting the code to the scoreboard yourself.

You could also have done this with four counter ICs like the CD4033 or CD4026, without the need for the Arduino.

I don't see anything in that code that looks like it serves to de-bounce the button presses, so you'd need to verify that yourself, and if you don't find a way to do it in software it is easy to do with a capacitor and a resistor instead, but obviously code takes up less space than six to ten components on a board.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top