The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Input Devices

Reply
 
LinkBack Thread Tools Display Modes
Old 01-30-2007, 08:00 PM   #1
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
rotary knob to keyboard encoder

does anyone here know of a DIY rotary to keyboard encoder plan I have a complete factory panel converted and wired to a keyboard encoder however I want to add a rotary knob to the panel as there is a space it will fit. but can't seem to find a converter priced below $40. So like I said does anyone know of plans for a DIY rotary to keyboard encoder?

Thanks,
Yonu
yonu is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 01-30-2007, 08:14 PM   #2
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
get a BCD rotary endoder and use a comparator to determine which direction it is going. Then use a if this direction then send code xxxx, if othe rdirection send yyyy, else not moving so no code.
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 08:23 PM   #3
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
any chance of diagram or a slightly more detailed description the coding makes sense and I looked up a encoder that is a BCD encoder bit I am having a little trouble picturing this setup

Thanks,
Yonu
yonu is offline   Reply With Quote
Old 01-30-2007, 08:31 PM   #4
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
I forgot to add that I have a rotary knob that I would prefer ro use as it is a double rotary on one shaft but if i can't use it oh well

Thanks,
yonu
yonu is offline   Reply With Quote
Old 01-30-2007, 08:39 PM   #5
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
well what I see is you want something where you turn the knob to the left, it sends a 'L' key to the computer. If you turn it right, then it sends 'R' or something. That way you can control it.

So if you get a BCD knob it will send out a binary value depending on where it is.

Have some clock at a relatively slow speed like 10Hz or maybe 15Hz where it saves the current value to a memory block, and then use a 3 value comparitor to compare the BCD in memory to the one currently on the knob. If the current position is greater than the previous value, then it is being turned clockwise. If the value is less, then counterclockwise. If no change, then not moving.

This is all hardware end.

Now use the left/right/no_movement output of the comparator to a keyboard circuit to send whatever key you want on each of those values.
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 09:00 PM   #6
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
ok 2 questions what kind of price would I be looking for on the BCD knobs as i havn't had much luck finding one that has a price on it just information about them

Thanks,
Yonu
yonu is offline   Reply With Quote
Old 01-30-2007, 09:11 PM   #7
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
I find them at local electronics junk stores. Usually about $1 to $3 for a cheap one.
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 09:16 PM   #8
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
all we have around here is radio shack and a little wannabe electronic store would it be labeled as BCD? and I take it the the comparator would be labeled comparator? sorry I am used to repairing and hacking existing items not scratch building

Thanks,
Yonu
yonu is offline   Reply With Quote
Old 01-30-2007, 09:37 PM   #9
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
Here are really cheap parts from the early 80's if not before. Meaning really cheap. THey still work.

Nowadays they use PIC's. After TTL, there was CMOS, and now there are fully programmable chips.

74LS page: http://www.unicornelectronics.com/IC/74LS.html

74LS682 (An 8bit comparator): http://www.unicornelectronics.com/ft...84-685-688.pdf

Truth table is on page 2 of the pdf.
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 09:38 PM   #10
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
One of the comparator chips is $1.50 just to let you know.

LS just means a a low power version.

TTL runs off of 5v, and CMOS uses 3.3v.
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 09:43 PM   #11
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 7,442
Quote: Originally Posted by yonu View Post
all we have around here is radio shack and a little wannabe electronic store would it be labeled as BCD? and I take it the the comparator would be labeled comparator? sorry I am used to repairing and hacking existing items not scratch building

Thanks,
Yonu

BCD: Binary Coded Decimal. Instead of giving you this:

0: 1000
1: 0100
2: 0010
3: 0001

it gives you this:

0: 00
1: 01
2: 10
3: 11
2k1Toaster is offline   Reply With Quote
Old 01-30-2007, 09:57 PM   #12
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
Thanks I will look into that.
Question can you get dententless(sp?) encoders in this type?

Thanks,
Yonu
yonu is offline   Reply With Quote
Old 01-31-2007, 02:05 AM   #13
Constant Bitrate
 
MrJamieR's Avatar
 
Join Date: Jan 2007
Location: Melbourne, VIC
Posts: 147
Would an Audi style MMI style rotary encoder do the trick?
TonyG has a great thread on his solution. (Actually it's better than great it's gobsmacking.)
http://www.mp3car.com/vbulletin/show...&highlight=mmi
MrJamieR is offline   Reply With Quote
Old 02-01-2007, 07:02 AM   #14
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
I looked in to Tonyg's and unless I am mistaken his uses a mouse board I would prefer to tie it into my keyboard encoder as that alone is a tight fit and I already have about 5 buttons on it now and about 2 more to add so I would prefer not to change it. I also attempted to hack a mouse just for the encoder but have had no luck with getting it to work so I think first of the week I am going to order the parts to build one. Thank you for the info though

Thanks,
Yonu
yonu is offline   Reply With Quote
Old 02-04-2007, 07:44 PM   #15
Variable Bitrate
 
Join Date: Jan 2005
Posts: 321
well I ended up dropping the rotary encoder from the panel as I was unable to find a encoder that would fit with the clerance I have behind the panel. Thanks for the help on it

On a similarly related topic what would be required to split off say 3 switches that use a single resistance wire into 3 wires( resistors or a full blown circuit?

Thanks,
Yonu
yonu is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MMI style rotary encoder install - details Tony G Input Devices 59 06-01-2008 01:41 PM
ccStick rotary encoder Cirion Input Devices 7 02-07-2007 03:46 PM
Ford Radio Rotary Encoder via PS/2 Mouse spudgunblunder Input Devices 18 01-27-2007 12:13 PM
Rotary encoder "OSK" - Request Maximus Centrafuse 8 09-23-2005 03:20 PM
7 way rotary knob monkeycat Input Devices 12 03-09-2005 06:30 AM


All times are GMT -5. The time now is 08:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics