Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Rotary switch as volume controller

Status
Not open for further replies.

tmoji66

New Member
Hi guys, hope youre doing well.
i have an old car stereo which ive been playing around to add a Bluetooth module to make some use out of it just for fun. The module has some pins used as physical play/pause vol+ and - buttons when connected to ground .i used the same component that has been used in car stereo board for volume control which is a rotary switch with 3 pins; i assumed these three are common , left and right pins, meaning when i rotate the switch right it connects the common pin to right pin and when i turn the knob left , the common and left pin are shorted. but playing around with multimeter buzz, i was shocked to see no matter in which direction i turn the knob all 3 left right and common pins get connected to each other. i though if there is anything happening its the PCB and board to blame so i tried to take out the switch and again noting changed, i took the actual switch apart and confirmed that ; yes its designed and built like that(please check the attached pics) i don't care what should i do about the module input im just really curious to know if any one knows if both vol+ and vol - have exact same behavior in this device how does the stereo recognize that I'm just now turning volume up or vise versa. or even why bother having two separate pin.
tnx for helping
 

Attachments

  • 1.jpg
    1.jpg
    256.3 KB · Views: 215
  • 2.jpg
    2.jpg
    310.3 KB · Views: 196
It's a rotary encoder, not a switch - it sends pulses out on each pin, phase shifted to show which way the control is turning.

Here's one of many sites explaining it:

 
For your interest, here's a two FF (1 IC package) circuit that decodes a rotary encoder output to CW and CCW pulses (the encoder reverses direction and thus phase at the 5s point):
It's thus possible to decode the encoder output with a relatively simple circuit without using a micro.

1697086169454.png
 
Last edited:
That might work with a solid-state encoder, but it would have problems with your typical cheap mechanical switched-type encoder since they bounce like regular switches do.
 
That might work with a solid-state encoder, but it would have problems with your typical cheap mechanical switched-type encoder since they bounce like regular switches do.
I was basically just showing the decoding function, but yes, a mechanical switch encoder would require a debounce circuit at the outputs of the encoder.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top