Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hello Everybody,

    Have just recently begun experimenting with Jims wonderful Link2FS Multi for FS9 (Thanks Jim!!)

    I have my LCD display working with a Mega 2560 using the Multi_Radiohead_Annun_Mega.ino and all is proceeding well (at snails pace)

    I have made a 5 Digit 7 segment PCB that is driven by the Max7219 chip and this performs very nicely when controlled with an Arduino

    My problem (lack of experience) comes when I try to modify the code in the Multi_Radiohead_Annun_Mega.ino,

    What I am trying to do is have the LCD displaying "Com1 frequency" which it does! ...and also have the frequency showing on the 5 digit Display

    Can anyone suggest a sketch or part of a sketch that I can use to add in the relevant code to the main sketch.... as well as let me see where im going wrong (other than trying to run before I crawl)

    Ive been trying various things all day as well as reading webpage after webpage so any pointers,advice or Anadin is much appreciated... pretty sure I will get there eventually.

    Planning to post my circuit boards and builds as they proceed through testing

    Doug.
    Keep up the great work all
    Attached Images Attached Images

  2. #2
    75+ Posting Member vikingsraven's Avatar
    Join Date
    Dec 2012
    Location
    UK
    Posts
    89
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    post some of the code you have on here and we will have a look.
    so you want the same data on both the LCD and The 5 digit display, shouldn't be to difficult( haha famous last words!)

  3. #3
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hi Viking,

    Thanks for the reply, The only code I have is the Multi_Radiohead_Annun_Mega.ino which came with the Link2FS multi download.. I am not worried about keeping the LCD as I am intending to build a Bendix style radio stack for my Cessna Simulator using 7 segment displays... that being said I am really just trying to get to grips with writing code and thought I would attempt to incorporate the 7 segment display into the Link2FS Multi Radio sketch to show the com1 frequency using the LedControl.h library to send the data ie. 123.50 via the Max7219 ...Ive been trying all day and tried several different ways to make it happen unfortunately Im having to also learn Arduino as I go because Ive been away from it for so long and my old brain cells dont retain so well...OLD DOG & NEW TRICKS

    I am pretty sure what im trying to do is possible, havent kept any of my failed code attempts but will plod on until the Light bulb appears.. im handy with a soldering iron and electronics... writing code takes a bit longer

    cheers for now
    Doug.

  4. #4
    75+ Posting Member vikingsraven's Avatar
    Join Date
    Dec 2012
    Location
    UK
    Posts
    89
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    right doug, just downloaded it. What size lcd you got 2 x 16, 4x20? is is serial or parallel? presumably parallel.
    so you have got the seven segments to work, recon it'll be just dropping code into the lcd section.
    have you got some of the 7 segment code?
    try this if not http://playground.arduino.cc/LEDMatrix/Max7219
    and have a look at fest_er post on this forum.
    ill have a look during the day and see if i can help.
    ill pm you as well
    mark

  5. #5
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hi Viking,

    LCD is 2x16 and is working pefectly with the Radio code, The seven segment display works fine and has been tested with a small test sketch.

    Festers sketch was one of the first I investigated and Ive used various snippets from it as part of my attempts.

    I think you are correct that it should be a case of dropping a few bits of code into the "case A" LCD com1 section as well as adding the library etc to get it to work.... which is pretty much what I have been trying to do with various degrees of failure lol

    The main thing I need to understand and make work is how to take the "com1" (string?) and send the first 5 digits to the MAX7219 and make it display them... as well as get my head around how everything else works

    Hopefully I will make some progress today and I will keep you posted

    Your input and offer of help is much appreciated I will look at the code you sent and see what I can learn from it

    Doug.

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

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hi Doug 77

    This is wat you need in your sketch to take the "com"string and send it to the max7219.
    #include // This Library is required to drive the MAX7219 7 segment LED displays.//lc1 is the variable name of my set of displays chained
    LedControl lc1 = LedControl(12,11,10,; //together running off of pins 12,10,11. Pin 12 is the DataOut, Pin 10 is Load or CS, and Pin 11 is
    //clock. The 8 is for how many displays you have

    int Com1Active[5];

    void setup() {
    Serial.begin(115200);
    //The MAX72XX is in power-saving mode on startup, we have to do a wakeup call
    delay (500);<>>
    lc1.shutdown(0,false); // I have 4 displays, these start them up
    delay (500); // I put the delay in so they all dont start drawing
    lc1.setIntensity(0,4); // Set the brightness to a lower than medium values
    delay(500)
    lc1.clearDisplay(0); // and clear the display
    }


    void EQUALS(){ // The first identifier was "="
    CodeIn = getChar(); // Get another character
    switch(CodeIn) {// Now lets find what to do with it
    case 'B': //COMM1 Active
    Count = 0;
    while (Count < 5 ) // Counting from 0 to 4. Five digits to store in the Com1Active Freq
    {Digit = ""; // Clear Digit >>
    Digit += getChar(); // Get a character put it in the String "Digit"
    Com1Active[Count] = Digit.toInt(); // Turn String Digit into an Integer and store it in the Array for later
    Count++; // add one to the count
    }

    lc1.setDigit(0,0,Com1Active[0],false); //first 0 = first max7219, second = digit, Com1Active[0] = first number of com1 freq.
    lc1.setDigit(0,1,Com1Active[1],false);
    lc1.setDigit(0,2,Com1Active[2],true);
    lc1.setDigit(0,3,Com1Active[3],false);
    lc1.setDigit(0,4,Com1Active[4],false);


    break;
    }

    }
    >>

  7. #7
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hello Danny,

    Many thanks to you for that, I am off to give it a go and will update with results

    Doug.

  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: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Somebody say my name?

    This looks like my territory....


    My original code was complex because I was using 1 dual encoder for multiple radios.
    If you have multiple encoders the code can be greatly simplified.

    Let me know if you need any pointers and I'll try and knock the rust off that part of my brain.

    Remember... // Remark your Code
    It will save you headaches in the future.



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

  9. #9
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hi Fess,
    Good to meet you sir

    using a single Max7219 here but only want to make it display the Com1 frequency (5 digits)

    I am trying to incorporate it into the Multi_Radiohead_Annun_Mega.ino mainly just so I can learn how to make the code work but also with a view to later chaining a few together to build the cessna radio stack

    I already have an LCD display up and running with the above mentioned sketch (came with the LINK2FS Multi FS9)... Im just trying to piggyback some code onto the sketch to send the com1 to the Max7219
    (7 seg 5 digit display) as well

    Any snippets,advice,laughter would be much appreciated

    cheers for now
    Doug.

  10. #10
    25+ Posting Member Doug77's Avatar
    Join Date
    Aug 2012
    Location
    scotland
    Posts
    49
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Link2FS Multi FS9 & Max7219 driven 5 digit 7 seg display HELP Please

    Hi Danny,

    spent the day playing around with the code you sent me, unfortunately I still havent managed to get it to work so far.

    Ive not kept any code as I tend to get to a point and scrap what im doing and start again... maybe not the most efficient way of writing a sketch but im sure learning a few things .

    On the surface it seems to be a fairly simple process of getting the Com1 to also send to the Max7219 by incorporating a (sub routine??) into the CASE A
    LCD section of the Multi_Radiohead_Annun_Mega.ino but my lack of experience is making it slow going...frustrating but enjoyable (what does this say about me lol) anyway im hoping tommorow will bring better results

    Thanks again for your assist
    Doug.

Page 1 of 3 123 LastLast