Counter 7 segment display by knob

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
Hi, can someone please help me to build the 7 segment up and down counter by rotating the knob?
Please no programming as i have no idea about programming and the things that goes with it...
I need to build it by schematic.
I already build the 7 segment dual display with up, down and reset function but it's counting by pressing button.
I want to build the same one but to count up and down by turning knob.
Thank you!
 

MrChips

Joined Oct 2, 2009
34,807
Hi, can someone please help me to build the 7 segment up and down counter by rotating the knob?
Please no programming as i have no idea about programming and the things that goes with it...
I need to build it by schematic.
I already build the 7 segment dual display with up, down and reset function but it's counting by pressing button.
I want to build the same one but to count up and down by turning knob.
Thank you!
Google rotary encoder.
Here is one example:
http://www.instructables.com/id/Improved-Arduino-Rotary-Encoder-Reading/
 

ebeowulf17

Joined Aug 12, 2014
3,307
Could you just wire the output of a trim pot into a bar graph driver chip? Then you spin the knob to get higher or lower number of LEDs on display. It wouldn't have detents like a rotary encoder, but I'm not sure if that matters here.
 

JohnInTX

Joined Jun 26, 2012
4,787
If you study the waveforms from what I assume is a 2 line, quadrature encoder you'll observe that if you use one line as the clock and pick an edge to drive your count input, when that edge happens, the other line will be high or low depending on which way the shaft is turning. So, use an edge triggered up/down counter with a separate input for up/down. Drive the clock with one phase from the encoder and the up/down input from the other phase.

That's how you count up and down. The outputs of the counter then need to go to a suitable chip that will decode the counter's binary/BCD output to segments on the display.
 
Last edited:

k7elp60

Joined Nov 4, 2008
562
Hi, can someone please help me to build the 7 segment up and down counter by rotating the knob?
Please no programming as i have no idea about programming and the things that goes with it...
I need to build it by schematic.
I already build the 7 segment dual display with up, down and reset function but it's counting by pressing button.
I want to build the same one but to count up and down by turning knob.
Thank you!
Can you post a schematic of the seven segment display? If so I think I can give you a schematic of a rotary switch circuit. If I understand you correctly you want turn the knob one direction to increase the displayed number and turn the knob in the opposite direction to decrease the displayed number.
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
Can you post a schematic of the seven segment display? If so I think I can give you a schematic of a rotary switch circuit. If I understand you correctly you want turn the knob one direction to increase the displayed number and turn the knob in the opposite direction to decrease the displayed number.
Yes, that is correct! Will upload the schematic this morning of my dual 7segment display, i want instead of the button switch to use knob. Thanks.
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
Can you post a schematic of the seven segment display? If so I think I can give you a schematic of a rotary switch circuit. If I understand you correctly you want turn the knob one direction to increase the displayed number and turn the knob in the opposite direction to decrease the displayed number.
up down reset counter.jpg up down reset counter double 7 segment.jpg
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
Here is the schematic. It does not require and IC's. It does take 48 diodes and a rotary switch. The diodes do the decoding. It is possible to still use the 4511 drivers, but then the decoding is easier. The decoding then is 1248 binary code to the 7 segment.
View attachment 134549
I don't understand this circuit. Where do I connect the rotary switch and leds? Power and ground?
 

WBahn

Joined Mar 31, 2012
32,823
They make rotary switches that directly output BCD values.

Or is this a homework (or other school-related work) that has constraints on what you can and can't use and what you are expected to do? If so, what are they?
 

k7elp60

Joined Nov 4, 2008
562
I don't understand this circuit. Where do I connect the rotary switch and leds? Power and ground?
CONNECTIONS.jpg
The total circuit does not require any IC's. Connect the display and the external resistors to the same lines as the previous schematic. Make sure the resistors to each segment are in series with the segment and the switch line. The switch common goes to The + of the supply volatage and the display common goes to ground or the - of the supply voltage.
WBahn, I am aware of the switches that decode, or select the binary code and switch them to the common. I thought of that but was concerned about switch trancients if connected directly to the 4511 decoder.
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
They make rotary switches that directly output BCD values.

Or is this a homework (or other school-related work) that has constraints on what you can and can't use and what you are expected to do? If so, what are they?
I want to make counter by rotary switch for my home project
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
View attachment 134662
The total circuit does not require any IC's. Connect the display and the external resistors to the same lines as the previous schematic. Make sure the resistors to each segment are in series with the segment and the switch line. The switch common goes to The + of the supply volatage and the display common goes to ground or the - of the supply voltage.
WBahn, I am aware of the switches that decode, or select the binary code and switch them to the common. I thought of that but was concerned about switch trancients if connected directly to the 4511 decoder.
Thanks, will try later and let you know
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
They make rotary switches that directly output BCD values.

Or is this a homework (or other school-related work) that has constraints on what you can and can't use and what you are expected to do? If so, what are they?
How do I connect bcd switch to 7 segment? Can you do schematic?
 

Thread Starter

ekremgusani

Joined Mar 20, 2011
157
View attachment 134662
The total circuit does not require any IC's. Connect the display and the external resistors to the same lines as the previous schematic. Make sure the resistors to each segment are in series with the segment and the switch line. The switch common goes to The + of the supply volatage and the display common goes to ground or the - of the supply voltage.
WBahn, I am aware of the switches that decode, or select the binary code and switch them to the common. I thought of that but was concerned about switch trancients if connected directly to the 4511 decoder.
If I connect the 9V to common the Segment will not work at all but if I connect the 0V to common pin then it will show just the number 8. Don't know if I am doing something wrong. I am using the livewire to simulate the circuit. here is the screenshoot.brisi1.jpg
 
Top