Results 1 to 8 of 8
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2014
    Location
    Germany, Hamburg
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Hey Guys I want to make a Autopilot Panel.

    My plan is :

    I want to connect Encoders to the Arduino for the controlls (Heading, Course, Altitude, Speed)
    I have a lot of 7-Segment modules and I want to use them for the indication of the funktions.

    Can someone help me?

    Have somebody a code for that ?

  2. #2
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    In short, no.

    However...

    There are a few of us working on MCP/Autopilot panels.
    This community helps each other when folks get stuck on a problem. Everyone here has different levels of expertise.
    The difference between a Guru and a Novice, is "doing".

    It all depends on what you are looking for. If you are looking for someone to build you a panel from the ground up and code it for you, it won't happen....(unless you have 499ish Euros burning a hole in your pocket then maybe we'll talk).

    Maybe you know absolutely nothing about arduino coding. That's OK, provided you are willing and able to learn a little bit.
    You will need to learn how to use Link2FS_Multi to extract information from FSX and how to insert information to FSX.
    Then you will need to learn how to do that with the Arduino.

    In the Link2FS_Multi download zip, Jim has added a number of demonstration, Arduino sketches to help you learn how to program an Arduino to interface with Link2FS.

    Start small, learn to crawl and you will be running soon.

    Your project is an ambitious one, even for the experienced builder.

    **** If you have never used Arduino and link2FS_multi together, then I suggest the following: ****
    For your project, the first thing you need to do is just change something inside FSX from the Arduino.
    If you have never worked with encoders before, skip it for now.

    Get a momentary push button and have it change "Course" one degree for every press. (You can use 2 jumper wires for a momentary switch)

    Why mess with a simple switch, when you want it to work with encoders?
    Because you need to learn. We will tackle the encoders later. First you need to taste a little success from your own creation.

    Most of the info that you need is in the demo files.
    If you don't understand an Arduino programming concept, try googling it first.
    If you get stuck after that, come back here and ask for help.

    If you get one switch working and moving the Course up, then put in another switch make the Course move down.

    Get that done and then we'll start talking encoders and 7-segment displays.


    Cheers


    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2014
    Location
    Germany, Hamburg
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Thank you for your reply Fess!

    I`ve already used switches and encoders for FSX via Link2FS.
    I thought someone have a code for an encoder and 7 Segment Display. That wouldnŽt be so time-consuming

    Of course I`ve now - how

    My panel is almost finished, but I want to have some 7 Segment Displays for the Indications. (looks better and more realistic )
    Only one question: How can I connect the 7 segment indicators to the Arduino?

    Cheers

    Rasti



    @Fess_ter

  4. #4
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Rasti,

    Now we're communicating.
    All of my encoder code was borrowed from Jim's code with some modifications.

    In my opinion, the MAX7219 8-digit 7-segment Tube Display Module, is one of the easiest ways to make a 7-segment led display for Arduino.

    20131029_125714.jpg
    You can pull the red displays off and replace them with "Kelly Green" displays.
    Also, since they are not soldered, you can use jumper wire to tether them to the control boards.
    I recommend soldering the jumpers to the male pins of the LED display. You can use female to male jumpers but the female parts may give you flickers from loose connections.
    Important NOTE: The jumper wire, male connection, needs to be of the round pin type. Many places that sell arduino, also sell them, usually in bags of 65, in assorted lengths. The Dupont brand jumpers though good in many applications, have square pins that will NOT fit the MAX7219 control board.

    20131102_023243.jpg

    Here is how I do it now.
    20140713_145732.jpg20140713_164954.jpg

    To get 3 digits to show, you hide one behind the panel by making the window only 3 digits wide.
    20140504_152819.jpg

    I have not finished the MCP yet, I haven't had time to work on it, lately.
    The coding is getting complicated because a lot of payware planes don't use FSX default Simconnect variables.
    PMDG has the most published information on Variables and offsets. A few of us are catering our MCPs to the PMDG 737.

    If you are making yours for a General Aviation aircraft it should be pretty simple provided your "plane of choice" uses FSX defaults.

    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com

  5. #5
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2014
    Location
    Germany, Hamburg
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Hey thanks Fess!

    Your panel looks really cool

    Can I put there blue 7-Segment displays? I think yes ,or?

    @Fess_ter

  6. #6
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2014
    Location
    Germany, Hamburg
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    IŽve one other question to.

    Do you now where I can get a 1:1 MCP Panel Design?
    Or only the measurements

    I found a good design, but the measurements areŽnt right...( Here is the page where i Found it http://www.hispapanels.com/cabina737.../mcp/mcp1i.htm)

    Can someone help me?

    Cheers

    Rasti










    @Fess_ter

  7. #7
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Rasti,

    I believe you can order replacement led displays in blue, but it would take some searching on aliexpress.

    I think Hispapanels is where I got the image to scale to a near close MCP panel.

    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com

  8. #8
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Mega 2560 with 7-Segment Module for Autopilot Panel

    Also

    http://www.mycockpit.org/forums/show...t=27872&page=6

    About half way down I posted the template that I started with and the dimensions.

    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com