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.
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
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
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
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
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
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
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
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
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
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
Bookmarks