Go Back   Home > Forums > Design & Build > Parts
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Parts Where to get, and how to make the best bits. PCB's, caps, transformers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 9th April 2008, 05:53 PM   #1
robmil is offline robmil  United Kingdom
diyAudio Member
 
Join Date: Jun 2004
Location: London
Default Rotary encoder instead of buttons

Hi

I have a signal switching circuit which is based solely on momentary push button and relay activation. I would like to convert part of this (volume up and down) to a rotary type. I'm not too up with rotary encoders etc. Is this a simple exercise converting up/down buttons to rotary encoder?

thanks

Rob
  Reply With Quote
Old 9th April 2008, 10:04 PM   #2
diyAudio Member
 
justblair's Avatar
 
Join Date: Jan 2007
Location: Glasgow, Scotland
Default Re: Rotary encoder instead of buttons

Quote:
Originally posted by robmil
Hi

I have a signal switching circuit which is based solely on momentary push button and relay activation. I would like to convert part of this (volume up and down) to a rotary type. I'm not too up with rotary encoders etc. Is this a simple exercise converting up/down buttons to rotary encoder?

thanks

Rob
Hmmnn Simple is such a subjective term,

Rotary encoders must be decoded in order to make them work.

Try doing a search on gray code (a common type of encoder) to get an explanation of how it works.

You really need a processor to convert the movement of the rotary encoder to volume up and down commands. You could use a PIC or AVR controller, but this is going to take some programmming.

Maxim make a digital volume pot the MAX5440 which can take the signal direct from a rotary encoder however it only comes in a surface mount package. I have played with trying to get it to work but failed. I got fed up eventually. I have bought a pic programmer and eventually will get round to learning JAL properly in order to get the same result.

Alternatively there are a couple of people here who have programmed chips to do this. You could look through threads and ask nicely for some code. You would still need a programmer of some sort.

I an determined that eventually I will get one to work. But I dont see it as a venture that i will be able to complete in the short term.

Hope my experiance isn't too much of a downer on your idea. Rotary encoders are way cool. Digital pots have some big advantages over stereo wipers in terms of size and tracking between channels.

Push buttons are a bit easier. Maxim make a chip called the DS1802 which can be ordered in DIP and is easy to kmnock up into a design. It is limited by the voltage of your line in. Pedja Rogic has details on using this chip on his web site.
  Reply With Quote
Old 10th April 2008, 01:17 AM   #3
diyAudio Member
 
I_Forgot's Avatar
 
Join Date: Jan 2005
Location: Phoenix, Az.
If you're up for learning a little programming, it is really easy to decode a rotary encoder- usually just a table look-up.

You could probably skip the programming and wire the whole thing using logic chips, but a uC would only require 1 chip, so wiring would be much simpler.

I_F
  Reply With Quote
Old 10th April 2008, 09:44 AM   #4
robmil is offline robmil  United Kingdom
diyAudio Member
 
Join Date: Jun 2004
Location: London
Thank you for your replys. It's exactly what I needed.
R
  Reply With Quote
Old 10th April 2008, 11:52 AM   #5
ALBQ is offline ALBQ  United States
diyAudio Member
 
Join Date: Dec 2003
Location: Albuquerque
Default Check thread - Basic Stamp w/Rotary Encoder

Check this thread for circuit using a BasicStamp
ALBQ

DIY Remote Control for Everyone
  Reply With Quote
Old 10th April 2008, 05:42 PM   #6
Chartal is offline Chartal  Canada
diyAudio Member
 
Join Date: Nov 2004
Location: Montreal
I think you need pulse switch.

Look this site, there are some information about theses switches.
Go to the bottom -->> An Alternative to a Rotary Encoder
  Reply With Quote
Old 10th April 2008, 07:07 PM   #7
diyAudio Member
 
theAnonymous1's Avatar
 
Join Date: Feb 2004
Location: Anonymityville
Quote:
Originally posted by Chartal
I think you need pulse switch.

Look this site, there are some information about theses switches.
Go to the bottom -->> An Alternative to a Rotary Encoder
I've been looking for something like this, thank you.

Here is a link to one mouser carries for $4.95 ......

http://mouser.com/Search/ProductDeta...9HU%2fxQ%3d%3d
__________________
"If you don't like funerals don't kick sand in Ninja's face." - Ninja
  Reply With Quote
Old 10th April 2008, 11:40 PM   #8
diyAudio Member
 
Join Date: Feb 2007
Location: Boston, Massachusetts
The AVR-based Arduino open-source microcontroller is another nice option.

I found it extremely easy to learn (as a software guy with a liberal arts degree) and because it goes right into your USB port you don't need to buy a programmer or anything to do your first project.

www.arduino.cc is the homepage.
  Reply With Quote
Old 11th April 2008, 06:51 AM   #9
robmil is offline robmil  United Kingdom
diyAudio Member
 
Join Date: Jun 2004
Location: London
Thanks for all the help. I think I may go for the pulse switch. I've attached a PDF of the control ciruit. It's only the volume I want on a rotary. The I/O drives a series of relays through several 4094s and 2 x ULN2003s. The preamp has a resistor ladder on it.

R
Attached Files
File Type: pdf preamp control model (1).pdf (41.0 KB, 109 views)
  Reply With Quote
Old 11th April 2008, 06:51 AM   #10
robmil is offline robmil  United Kingdom
diyAudio Member
 
Join Date: Jun 2004
Location: London
just found the alps pulse switch. It has 40 detents which is not enough unfortunately. Looks like the rotary encoder option is better for this application.

R
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nice rotary encoder for audio? h_a Parts 4 14th February 2009 10:43 AM
How to use the Rotary Encoder to control the cs3310 ? cac liu Digital Source 11 24th July 2007 11:32 AM
Good rotary encoder for preamp project mbcouple Digital Source 4 31st October 2006 09:39 PM
Rotary Encoder. Need help very much! vytas Digital Source 11 23rd November 2005 12:47 PM
Digital rotary encoder rho Parts 17 3rd December 2003 03:39 PM


New To Site? Need Help?

All times are GMT. The time now is 01:16 PM.

Page generated in 0.11657 seconds (80.20% PHP - 19.80% MySQL) with 11 queries

Copyright ©1999-2012 diyAudio