Results 1 to 5 of 5
Thread: Simulating Encoders
-
07-06-2008, 12:35 PM #1
Simulating Encoders
gentlemen...g'day
there is a requirement to not only have a rotary switch operate directionally, but to also do that to predetermined positions (accurate # of steps up and down). e.g. OFF -1 - 2 - 3 etc. examples are (on the 737NG) the Autobrake, Wiper Controls, Panel Lights, Pressurisation Auto/Man/Alt and even the Starter Switches.
so i'm sat here wondering how i can operate these switches exactly. hmmm, has to be an answer. and there is. rotary encoders were the easy answer for directional control, but they did not give me the exact switch 'Click Position'.
2 bit gray encoders are basically two continuity circuits made to contact with a 'common' in a predetermined arrangement as they rotate. it's this arrangement or pattern that the control (either hardware or software) sees and acts upon. it doesn't matter what your control is, it is looking for this 'switch change state' to act upon.
so i decided to replicate the switching behaviour of a 2 bit gray encoder with a 2 pole 6 way rotary switch. result is excellent. it works, it works well and i thought it was worth sharing. see http://www.737ng.co.uk/help.htm for how i did it.
i'll upload this later in the week when i get my head round how to do it. hope this gives lots of you things to think about.
have a good one tomorrow, i will (me and my soldering iron)
best regards as always ... ian
-
Post Thanks / Like - 2 Thanks, 0 Likes, 0 Dislikes
-
07-07-2008, 03:16 AM #2
That is great Ian. But why not just use a multi-position switch? You can get one for a dollar or two at any Radio Shack or equilivent.
God's in command, I'm just the Pilot.
http://www.geocities.com/andytulenko/
-
07-07-2008, 05:33 AM #3
That's a great news Ian, Simboards support encoders too. I have all my radio's going. Andy I think that is the cheap rotary switch but it is now capable of 'indexing' which is the only way into some of PMDG's switch functions.
I have a big issue with FSUIPC 3.81, when I install the .dll in the modules folder, all my Open GL gauges disappear. Any ideas Ian? I'm wondering if I need to re-install everything. I'm keen to get into 'mousetrapping'!
Gwyn
737NG using Prosim737, Immersive Calibration Pro, Aerosim Solutions motorized TQ & cockpit hardware, CP Flight MCP & FDS SYS1X, SYS2X & SYS4X, FDS PRO FMCs, AFDS units & Glarewings, Matrix Orbital ELEC display, Pokeys Landing & Cruise alt display, Buttkicker Gamers, 3 x BenqMW811ST projectors with a Matrox Th2Go
http://www.aerosimsolutions.com.au
Supporter of MyCockpit.org, please join me in donating!!!
-
07-07-2008, 11:30 AM #4
Outstanding news Ian, Very clever indeed
-
07-07-2008, 08:54 PM #5
- Join Date
- Oct 2004
- Location
- Berkshire, UK
- Posts
- 118
I wonder if we are now getting into a situation where some of the representative config functions in the .INI files are global rather than FS/FSX specific and are affecting Windows/Vista calls. This may well appear to be a rather ambigous response to the above question but I am now begining to see lots of applications where I have assigned complex sets of keys (permissable) to rotary encoding interpretation only to find that the OS has also been directly/indirectly affected.
In my case it has not been an FSUICP problem. The question that needs to be asked is are the application writers validating their products to ensure that they do not conflict with OS Global calls!
Bill.
Similar Threads
-
encoders again
By cliff707 in forum I/O Interfacing and HardwareReplies: 0Last Post: 03-06-2011, 02:22 AM -
where to get encoders
By djcevera20 in forum General Builder Questions All Aircraft TypesReplies: 9Last Post: 06-10-2009, 07:07 AM -
Rotary Encoders
By PittsburghLever in forum General Builder Questions All Aircraft TypesReplies: 13Last Post: 10-04-2008, 03:59 AM -
!help! Need Encoders
By JOSE J GONZALEZ AVILA in forum Cockpit Parts and Motion PlatformsReplies: 2Last Post: 02-02-2008, 05:28 PM
Pretty Girls from your city for night
Generic Analog Gauges