Page 1 of 6 123456 LastLast
Results 1 to 10 of 54

Thread: rotary knob to keyboard encoder

  1. #1
    Maximum Bitrate
    Join Date
    Jan 2005
    Posts
    515

    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

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Maximum Bitrate
    Join Date
    Jan 2005
    Posts
    515
    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

  4. #4
    Maximum Bitrate
    Join Date
    Jan 2005
    Posts
    515
    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

  5. #5
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #6
    Maximum Bitrate
    Join Date
    Jan 2005
    Posts
    515
    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

  7. #7
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    I find them at local electronics junk stores. Usually about $1 to $3 for a cheap one.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #8
    Maximum Bitrate
    Join Date
    Jan 2005
    Posts
    515
    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

  9. #9
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  10. #10
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Page 1 of 6 123456 LastLast

Similar Threads

  1. MMI style rotary encoder install - details
    By Tony G in forum Input Devices
    Replies: 59
    Last Post: 06-01-2008, 02:41 PM
  2. ccStick rotary encoder
    By Cirion in forum Input Devices
    Replies: 7
    Last Post: 02-07-2007, 04:46 PM
  3. Ford Radio Rotary Encoder via PS/2 Mouse
    By spudgunblunder in forum Input Devices
    Replies: 18
    Last Post: 01-27-2007, 01:13 PM
  4. Rotary encoder "OSK" - Request
    By Maximus in forum Centrafuse
    Replies: 8
    Last Post: 09-23-2005, 04:20 PM
  5. 7 way rotary knob
    By monkeycat in forum Input Devices
    Replies: 12
    Last Post: 03-09-2005, 07:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •