Binary code rotary switch

Status
Not open for further replies.
The idea to implement simple counter is interesting. I have no idea where to start with it but I'll dig into it🙂
This circuit is probably a good start: it is in fact the range selection for an instrument I designed, but bits are agnostic, and you can use them i!n whatever way you want.

The schematic section is not very legible, sorry about that, but since it's not that complicated, you will probably be able to figure out the circuit.

Here, it is designed for 4 bits, of which 3 are used, but you can cascade another counter for more bits by just following the cascading instructions included in the 4029 datasheet.

The circuit remains fully static when no modification is entered, and it even offers an auto-repeat function if you keep one of the buttons depressed

Edit:

Obviously, neither the LED indications nor the diode outputs decoding apply in your case
 

Attachments

  • rangeselect.png
    rangeselect.png
    43.5 KB · Views: 108
Last edited:
Thanks for the offer, Osvaldo! I am definitely interested to try but I would prefer a rotary encoder as an input. I have a couple of Bourns EM14 series optical encoders with quadrature output lying around. Is there a way to use such to drive the counters? I just don't like using buttons for volume control duties.

Regards,
Oleg
 
I think I found a better solution for my needs. Attached is the basic ADC circuit which can directly drive R-2R attenuator through its parallel outputs. Just hook up the wiper of a linear pot to Vin pin while connecting the pot between supply and GND and you are good to go. The advantages are circuit simplicity, no need for expensive switch, and volume knob would actually indicate the volume setting which is not so trivial to achieve with rotary encoder. Internal clock can be made slow enough not to contaminate the system with EMI. I would need to provide a reset pulse after power on instead of the switch for automatic ADC start. I guess a simple flip-flop fed by RC delay networks on its inputs with slightly different delay times would provide a reset pulse. Or maybe I can just use a timer IC like 555 for this.

Regards,
Oleg
 

Attachments

  • BasicADC.png
    BasicADC.png
    134.4 KB · Views: 89
Status
Not open for further replies.