The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-21-2006, 12:25 PM   #1
Constant Bitrate
GiODi's CarPC Specs
 
Join Date: May 2006
Location: Simi Valley, CA
Vehicle: 2001 Infiniti QX4
Posts: 163
My Photos: (1)
Rotary Encoder Switch Emulation

So I would like wire something to this board, that I could control through software, to make the board think that the knob is being turned. I believe it's a rotary encoder switch, it turns infinitely and 'clicks'.
Any suggestions?
Attached Images
  
GiODi is offline   Reply With Quote
Sponsored Links
Old 08-21-2006, 12:29 PM   #2
Maximum Bitrate
 
Join Date: Apr 2004
Posts: 757
My Photos: (2)
It pretty easy, all you have to do is hook it up to the scroll wheel of a mouse. Check out this thread
Kalt is offline   Reply With Quote
Old 08-21-2006, 12:35 PM   #3
Constant Bitrate
GiODi's CarPC Specs
 
Join Date: May 2006
Location: Simi Valley, CA
Vehicle: 2001 Infiniti QX4
Posts: 163
My Photos: (1)
Thanks...I saw that thread, but I want to controll it through software, not hardware.
GiODi is offline   Reply With Quote
Old 08-21-2006, 12:43 PM   #4
Maximum Bitrate
 
Join Date: Apr 2004
Posts: 757
My Photos: (2)
I see, i dont think it would be possible unless you make some kind of device that hooks up to the encoder and can be controlled by your computer.

What kind of board is that? Are you trying to control your factory radio via the computer?
Kalt is offline   Reply With Quote
Old 08-21-2006, 01:04 PM   #5
Constant Bitrate
GiODi's CarPC Specs
 
Join Date: May 2006
Location: Simi Valley, CA
Vehicle: 2001 Infiniti QX4
Posts: 163
My Photos: (1)
It's actually my climate control. I've figured out how to control the buttons with a relay, now the only thing left is this knob. That's exactly what I am looking for. Maybe a PIC? I don't know much about them though...
GiODi is offline   Reply With Quote
Old 08-21-2006, 01:09 PM   #6
Constant Bitrate
GiODi's CarPC Specs
 
Join Date: May 2006
Location: Simi Valley, CA
Vehicle: 2001 Infiniti QX4
Posts: 163
My Photos: (1)
Well I found this link http://ccrma.stanford.edu/~dfl/250/rotary.htm . I was thinking maybe I could wire it up to a serial port and send binary data?
GiODi is offline   Reply With Quote
Old 08-21-2006, 01:11 PM   #7
FLAC
evandude's CarPC Specs
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Vehicle: 99 Jetta Wolfsburg
Posts: 937
My Photos: (0)
figure out how the pins are toggled as it rotates, and then you can easily emulate it. It looks like one pin is grounded and the others are pulled up with resistors, and with 2 pins my first guess would be a simple quadrature encoding scheme.

You could then toggle those 2 lines directly by hooking up to the control lines on the serial port, or to the parallel port, (thus just dealing with some simple PC-side software) or you could do something like use a PIC to toggle those lines, and then communicate with it via serial or something.
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net
evandude is offline   Reply With Quote
Old 08-21-2006, 01:38 PM   #8
Constant Bitrate
GiODi's CarPC Specs
 
Join Date: May 2006
Location: Simi Valley, CA
Vehicle: 2001 Infiniti QX4
Posts: 163
My Photos: (1)
I like how you make it sound so simple.
So I did a little research on here's what i'm thinking:

-wire pins 1 & 2 to output pins, and wire 3 to the ground
-to make it thinks it's going one direction send 01010101 to pin 1 and 10101010 to pin 2 | for the other direction would be 10101010 to pin 1 and 01010101 to pin 2

Am I going in the right direction?

Edit: On second thought, I should hook them up to inputs first and read the data, then go from there?

Last edited by GiODi; 08-21-2006 at 01:41 PM.
GiODi is offline   Reply With Quote
Old 08-25-2006, 11:32 PM   #9
My Village Called
0l33l's CarPC Specs
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
My Photos: (0)
It looks like a potentiometer. There are a few digital ones out there that you could hook up to the IC.
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 09-01-2006, 10:38 PM   #10
Constant Bitrate
 
Join Date: Oct 2002
Vehicle: ford 150 etc
Posts: 170
My Photos: (0)
Here is a circuit that decodes the A and B signals into UP and DOWN pulses

http://www.interq.or.jp/japan/se-inoue/e_ckt10_3.htm
davesaudio2 is offline   Reply With Quote
Sponsored Links
Reply


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

Advanced Search
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 Off
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
Power Supply/OPUS Kill Switch SpaceMonkey Power Supplies 8 08-11-2006 10:58 AM
Rotary encoder "OSK" - Request Maximus Centrafuse 8 09-23-2005 03:20 PM
Capture GPS data at the flip of a switch Mr. Inquisitive GPS 4 02-02-2005 06:06 PM


All times are GMT -5. The time now is 12:54 AM.


Sponsored Links
The MP3car.com Store

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