Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Dec 2010
    Location
    Luton, UK
    Posts
    5
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Lightbulb Introduction and new project

    Hello!

    Just thought I'd introduce myself, there are a few scattered simpit forums around but this one seems to be the home of all the UK peeps. There are some really inspiring builds on here, its great fun looking through them all.

    I've recently started on my own project and I plan on documenting my pains as I progress so others can learn from my adventures. Not sure how yet, maybe some sort of blog.

    Despite the wealth of information and interface kits out there (of which I am frequently referencing!) I have taken the decision to build everything from scratch. One of my major motivations for building a pit is to enhance my knowledge of electronics and PIC programming, so to that end i'm avoiding buying anything off the shelf.

    Which plane? Well I'm going through the motions of learning to fly at the moment so I'm starting at the bottom and going for something GA based, but I'm not too interested in tying myself to a single aircraft so its a more generic pit. I don't have the space to covert a whole room into an airport, I also don't know how long any of this will take, so I'm making every item as a small discrete component. The avionics might not match any specific aircraft but will be tidy, well made, functional representations.

    My two reasons for that are all aircraft (including choppers, excluding glass cockpit) have by and large the same instrumentation. That means I can freestand them on my desk, and reassemble them in different orders with relative ease. It also makes the build very manageable, as if I build a compass and then give up, I still have a working compass to enhance my simming.

    Architecture wise I'm using PIC18's all round with CAN controllers built in, so every component will be aware of all the others in the system. The hosting PC will have a USB/CAN adapter and host app to receive the commands, and will forward them on to FSX using the FSUIPC SDK. It's also cheap as chips.

    I haven't got anything to show for my work yet as I've literally just started breaking out the electronics (let alone the mechanics), but the first item I'm building is the COM and NAV radio electronics. Two six digit seven segment displays, dual concentric encoders and a swap button per unit, and two units in each enclosure.

    What seemed a daunting task a few months ago has become clearer by the moment as my knowledge of the PIC, CAN and FSX interface capabilities grow. Breaking the project down into bite size chunks really helps!

    I've already learnt a lot from lurking on these forums, so when I get to a point that there is something to document I look forward to passing some knowledge back.

    Chris

  2. #2
    Executive Vice President, MyCockpit


    Matt Olieman's Avatar
    Join Date
    Oct 2005
    Location
    Ocala, FL USA
    Posts
    3,155
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Hi Chris and welcome to MyCockpit. You'll find the site and it's members extremely helpful. I look forward to see your project grow.

    If you can't find the answer here, just ask, someone will help you.

    Good luck on your project.

    Matt Olieman

  3. #3
    150+ Forum Groupie
    Join Date
    Jul 2008
    Location
    Belgium
    Posts
    284
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Hey chris,

    Welcome to the forum, I'm sure you will find a lot help here.

    I would sure like to know more about your PIC and CAN interface. That is a complete different approach. I'm also building my radios with PIC18 and MAX display drivers but still don't know how to solve the USB interface.

    Regards, Wendy

  4. #4
    25+ Posting Member
    Join Date
    Feb 2007
    Location
    Georgetown, Texas
    Posts
    44
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Chris

    You may want to check out http://cross-simulator.com/download.php they are making an interface to FS and X-plane that uses the Can Aerospace protocol. If you start your system using this protocol you can not only make your own devices but also use "Real" devices that use this protocol.

    Good luck with you project.

    Dave

  5. #5
    10+ Posting Member
    Join Date
    Nov 2010
    Location
    UK
    Posts
    17
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Out of interest, why CAN? It is essentially an industrial bus and if you use it in not failure-critical or low EMI environment it loses its appeal very quickly.
    It usually surfaces in projects where you have to interface to real-world CAN devices but why build a system from ground up based on CAN?
    It is slow, has a large overhead, a royal pain to debug and has zero chance of finding somebody else's products that will "just work" when connected to your bus.

  6. #6
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Dec 2010
    Location
    Luton, UK
    Posts
    5
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Hi Dave,

    That link to the aero CAN is very interesting indeed. I did not know such a protocal already existed. Not only does it make total sense to comply to that, it looks like most of the PC App hard work has been done for me!

    Proach: I picked CAN as I don't know any other way! RS232 is a bit dated, and would be tricky getting data from every device I make to the PC. With CAN I can just daisy chain new things on the end. RS485 crossed my mind but the addressless format of CAN appealed.

    I know CAN from its automotive use rather than its aero use, and contrary to saying it has a large overhead I understand it to be pretty fast if not light. Interfacing with other gear hasn't been factored in as I don't plan on using anything (other than perhaps a complete, isolated, end to end hardware and software product) with it. A closed network just for the things I build (although as a bonus, it may well now be Aero CAN compliant, see above)

    You can get it onboard PICs for virtually no added cost, and it all hooks up on two wires. As I say, its the best solution I have as its the only idea I've had. That said I haven't prototyped it yet, but its such a simple protocal I don't foresee any major headaches?

  7. #7
    10+ Posting Member
    Join Date
    Nov 2010
    Location
    UK
    Posts
    17
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Quote Originally Posted by JackPott View Post
    I know CAN from its automotive use rather than its aero use...
    Then you probably know what you are doing. My experience was not very rosy.

  8. #8
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Dec 2010
    Location
    Luton, UK
    Posts
    5
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Quote Originally Posted by Wendy View Post
    Hey chris,

    I would sure like to know more about your PIC and CAN interface. That is a complete different approach. I'm also building my radios with PIC18 and MAX display drivers but still don't know how to solve the USB interface.
    I thought I had already replied to this but I think its stuck in moderation, too many links!

    There are off the shelf USB-CAN dongles available, using one of those was my plan. I've done the PIC code in C, so you just include a library which provides a couple of high level functions for sending CAN messages out to the bus. The PC app should then catch that and pass it on to the sim. Dave's link is very interesting but I will certainly use the AeroCAN message ID's where possible, but haven't decided if I will use the C++ library yet or write my own.

    It might be helpful to know the actual structure of the radio. Each radio unit is discreet, so the PIC (PIC18F2480) only tracks one active and standby frequency. There is a button to swap the active and the standby, and a encoder to increase or decrease the standby as you would expect. It also checks for overflow etc. The display is driven using some transistor arrays and a 74HC4543 driver and this displays the frequencies inside the PIC (rather than reading them from the SIM). When a value changes or swap is pushed, the PIC transmits the new values to the CAN bus.

    The PC can request the data from the PIC, ie at sim startup, but the radio unit itself doesnt read any info from the SIM. Its a one way link in that respect. I plan to make all of the controls similarly "one way". I figure it to be much simplier, the only drawback is if one was to start or load a flight mid air with the fuel cut offs in the wrong position, you would be in a spot of bother.

  9. #9
    150+ Forum Groupie
    Join Date
    Jul 2008
    Location
    Belgium
    Posts
    284
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    Thanks for the info Chris.


    Regards, Wendy

  10. #10
    150+ Forum Groupie Atomic_Sheep's Avatar
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    166
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Introduction and new project

    I recently found a blogging option on this forum which is where I'll be posting my cockpit build updates from now on. I was planning on starting my own website but I realised I didn't really want to waste time making one from scratch. I would end up spending more time maintaining it than building. So have a look at the blogging options on here. I think it should be sufficient for most purposes. Good luck with your build.

Page 1 of 2 12 LastLast

Similar Threads

  1. My introduction
    By Pim van Vrijaldenhoven in forum Welcome to MyCockpit New here? Introduce Yourself!
    Replies: 3
    Last Post: 01-30-2009, 10:11 AM
  2. Hello- Introduction
    By PSmurfy in forum Cockpit Parts and Motion Platforms
    Replies: 10
    Last Post: 11-16-2008, 11:12 PM
  3. Introduction
    By JCosta in forum Welcome to MyCockpit New here? Introduce Yourself!
    Replies: 5
    Last Post: 03-04-2008, 11:32 AM
  4. HS-JAP introduction
    By HS-JAP in forum Welcome to MyCockpit New here? Introduce Yourself!
    Replies: 1
    Last Post: 01-20-2008, 10:34 AM