PDA

View Full Version : Yes!



P1IC
04-19-2009, 10:44 AM
I'm taking this forum at its word. It's billed as being for the purposes of posting the latest info about our simpits. So here goes.

Don't hold your breath - I have no pics. All I have is the result of successful tests. Here's what I'm doing.

I'm building a simpit for the LVLD 767, with my own design and build of interface hardware and software, using an off-the-shelf USB module to communicate with FSUIPC and FSCONV. That module is connected to my interface board based on PICs.

So I wrote a basic interface routine for the buffering PIC, and used C++ to liaise between that software and FSUIPC through the USB module. My first test was to see if I could simply use a toggle switch hanging off the prototyping board to operate the taxi light switch on the C172, and to get back from the 172 a signal showing that the taxi light is on, which would light up a LED on my prototype board.

It worked! You have no idea how totally chuffed I am! :D :D Especially since I had already made the assumption that, one way or another, I would make this work, and had shelled out a fair bit on switches, pots, indicators etc to populate the simpit.

Yes, I know, not quite in the same league as all the OpenCockpit stuff and other commercial products, yet, but I'll get there! ;)

Rodney
04-19-2009, 11:26 AM
Congratulations! There is nothing better than going from the unknown to to achievement no matter how big or small. This whole hobby is centered on that, doing something that the original flight simulator program was not conceived around.

Matt Olieman
04-19-2009, 11:32 AM
Fantastic, Congratulations and sure will look forward to more news as you progress. New ways of interfacing with MSFS is always good to hear.

Thanks,
Matt Olieman

JBaymore
04-19-2009, 11:59 AM
P1IC,

Only now do you understand the power of the Dark Side. Your life will never be the same. Beware the Dark Side of flight simulation. ;)

best,

................john

fweinrebe
04-19-2009, 03:16 PM
Congratulations. I know the feeling.

What PIC did you use?

P1IC
04-19-2009, 10:59 PM
Congratulations. I know the feeling.

What PIC did you use?

Thanks for the question, and thanks to everyone who has offered their congrats and encouragement.

I will use several different devices for different channels in the interface. For those which require 7-segment LEDs I'll use the lowest spec PIC I can get away with which has that capability, probably the 16F914 unless someone can suggest a better choice :D, and for other channels I'll use something cheap like the 16F628 or lower (again, unless…). Regarding the 7-seg displays, I'm still not sure that I shouldn't use a bunch of dedicated 7-seg drivers for that, taking serial BCD data from a PIC and simplifying my programming task considerably.

The main PIC which does the comms between the cockpit and the USB module is the 16F877A, and I use that because my design requires three 8-bit ports: one dedicated to talking and listening to the USB module (Port B), one for channelised data from the cockpit (Port D) and one for channel addressing and data in to the cockpit (Port C). I'll use three four-to-sixteen mutiplexers for addressing, which will allow up to 16 x 16 x 16 channels. More than enough for the 767! And lots of diodes for AND gating to provide the final channel ident signals. I also need 4 bits from Port A for USB handshaking and a couple of bits from Port E for assorted internal interface signals.

Well, that's the BIG PLAN! Lots of work to do, of course, but now at least I know that the basic communications are proved. Did I tell you I was chuffed?

I'm using the MPLAB IDE for PIC software development, and MS Studio 8 C++ IDE for the PC app which sits between the USB module and FS2004 (via Pete's FSUIPC and Nico's FSCONV - the FSCONV application is still not tested here yet, but I'm certain that it will be OK :shock:). The PIC programmer is a Willem II running in serial programming mode (ICSP) using a chip programmer app called EpromM51.

The USB module is a standard FTDI FT245BM based device.

Tony Hill
04-20-2009, 12:58 AM
Congrats...while I bumble away getting a commercial GUI to answer a switch in the pit via a commercial board, I am constantly amazed at you guys who do the programming and building yourselves....Well done!