Wednesday, November 24, 2010

Let there be lights!

Have added a new chunk to the old girl. Aquired a very used 1971 Cessna 182 glareshield on Ebay. Thought it was just going to look better across the top of the instrument panel than the piece of pipe insulation I had on there before. It did indeed! It also came with factory lighting installed underneath the thing to shine on my panel. The lights were set up to go on with 28v dc from the 182. After some helpful advice from someone whose internet handle was Emesis over at mycockpit.org, I discovered that I could go to my local auto parts store, and replace the bulbs with 12v ones. Miracle of miracles! It worked! They had bulbs that fit perfectly, and cost less than a grande skinny latte.

I had heard of hacking a pc power supply to power 12v systems before, so a Googling I did go. Found out it is about as hard as sticking a paperclip in an electrical outlet, so I did it! Some sloppy soldering, cussing and head sratching later, and I had a real life lighted instrument panel!

Feel kinda like Harry Potter the first time a spell ever worked for him. It works, I am not sure how, and it seems very mystical. But Dammit...It worked.

Friday, November 12, 2010

Phidgets and frustrations

Beloved reader,

I am happy to report that through much trial and error, I have accomplished my mission of making some lights turn on off when they are supposed to.

I have the electronics and programming all figured out. Currrently I have a warning light for low vacuum, oil pressure, voltage and low fuel in left and/or right tanks. I am working on the physical interface now, and just need to figure out how to make the faceplate and printing. I think the marker lights are working too, but need to do more testing. I am confident that I know the process now though.

If anyone wants a copy of the project file so they do not have to reinvent the wheel, leave a comment and I will be happy to share via email.

I am currently using FSUIPC, FS2Phidgets 5 and a phidgets led64 card to make it happen. Will post pics when the housing is in place and working.

But for now, I feel like I am on the road to finishing something! Progress is very empowering.

Wednesday, November 3, 2010

Offsets and upsets

Dear Readers,

Have some updates to provide....
Ebay has been very bad to me lately, and I now have too many disparate parts lying around that will be beautiful someday, if I ever get off my a$$ and start attaching them to the flying part.

Yesterday's obsession was in getting my GoFlight radios (I have 2xGF-166, 1xGF46 and 1 x RP48) to all work properly when the flight was started in cold and dark mode. I figured out how to do this with much cursing and biting of nails by using the Lua GFpower module(which comes completely ready to go with fsuipc) and creating another Lua file named ipcReady.lua that only contained one line which reads:
ipc.runlua("GFpower.lua").

This was an incredibly easy thing to do, but was not a good intro to figuring out what a damn Lua even was. Apparently it is Portuguese for Moon. The More You Know ....

If anyone out there in cyber land reads this thing and wants to do it, please let me know, and I will help you with the files and/or setup.

To compound things, I got a cheap Phidgets 64 led card from Ebay a few weeks ago. It is a card that allows you to have 64 different leds light up! I love shiny stuff! I just got all of the connectors in the mail, and have rigged up a test and can make lights come on! The eventual plan is to have this thing drive leds to light up the Outer/Middle/Inner marker lights, the idiot lights in the warning panel, and possibly instrument lighting when I start to build my steam gauges.
I plan to interface it through a program called fs2phidgets which is supposed to make it play nice with FSX. Well, I am a little overwhelmed in getting the thing setup. I have read about 250,000 pages of fsuipc users manuals today to try and find out which signal kicks out the information to turn on these itty bittty lights. When I asked at the forum where I could find what I needed, the program developer basically told me that I just needed to read the GD manual, but the one I was reading was the wrong one, I was now a developer not a user. Software developer? Me? That is as crazy as the US Navy wanting me to go to Nuclear Engineering school while I was getting a D-- in high school trig.

Anyway, I opened up the FSUIPC SDK (Software Developers Kit for all of you non-developers out there) and found a neat program called FS Interrogate 2 that allowed me to glimpse some of the changes in status within FS as they happened. So now I have a huge pile of offset codes for my 8 little bitty light bulbs that I somehow magically interface with the phidget thingy and they all light up.

Tomorrow I will work on FS2phidgets and hope it all starts to make sense...

Unless someone tells me their Large Hadron Collider needs a new chief engineer and developer, in which case the world will probably collapse in a time singularity as I am trying to RTFM.