Thinking about the problem of windows setting all the pins high at boot, there are 2 ways I can see round this:
1) Add a break switch to the circuit, that prevents rotation until booted, then flip it until next time you reboot.
2) Assuming all the pins go high, and not crazy/random - we could simply use 2 pins to control. Only rotate when say pin1 is high and pin2 is low. (Maybe a NOT gate to invert this to use in the circuit). This would prevent the monitor rotating until we specify.
I like 2 best. The way I see it, if you just stuck 2 power transistors in the circuit with there base/emitter junction connected to the data ports, and the collector/emitter before your AC motor (below the master double-throw switch). Then just have a NOT gate inverting the input to one of the transistors. (There may be an easier way of redesigning the circuit to avoid adding a NOT gate - its been a while since I've done this)
If that worked, you could lose the double-throw switch all-together.
Now, assuming it all works at this point, it means we can tell it to rotate whenever we want - but we don't know which way!. So you can just take the output from your detecting microswitches and feed them into some parallel port inputs for us to detect. (I need to check up which pins we can do this on - 16 and 17 look promising).
From there we just need to know the orientation of the game - and if we are getting really flash, a front-end that remembers the orientation of the last-played game and puts the FE in that orientation. I'm sure I've read someone else trying to sort this exact problem out in another thread. (Of course we don't have to do this - we could rotate the monitor back to default after each game played so the fe knows nothing about it....)
danny_g if you are up for trying it we should probably crawl before we walk. I forgot to ask - are you running XP? On this web page:
http://neil.fraser.name/software/lpt/Theres a program called lpt.exe that lets you monitor and set all the pins on your parallel port on the fly. I suggest you throw in a couple of power transistors and stick them in Data ports 0 and 1. Theres a pinout here:
http://www.rfcafe.com/references/electrical/parallel_port_pinout.htmObviously you'll have to wire up some pins on a DB25 connector. Also you may need to set your parallel port to be in SPP mode in your motherboards bios. Also as you are testing you may want to disconnect the parallel port connector until you've booted and set all the pins to off....
PINOUT:
