New DG5 code!

It’s been a while since I have updated the code, and I have been working on some improvements on and off over the past year as I have had time.  This is for the LCD version, which I think just about everyone is running.  I have made an LED and Nixie tube version as well, but haven’t updated the code for these versions just yet – let me know if you need it. Done, new pages have been set up for both and new code for all 3 version is on Github

Some of the improvements:

  • New/improved frequency counter routine.  The program now uses the “FreqCount” library that is available in the IDE environment.  You will probably need to download this, which can be done selecting “Sketch/Include Library/Manage Libraries..” in the Arduino IDE.
    Search on “FreqCount” and you should find Paul Stoffregen’s library. Install the latest version.
  • Correction Factor added.  If needed, you can correct the display.  This will not “fix” a poor frequency reference/source like the ceramic resonators found on UNO’s.
  • Better code documentation.  I hope it’s easier to read and understand if you want to get in there and make your own modifications.
  • Added smoothing, anti-jitter code to help stabilize the display. (smooths over 10 readings, this is adjustable)
  • Tested with latest Arduino IDE (1.8.2)

4/8/17 – Code has been moved to Github, LCD, LED, and Nixie versions published.

4/8/17 – Version 2.0.2 uploaded to Github. Stability Enhancement added. Tests the HFO and BFO to see if they have moved more than 500Hz and 100Hz, respectively.  If not, keeps the last reading. This should help eliminate some wander/wiggle but keeping the two “fixed” frequencies stable.  Also lowered the averageing to 4 samples (from 10), makes display a little more responsive

9 thoughts on “New DG5 code!

  1. MS

    Hi Steve !
    I’m waiting for any post regarding the LED or nixie version, I wanted to finish my project starting with my favorite nixie counter, if you have it already done then please send me or post the schematic diagram since the hook up will be different than the LCD version, and the nixie code please, it would be appreciated.
    I can’t to wait to have it built, Nixie version will be a lot better classic look.
    Thanks
    Best 73s
    MS

    Reply
      1. Jim

        I wanted to install a small oled display inside the radio where the dial is, i found a display that would fit inside nicely, ,kinda give it a built in look in stead of having a box on top of the radio…just a thought………Jim

        Reply
        1. admin Post author

          Ah, that makes more sense! If it’s got a library already written for it on the Arduino’s, then it should not be a problem – all the code is open, so you can modify it as you see fit. What’s the manufacturer and model number? Get yourself an Arduino and try it out!

          Reply
  2. Pedro Ceijas

    My emulator is oprerating approximately .0005 high starting with 80 meters. Is there a software fix for the error? 73’s, Pedro WA4KEO.

    Reply
  3. Mike Myrick - KC3JXR

    Hi Steven,

    I trust everyone is OK.

    The v1.5 board is completed & checks out. A great learning project. Thanks

    The info I need to proceed is scattered. Todd Fun answered a lot, but not all. Please consider an index.

    Compiler – Where to obtain

    Is “ts_520_dg5_lcd_v1_6_2-zip” the latest / best for v1.5

    Reply

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.