UPDATE 3/20/2020: I have moved the old V1.5 Arduino shield based version to a separate page. Much of this projects history is there, so if you’re interested in what this whole DG5 emulator thing is all about, where it came from, what it does, etc., then read the original page above.
I have 2 versions of PCB’s available for purchase, the V1.5 PCB is an Arduino shield. Please note that the RCA jacks on that board are no longer available, but if you’re planning on wiring in jumpers to RCA jack in a chassis, it doesn’t really matter. Secondly, you really need an Arduino Duemilanove or similar – you want a proper crystal running the board, not a ceramic resonator that the later boards (UNO and others) comes with. There are some options, like the Freeduino Eleven, but I decided it was time to incorporate the Atmel 328P micro-controller on board, and to update the RCA jacks, so V2 was born!
The DG5 Version 2.0.3 PCB is basically the same circuit, but incorporates the Atmel 328P. Because of this, you need a way to program the chip – buying a blank one from Mouser won’t work unless you have the tools to program it. You could buy an Uno, program the chip, pop it out and put it in this board. Or, you can buy a kit with the chip pre-programmed.
Be sure to go thru the DG5V2 build instructions
4/25/20 – I have removed the purchasing options for now, I am currently selling the LED kits on eBay which will hopefully simplify international shipping.
Wow, that looks like fun. Jack Purdum W8TEE who has a new book coming out in November (Arduino Projects for Amateur Radio) is a member of our local club and did a nice presentation at our last meeting about building an arduino SWR meter/dummy load.
I’d be interested in buying a couple of your boards to try this with my 520 (and maybe my 820)
Let me know how to buy them, please.
73 de Rick WQ8Q
Rick – I just added a “Buy Now” paypal button, it will let you change the quantity when you get to the paypal page. The price should be $22.50 shipped for 2 – let me know if you have a problem!
Thanks,
Steve
KV6O
hi steve ,
would like a board but live in England (uk) could you send information to purchase your item including postage .
thanks mark M1TVR uk
Mark – Shipping charges to the UK are reasonable, I can do it for the price listed – go ahead and use the “Buy Now” button!
Pingback: ToddFun.com » Blog Archive » Arduino Frequency Display For Kenwood TS-520S HF Ham Radio PART 5
Pingback: Arduino Frequency Display For Kenwood TS-520S HF Ham Radio PART 5 | AmateurRadio.com
Pingback: ToddFun.com build video | KV6O
Do you have the parts in order to build the project ?
In my location is difficult to find electronics parts.
I have a TS520 and I would like to have your solution.
Thanks,
Unfortunately, I am not stocking the parts, but I do provide the links to the 2 places to order – Sparkfun and Mouser. The links are in the post above.
Nice work Steve,
I am also in UK and would take a couple of boards if you have more made.
Joe G4VDX
Based on the interest, I’ll go ahead and order up another run of boards next week.
Thanks!
Steve
Nice work. Have followed Todd since he started the project.
I was waiting to buy a couple of boards as I was in the middle of recapping my DG-5.
Looks like I waited to long. can we pre order for the next batch?
Thanks for finishing this great project.
73
Slim
W9SLM
I’ll let you know when they come in, should be sometime next week!
Steve
got your board ,all populated but cant find the coDe for uno v3 anymore–thought it was posted at 1 time but! if u could supply me with link id appreciate it
only one i find is without the display.
any help would be greatly appreciated.
Dave
WA2WAP
Pingback: New boards should be here any day, build pics from Mike, KD2DYY | KV6O
Built one of these yesterday! couple of hours at the bench, downloaded the programming and it worked the first time around!! (the surprise comes in that i have never even attempted building a PCB kit before). Instructions are easy to follow.
I used a arduino uno. waiting on the older one noted in the instructions.
Working now on a box.
Thanks Steve!
Robert/KD0YMC
That’s great news – glad to hear it! Send me some pictures when you get it built and I’ll post them – my call sign @ my callsign dot com.
Steve
KV6O
Super Steve, when you will have more boards ? I need two.
Do you have any plans on making a standalone board? It looks like all you’d need to populate from the Arduino is an oscillator and maybe an FTDI USB bridge. And the ATmega, of course 😉
I have thought about it – I did something similar for a Repeater Controller project – but that would add some SMD soldering as the FTDI chips are surface mount. I could just go with TTL logic out and then you would use USB FTDI board to talk to it… I just started a new job and my time is kinda tied up in that now, so I don’t know that I’d get to it unless there was some REAL demand – or, you can do it too! All the Eagle files are there for the taking!
Steve
KV6O
Pingback: New boards in stock! | KV6O
Got my board Saturday morn. Took about 2 hours to assemble. I bought a LCD with blue backlight (5V) for mine. Hooked er up, loaded code, works fine, lasts a long time! Awesome! I’m happy! Just have to mount in a case. Then I’ll be done.
I have purchased a couple of boards and accompanying components to build the DG5, but I have a question. I realize this project was developed around use on the Kenwood TS-520, but I would like to build this for use on a Heathkit HW-29A “Sixer”. I do not have any electrical knowledge, but trying to learn. The Sixer, I am sure, is a simplier circut than the KW TS-520 and was hoping you could provide some guidance as to how to get the required signals for the arduino? I can provide the build schematics for the HW-29A.
Thanks,
N4RCC
This was not designed for a Sixer – I have no idea how one functions or if this project could be adapted. I have spent probably in excess of 100 hours on this implementation, and cannot redesign the circuit and rewrite code for a Sixer. If you want to tackle that, that’s fine! If you would like me to refund your money please shoot me an e-mail and I will do so gladly – I don’t think this is what you want.
Steve
KV6O
Hi Steve,
thank you for sending the PCB board back in November which came very quick.
over the weekend got a few hours in the shack and built it up and it works great first time too no problems thank you for all your help in turning my old kenwood TS-520se into active use again.
look forward to your dds vfo project.
all the best for 2015
Hi Steve,
I want to buy 2 PCB units, but the botton “Buy Now” above only permit one, how can I proceed ??
Thanks a lot,
Julio
I fixed the button – you should be able to order multiple boards with a fixed shipping cost ($2.50).
Steve
KV6O
Pingback: DG5 Emulator boards still available as of 2/8/15 | KV6O
Hi,
Can you ship to the Netherlands when boards are available?
vy 73 Eric-Jan PA3CEV
Great project I’d like to add on to my TS-520S. Do still have boards for sale on DG-5 arduino? Ordering how to? I recall reading somewhere in your post about the board no longer being available… couldn’t find that part again. Well, Anyways Thanks for that outstanding project.
Ted
Well I have mine built on a breadboard and it is working great. I did make some changes to the LCD print, I dropped the FREQ: and jus have the actual numbers print and also have USB, LSB and CW print. Guess I will put it on a PCB manhattan style and then a case…
Dave
W4WLC
Wow, that’s great! I have been so busy lately, I am glad to hear you got it working on a breadboard – that’s where I stated with the project as well! There appears to be lingering interest – I’ll have to see about another batch of boards I guess!
Steve
KV6O
Downloaded the Eagle program and figured out to to print the PCB mask. Waiting on some supplies to come in and I will try to make my own board. Never done it before so that should be interesting…
Dave
W4WLC
Dave –
Cool! Let us know how it goes!
Steve
KV6O
Steve,
Steve,
I discovered a PCB maker named OSH Park (oshpark.com). All I had to do was upload the Eagle brd file and they do the the rest. For 2 sided boards it is $5 a sq inch and you get 3 boards. My cost was $29.10 for 3 boards. I should get them in about 2 weeks and will let you know if they work or not…
73,
Dave
W4WLC
Steve, I would still like to order/purchase a board. Jack
I got the three boards I ordered from OSHPark.com in today. They look great and I soldered one up and it works like it should. You can check it out at my FB page https://www.facebook.com/w4wlc?ref=hl
73,
Dave
W4WLC
Howdy. When will you have more boards in? If like to order a few to make for myself and a fellow club member. Thanks for your work in this project!
I don’t have any plans as of now, but there does seem to be a bit of interest – I’ll look into making more and hopefully update the site!
Steve
KV6O
Hey Joe go to oshpark.com, click on “shared projects” and search for “TS520DigRead”. Boards are sold in a batch of 3 and will cost a bit under $30. It will take about 2 weeks to get the 3 boards.
73
Dave
W4WLC
Pingback: New run of DG5 Emulator PCB’s has arrived! | KV6O
Only U.S. Addresses??? Don’t mind paying the shipping to UK.
Neil,
This is an open hardware project, so you may be better off sending the files to a PCB maker in the UK instead of Steve having to send them through the post.
Dave Jones (of EEVBlog fame) has a list of UK-based board houses on his WIKI. http://www.eevblog.com/wiki/index.php?title=PCB_Manufacturers
Hi Chris
A quick run through of a PCB build was a lot more expensive than this. I’ll see what is costs for one to be shipped. Thanks anyway Chris.
Hi Steve,
I would like a DG5 board posted to Australia. Could you give me the cost of the board plus postage.
Cheers,
Errol Walker
Same request for me, shipping to UK please
Thanks
Neil
I have shipped to the UK before and I don’t think it was much more at all – just easier to absorb the cost 🙂 I am at work and will have to take a look when I get home.
I don’t have a problem with international shipping, the issue is PayPal didn’t handle it well when I last checked. I’ll have another look, but in most cases I was able to ship for the same price.
Steve
Just to be certain, this will also work on a TS-520 (10-80) radio?
Only if the BFO/VFO/HET signals were brought out – it was an optional kit (IIRC) for the TS-520. The TS-520S included this as standard. So, if your TS-520 doesn’t have the signals brought out, you would need to either find an original kit to add it on, or do it yourself – you might be able to find info on how to do that.
Steve
KV6O
It will work fine if you have the optional DK-520 kit installed
Sorry Steve I didn’t see that you had answered the question. please delete my post.
It has the DG-5 already, I justcwant to interface to a computer, so in thinking that, at least in this case, my answer is yes.
OK,, when I last read this, you mention, someplace, about what software you were using to read and log the frequency. Can you tell me what software that is, as now I can not find the reference. Thanks
The program is included with the “DG5 Build Files” zip, just above the Buy Now button on the project page at https://www.kv6o.com/wordpress/projects/kenwood-dg5-emulator/
The project is an Arduino shield – so you’ll need the Arduino IDE and some understanding of the Arduino environment to make this all work.
If you’re talking about the USB connection to a computer, I have tested it with DXLab – nothing else. It’s emulates a small set of the Kenwood command set, like “FA;” which is the Kenwood command to read VFO A.
Steve
KV6O
Received the 2 boards I ordered today. Professional and awesome quality boards. Thanks Steve!
Steve,
I received my board last week. I look forward to building the frequency counter for my TS 520S.
Thanks for a well made PCB.
Roly
Hi!
I have received and built up the board with all the components. Quite nice board indeed!
Although I’m having a bit of an issue. I don’t think it is actually anything wrong with the board or anything, but I’m having problems getting the correct frequency readouts. The display frequency seems to be off by about 3-12 kHz. I have compared it against another radio (FT-817nd with add-on TCXO) and that confirms that the frequency is quite off.
I have also used a frequency counter that seems to be quite accurate (TTi TG550) and measured the frequencies. When I measure the VFO-frequency on the frequency counter I get (for example) 5.50005 MHz and the same frequency on the Arduino (Uno R3) is about 5495627 (the last digit is shifting a bit). When the frequency measurements are combined the errors are also added together. I have played around with both my own timing code and also the timing library from this page: http://interface.khm.de/index.php/lab/interfaces-advanced/arduino-frequency-counter-library/
I have similar not-quite-accurate numbers from all of the different (very similar) counter implementations.
So… the question… if anyone might have an idea… Could it be something wrong with my particular Arduino? Is there some other interrupts running that is interfering with the counting? Is this the most accurate measurement that the processor is capable of (witch would be strange because other people seems to get it to work)? Any other ideas?
I have checked the signal output from the PLLs and the muxer with an oscilloscope and it looks as I would expect them to look.
I might be able to hard-code the BFO and HFO frequencies to whatever the frequency counter measures and try to add some fixed compensation for the VFO but that doesn’t really feel that good t.b.h.
Any ideas?
Wow – 3-12K is a LOT. Couple of things to check. There is a a debug switch right need the top of the program, by default it’s set “false”. Set it to “true”, recompile and send it to the Arduino. You’ll need to open up the serial port/monitor to see the debug data – it’ll print the BFO/HFO/HET and the calculated frequency (if i remember correctly). If you can check the DG-5 measured frequencies against your frequency counter, hopefully it’ll give us an idea where the error is coming from.
What Arduino board are you using? If you know, does it use a crystal, or a resonator?
Steve
KV6O
Hi!
Yes, I tried the debug print function and compared the numbers. They are all a little bit out.
I just recently tried another counting library that just outputs the count on the serial port and it also shows similar results (I disconnected the DG5-emulator board and just ran a frequency source in pin 5). The count seems to be off by about 0.08% and that translates to about a few kilohertz or so in the frequency range in question.
I have a traditional Arduino Uno R3. The oscillator says T16.000 and the chip says ATMEL 1433 ATMEGA328P-PU
Can you measure the oscillator on the Arduino? I wonder if it’s way off. Not sure what could account for the difference. If you’re able to measure the error (which it looks like you are), I guess you could add a correction factor to the code!
Steve
KV6O
Hello, a bit late reply, but now I have measured the frequencies again.
Since last time I have purchased another Arduino Uno board because I thought the first one I got was faulty.
The new board unfortunately also are quite off in frequency, but this time it is off in the other direction.
The crystal frequency on the old board: 15.9994 MHz
The crystal frequency on the new board: 15.9993 MHz
A measured frequency on the frequency counter (should be an accurate measurement): 5.18903 MHz
The same frequency measured on the old board: 5.184720 MHz
The same frequency measured on the new board: 5.195448 MHz
The old board shows a too low frequency and the new one shows a too high frequency compared to the reference.
I also tried this on the Arduino board available at my local HAM club, and that one (Also an Arduino Uno) showed the frequency spot on.
I have also tried to run it on an Arduino Mega 2560, but that didn’t work at all. I got information on the display, but the frequency was zero.
The two Arduino boards I bought was from two different suppliers, so I shouldn’t have gotten a bad batch I think…
Any suggestions? Should I continue to buy Arduino board until I find one that works? 🙂
Hello. I know you posted a log time ago…. I am having the same probelm. Did you ever get the root cause identified?
Can you be a little more specific, and let me know what kind of board you’re running?
It’s in the build files above the buy it now button for the board
Hi ,
happy to have found your site ! I own an old TS820 with a not correctly working display ..
It miss a digit on all HAM frequency :o(
I wonder if I could by from you ALL the necessary stuff to build the shield.
I own many Arduino 2009…. but I have problems to buy the rest of the components …
Could you help? I live in Italy ! It coulb be ok just the PC board anyway …
Thanks in advance !
ciao
angelo i1jck
Angelo –
Unfortunately, I don’t have or stock all the parts.
Sorry!
Steve
Steve,
I was going to use your design to build a DG-1 replica for an 820 that my club ended up selling for more than I wanted to pay. If you’re interested, I’ve traced through the 820’s schematic and have most of the outputs that would be needed for an Arduino/atmega based solution, but need help with a couple of inputs:
There are 8 inputs from the 820 to the frequency counter board that the DG1 uses:
CVC – VCO frequency after a 470 ohm resistor
B1-B4 – Bandswitch position
COF – Carrier offset (IF Shift)
CCR – This is the one I can’t figure out. It’s either the suppressed carrier freq, or the BFO freq.
DHS – Display Hold Switch
IIRC, B1-B4 form a truth table of which band the rig is set to. It’s all done in glue logic which makes my eyes water by the time I hit the third AND gate.
Let me know if this is anything you’d be interested in coding, as I still have access to the 820 for testing.
Angelo,
By “miss a digit” do you mean that the display shows the wrong frequency, or that a digit in the VFD isn’t lit?
I mean wrong frequency showed. Bit 3 is missing .. It is ok till you reach ie:21,399 is ok.. 21,400 ishowed 21.000 … :o)
Sounds like a classic case of bad solder joints. Check K4EAA’s website on Kenwood repairs. Reflux and add a dab of solder to every joint on the ICs. Pay special attention to ICs 12 through 16 on board X54-1160-00.
Oops. Should be ICs 1,2,7-11 & 24. Those are the decade counters
I have resoldered all the ICs .. and changed some of the more relevant .. When I change frequency, moving on 28,000 mhz , the issue moves from bit 3 to bit 4 .. :o)
I don not know at the moment how to cope with the issue. I have bought for too much this old radio and now I think I must solve the display issue. I guess CIN is the place whre you have Out frequency + 1 mhz .. Isn’t that ?
Hi,
I do not know if this help :
http://www.aade.com/dfd2.htm
but I have found this OM site (now silent key) that was selling a similar counter for TS520 based on a PIC.
Check into his web site and will find also a solution for TS820.
I guess it is possible using his suggestions and using the Arduino architecture, to cope with our issue.
Regards
angelo i1jck
Hi all,
I have been investigation on DG1 , the frequency counter used on TS820.
I think that a simple frequency counter with just an offset preset, should cope with that radio.
If you watch the schematic of TS820 (see : X54-1150-00) on emitter of Q8 you will get signal CIN.
Simply use that pin signal offset – 1mhz and the frequency showed will be ok.
Let me know if anybody confirm this.
73 de i1jck angelo
Can I order a made one I plan to use it on my Kenwood TRIO 520D a no readout HF rig I Love
please email me: charlie.cheng999@gmail.com
Sorry, I am only selling the PCB – you have to put it together yourself!
Steve
KV6O
I designed a board using a PIC16F887 ($2.20) and a similar pre-amp buffer to yours back in 2002. My board outputs either LCD, 7 segment CA or 7 segment CC. It is designed to slip also into the case of a dead DG-5, connect to the displays and function just like the DG-5. The design is simple and uses common parts. Update time is very fast and it is very stable.
I also designed a DK-5 board to convert a 520 to a 520S.
I would like to team with another ham to make these boards and kits available as I have little time or funds to do so. If interested, e-mail me.
Steve,
I would love to make one, when will you have more boards available?
Regards,
David
KE0HKV
David – I’ll put you on the list, I a awaiting enough demand before making another run. Hopefully I’ll have an update here soon!
Steve
KV6O
i have a ts-520s with a vfo-520 will this project work with both for split frequencies
No, it can only read a single VFO at an time, just like the original DG-5.
Steve
KV6O
HI Steve,
Please let me know when the boards are available. Bought my 520S new in the late 70’s. Have had newer more sophisticated rigs, but still love the old 520S and use it daily for net check-ins. Your project sounds perfect and am anxious to build it. Had the original DG-5 but was plagued with problems and pitched after a couple of years!
Great job! Anxious to hear from you.
Joe W4LBY
I’ll let you know when they arrive.
Steve
KV6O
I am interested in one of your PCBs. This would be a great addition to my 520S. Please let me know when they are in stock. I have been looking for a “kit” to build.
Thanks,
Tom
KK4WPR
Tom –
I’ll let you know when they arrive!
Steve
Hi Steve,
I am sure i`m repeating myself—–anxious not to miss the boat——-ordering two boards, one for LCD & one for LED. You mentioned you had one completed emulator surplus to your requirements, if so, please let know the cost.
Regards, Russell ZS2AHF.
Hi Steve,
Can I replace the resonator on the ARDUINO UNO R3 (ATMEGA328) with a high spec 16 mhz crystal? Is it a straight forward swop? As you have guessed this is not my area of expertise, so need all your help.
Regards, Russell ZS2AHF
It might be possible, but you need the supporting caps as well (18 or 22pF IIRC), so that might be difficult to do on the board. You can buy the correct board for under $10 or so on eBay.
Steve
KV6O
Thank you for open sourcing this wonderful project! I have had fun building it. I made a few mistakes and learned some things along the way but all is good now. I have it all soldered up and the display is active and powered up from your shield with the 7805 regulator.
Now on to the programming the Arduino tomorrow and testing it out. I have the compiler program installed on the computer and ready to go. I just dont know which file in the download to use as the program yet. This has been a really neat little project. I want to build an LED version next. Hope you have some more boards I can buy! 73 de KG5GCC
Charles –
Use the version found here:
https://www.kv6o.com/wordpress/download/ts_520_dg5_lcd_v1_6_2-zip/
I have some further changes that I made this past weekend to allow for better tweaking, but I haven’t finished it up yet. Let me know how it goes!
Steve
KV6O
THAT was what it was! All is great now with V1.6.2 showing on the display. I am simply amazed at how well it works too!! So far I notice my display is about 200Hz off on 40M and 20M but other bands its dead on. I am one happy ham! Thanks Steve de KG5GCC
PCBs arrived safely this morning, thanks Steve
Rich
Hi Steve,
Disregard my email of 4/29. Found the problem and easily resolved it. DG-5 Emulator works very good. Great project. I could only work on the project for short periods as I have eyesight problems, but took a surprisingly short time to get the project up and running. Very rewarding. Thanks again.
Joe W4LBY
Hi Steve,
I finished the build last night and programmed it this morning. My first time with an Arduino, so it took me a few tries to upload the program. I hooked it to my TS-520S this morning and it works fine and appears to be within about 500Hz. All I need is a box for it. Only one issue: The mode character at the end of the frequency line displays “C” regardless of what frequency or band I am tuned to. Any idea why that might be?
Tom
KK4WPR
Tom –
Glad to hear you got it working! I am going to make a post on this particular issue as there are several factors involved on how this gets calculated, but the fix should be pretty easy. Basically, the program looks at the BFO frequency and makes a determination of what mode you’re in – USB/LSB/CW. The determination is based on the listed frequencies in the TS-520 Service Manual on page 6, but the ability to accurately make the determination is affected by the actual BFO frequency (could be off from what the Service Manual expects), the crystal on the Arduino isn’t all that accurate, so the measurement could be off.
Let me work on the post explaining the code, and the factors involved – should be up today.
Steve
KV6O
Hi Steve,
I read your recent update and followed your steps to retrieve my TS-520S BFO frequency and then updated the sketch. The U/L/C indication works as it should now. It’s still off by about 500Hz so I will be looking at my crystal oscillator next. I’m having fun with this and look forward to working 80 meter and not having to do math off the dial for the frequency!
Tom
KK4WPR
So if I buy one of your dg5 emulators what all extra do I need in order to make it functional?
The parts list details what you need, and a case if you so desire!
Steve
KV6O
Thank you for the info as well as the parts list. I just ordered every thing. Looking forward to building it .
73
Kc9plk
Wqse339
I recently purchased your board and made the shield from the Mouser and Spark fun lists. I have to say I had a blast assembling the shield, loading up the software and hooking it up to the radio and seeing it work. The only thing I had to do was edit the software for the bfo frequency as the output from my radio must be a bit lower and the lcd display was switching from “C” to “U” continuously. After the change it works fine now. I would like to add this project to a personal web page I’m building right now with links back to your page with your permission along with credit to those that made this possible.
P.S. I looked on Ebay this morning for an original display and see one listed for $249.99. I pad $178.00 for the TS-530S.
Thanks again.
Keith KA1KAL
Very nice, feel free to link away!
Steve
KV6O
Hello Steve,
your projects is fantastic,
Im forwarding to you a questions of a lot of Heathkit owners SB-100-101-102 and HW-100-101.There are a lot of them out there (much more from kenwoods).Can you adapt the kit for the Heaths?
I see that is the same base only you have to chane the vfo-car-het frequencies that the circuit needs to calculate.
what do you think?
George SY2ALX
my 73!!
If I had one, I’d probably give it a shot, but I don’t have any heathkits… The program is pretty much documented – if you want to change the math involved to get what you want, shouldn’t be difficult.
Good luck!
Steve
KV6O
Steve.
I have send you an e-mail requesting two boards shipped to Greece 54455.
Please send me an invoice at naxgal#yahoo.gr
George
George –
Sorry for the delay, if you’re still interested just go ahead and order – the costs to ship internationally haven’t been bad, I can cover the costs.
Steve
KV6O
Hi Steve,
I’m having some trouble with my emulator. These are the things I have tried.
* Have 5 volts on Arduino, LED “ON”
* load led blinky test program, Orange led blinks on Arduino Uno.
* LCD has back light and is adjustable.
* load and run Emulator program, no errors, but no change in display.
I think it must be wiring to LCD, I’m somewhat confused as to which wire should be where.
Allen
Alright, alright, alright. Figured out my problem. Pin #1 on the LCD board is on the corner. I was counting from the wrong end. It now works great!
-Allen_
N5RMS
Sorry I didn’t reply earlier, this project is kinda on the back burner – hopefully I’ll be able to spend some time on it soon. Glad to hear you got it working!
Steve
KV6O
Hi Steve. I am building my DG-5 emulator and want to hard-wire the RCA cables directly to the shield rather than installing the board mounted RCA female connectors on the shield. Can you tell me the soldering configuration for three wires (center conductor and braid on each of the three connectors?
Thank you.
Ron –
Looking down at the top of the board with the RCA connectors at the bottom, the upper left hole is the signal. The other 2 holes are grounded to the ground plane on the bottom layer – you can see that if you flip it over.
Good Luck!
Steve
KV6O
Thank you Steve. I have assembled my emulator and it works just fine. I too am experiencing an issue with the C showing up a lot of the time. Did you mention that you have a patch in the program for that regarding the BFO frequency?
Thanks.
Ron
Hi Steve,
I built my board and the only thing on my display are all the pixels on the lcd are on if I turn the pot one way and all off the other way. When I run the program in debug mode while connected to my TS-520 I do see the correct frequency on my pc screen and it changes when I change frequency. So it looks like the board is functioning. I’m sure my cables are in the correct place on the board and the lcd display. I’ve tried all combinations of connections to the lcd. I have also checked all my solder joints and they look good. Are there supposed to be any jumpers in J4 on the board and also the ICSP jumpers on my Adruino Duemilanove don’t have any jumpers in either.
Thanks
Scott
Nope, J4 doesn’t need to be populated, it just gives you access to Analog 4 and 5 pins. Can you test that your LCD is good without the DG5 shield? There are lots of programs that use an LCD, you can download a test one – like this https://www.arduino.cc/en/Tutorial/HelloWorld
Steve
KV6O
Hi Steve,
Quick question for you. I have everything working (sorta) perfectly on my vanilla TS-520. I managed to build the buffer amp from WA2FXM’s instructions (Thanks Mark). But, while 20,40,80 are coming in perfect, the 10 meter is way off. I’m getting 12 and 11Mhz with it bouncing around and nowhere near 28.000Mhz. Could it possible be bad component or solder joint? Would my homemade buffer amp be a problem or the radio itself? Funny how the other bands work perfect except for the 10 meter.
Put the board in debug mode – from the Arduino IDE open the serial monitor at 9600 baud, and type “DEBUG1;” on the command line at the top. The board should start streaming the calculated values. I suspect the HET value at 10M is what’s wrong – it should be up around 40Mhz if I remember correctly – that’s why there is a divide by 8 chip – the Ardunin can’t read that high.
While you have that screen up, check the cables – make sure the contacts are good and that there isn’t a bad connection.
If you have an oscilloscope, check the HET input to the PLL, the PLL output and the divider – make sure they are stable. If the signal level is too low, the PLL won’t lock – and it won’t work. Check the HET levels out of your buffer amp.
Steve
KV6O
Hi friend, I’m glad to see your project. I have a Kenwood TS180s radio, and this one has a problem on the display it shows 7,409.1 mhz and it really is at 7,058.0, and then on it would have seen the same, 7,412.6 and it’s actually at 7,080; This shows in dots the bands this error, in all bands of .351 khz, I think this design of an external display could help me to solve my problem. If it can be used on my ts 180s please contact me by email: pu1osc01@gmail.com
Grateful, Carlos Cardoso PY1AO.
I really don’t have any idea how the 180 works – sorry!
Hello Steve.
Truly a great project. The PCB has arrived. Thank you. I have populated the board with most components I had on hand, except for the IC’s and the LCD which still have to arrive. In my set-up Arduino board and DG5 board each have their own 5 Volt regulator. Therefore, in my humble opinion, the 5 Volt header pin between the two boards should be cut. Love to hear your comment on this.
Cheers, Heinz, VK4YI
You don’t need the regulator… One or the other works fine but shouldn’t be a problem if both are there, just don’t apply input power to both!
Having Trouble with Display. I built exactly as photo described. Display is all black on 40M and Blank on 20M. Can you offer some troubleshooting help?
If the display is black, the contrast pot needs to be adjusted – that should be R7 on the board.
Steve
KV6O
Hi all …
Finally the LCD has arrived and my counter is now up and running. What a great pleasure to use it on my TS-520SE. No problem in up-loading the code and the readout is very stable. In lieu of the Arduino duemilanove I’m using a compatible Arduino “eleven” from Freetronics which I had on hand. It’s processor has a proper crystal, not a ceramic resonator. Now all will have to be mounted in a decent enclosure.
Many thanks to Steve and all those who have contributed to this truly great project.
73, Heinz, VK4YI
That’s great to hear! When you get it all finished, please send me a pic or 2 and I’ll post it!
Steve
Hi,
just finished the DG5 emulator without any major difficulties. Code version 1.6.2 uploaded without problem, but latest version 2 did not compile. The Arduino duemilanove combined with your code and pcb gives a very stable and seemingly correct frequency reading. Need to check that.
Many thanks for the marvellous design.
Henri
Glad to hear you got it running. The version 2 code uses different libraries – you might need to load them into the Arduino IDE for it to compile if you haven’t already done so.
Well, just spent an interesting half-hour going over and over and over your schematic looking (in vain) for R5 and R6…..
Silly me, thinking that since there was an R1 through R4, and R7 and R8 that there ought to be an R5 and R6.
Looks to be an otherwise fun project. My DG5 has the habit of getting wonky, drawing about 10A (for about a tenth of a second) and melting the 14V power supply board. If I power it from a bench supply it works, and just runs a little warm. Having rebuilt the power boards three times before I figured out the problem was actually the digital display, your replacement Arduino dingus is going to be a bloody life- and sanity-saver.
Oh, and the DG5 now seems to have gone mammaries-up in the mean-time, and it isn’t working any more. Looks as if I had best get cracking on this.
I just looked myself – I must have had those resistors in a previous version, and removed them – don’t remember!
N6JDG here.. I am looking for a little help.
I built the emulator to hook up to my beloved 520S. Didn’t have any problems, everything seems to be going okay, but the LCD display shows all black on one line and a lighter black on the other. I’ve tried debug mode, i’ve tried compiling and sending over several versions of the code, all to no avail. R7 seems to be okay.. I can see it changing values on my meter, but the LCD does not respond in any way. I haven’t tested the LCD on a breadboard yet; thought I should ask first, in case there’s something else I should be looking for.
Jeff
Is the Arduino running? If you enter Debug mode, do you get data? You have to open the serial port monitor in the Arduino IDE or load up a terminal program to see the data stream. If the Arduino isn’t running, the LCD isn’t going to work…
You could also test buy loading another program that uses the LCD on the Arduino and changing the values to use the shield:
LiquidCrystal lcd(12, 11, 10, 9, 8, 7); // Setup pins for LCD. Do not use pin 5 – used for frequency counter.
Or, like you mentioned, use a breadboard to test the LCD and get the DG5 shield out of the equation. You need to verify that the Arduino is actually running, then you can tackle the LCD issue.
Will this work with a TS-830, I didn’t see it mentioned or I overlooked where it was listed. I am in process of acquiring parts and building an Arduino antenna analyzer also. Thanks for all of your patience and helping the hobby.
73’s KK4FTU
The TS-830 already has a built in digital display, so I don’t know what you would use this for.
I built this and it does work well..the problem I am having is the free is slightly off..i can create an offset in the “CF” section of the code and get spot on with one band like 20m, but the other bands are off. Anyone else have this issue?
I built this exactly as described and it does work, but the problem I have is the frequency is slightly off..i can set the cf offset and get perfect on one band but it will be even further off on other bands..cant seem to get this lined up on all the bands..if the code was written to have the ability to adjust cf on each band that would seem to solve this at least for me..not sure if I am the only one having this problem
I finished building one of these using your PCB and a combination of parts from various sources (parts bin, Digikey, eBay). There are a few steps left to the builder to figure out, but the build itself wasn’t especially difficult thanks to your elegant design.
I don’t have my TS-520 set up yet to provide the VFO signals to actually use this device as I’m currently re-capping everything. Thanks for providing the “shortcut” process for the TS-520 another HAM implemented and which is based on the original DK-520 schematics. His approach certainly makes the process easier than trying to entirely reproduce the DK-520.
A few comments to others: Be sure you’re running over 12VDC+ with decent amperage and only to the DC jack on your DG5 emulator if you’re using the regulator. Things get nutty with operation if you aren’t providing enough amps, even though your power lines will check out (didn’t realize the wall wart I was using was poorly chosen). The regulator also heats up FAST. I recommend a heat sink or bolting it to a metal enclose (which one should get anyway to cut down on RF interference). When it comes time to compiling the sketch for the Arduino, two libraries are required which will need to be downloaded. The compile errors don’t give precise package names, so here are the URLs:
FreqCount:
https://www.arduinolibraries.info/libraries/freq-count
LEDControl:
https://www.arduinolibraries.info/libraries/led-control
My Arduino board is one of the cheap Chinese ones you mention can be found on eBay. I picked up one of the Duemilanove ATMega328P-PU devices for about $6. Likewise, one can find an appropriate LCD panel for a ridiculous $2.50. Once those were purchased, I stuck with Digikey since they had all the chips required (Mouser didn’t even plan to have one back in stock) and that shaved off additional shipping costs between the two provided vendors. A $5 extruded case is on the way from eBay as well.
Very happy about this build and appreciate the time you put into it.
Jeff –
Glad to hear you got it working, I don’t recall the current draw, but the regulator needs to drop the voltage from 12V or so if you’re using a 12V wallwart to 5V. You might want to try a regulated 5V supply and skip the regulator, or a 9V supply to lessen heat.
is there circuit board layout…so I can populate the board?
This page has the build instructions and a picture of all the parts populated: https://www.kv6o.com/wordpress/projects/kenwood-dg5-emulator/
Hello Stephen. I placed an order for a board. Can you confirm that you received it please?
Dustin –
Sorry for the delay, I only check this site every week or so now and it’s been a few since I last looked! I processed it today and sent you an e-mail as well – again, sorry for the delay!
Steve
KV6O
Do you think this can be converted as VFO display for new kenwood too ??
I don’t understand the question – what new Kenwood?
Hi Steve
I wonder if you ever wanted to finish your Nixie version page, you mentioned in your last post that you will show how its done, jumpers settings and all connections, its quiet confusing for me, i would appreciate it if you finish the nixie page.
Your nixie unit looks cool in your video, i am interested to buy it already built if you ever wanted to sell.
Thanks for all.
Mos
I built it more as a test to see if i could, sorry for the delay in getting back to you!
Steve
KV6O
Hi Steve, I tried to order some more boards but the PayPal page said that you were out of stock. Do you think you will be ordering any more boards for this wonderful project? Thanks very much!
— Dave
At this point I am out of stock, I’ll see about ordering more boards. Steve, KV6O
Hi Steve,
I received one of your boards, soldered all the parts on it, stuck it on an Uno and it works like a champ! I tuned into W1AW last night and it read exactly on frequency. Thank you for making such a cool kit for a classic radio! Now to make a box for it…
Bob
N0LHK
Great to hear!
Steve,
I ordered one of your new boards and look forward to building this device.
73,
Justin B.
KI5GKD
Hi Steve,
V2.03 is a big step forward. I am looking forward to ordering one, building, and using on my TS-520S.
Hello, I am interested in a DG5, I have a Kenwood TS 520. On the back of the radio is a counter plug, but on the left side of the radio, labeled VFO, HET and CAR, in a metal external box. I was wondering if I need the DG5? I can send a picture to help with identify. Thank You
Sorry for the delay, there was an ad on kit for the original TS-520 that added the ports – not sure what it looked like, you can send me a picture at kv6o (this website) @ dot com. Been really busy at work lately, hopefully will get time to get kits together soon!
Hey Steve,
I would also like to have one for my Kenwood TS520,
Thanks
OK, this is June 29,2020
I wonder what the status is on the kit.
Actually, I just recently purchased a ts-520s, so a display would be a cool addition.
Looking forward to seeing when the digital display kit becomes available.
I have a TS-820s which was screw-drivered by prior owner.
Does anyone know what type of files for the pc board in github are?
Eagle complains that they are not Eagle files.
Thanks
Hello folks – I’m going to recode the DFD-2 digital display that I’ve been selling for quite some time for Heathkit users (i.e. SB, HW, HR series radios) to work with the TS-520s (etc). Am currently waiting for a new batch of PCB’s. It uses a PIC processor and is very easy to build. It will provide either 10Hz or 100Hz readouts to a LCD. I’ll have it done just as soon as my TS-520 arrives. No need to mess aith an Arduino as the code is self contained in the PIC. Here’s a link to the project http://k3jls.net/DFD_2.html. You can contact me at k3jls@verizon.net if interested. Joe – K3JLS
I have been following Todd Harrison’s 5 part You-Tube videos to build and test the Kenwood DG-5 freq counter emulator. I am trying to follow his steps, but I am having trouble with the code to simply measure frequency on my laptop screen. (Part 1 video). I believe the problem is with the FreqCounter.h library program. I can’t get access to the original KHM program, and I can’t find it anywhere in his tutorials. Can you make that available to me, as well as the finished code? I’ve tried looking elsewhere online but have been unsuccessful.
Thanks,
Mark
KC3BNV
Hi Harold,
I am using Eagle free version 9.6.2 and have successfully opened the version 2.0.3 board. (and just finished making my first unit with LED display)
Cheers,
John
Hi,
I could not compile it
Hi,
I could not compile it in arduino, it comes the error message
FreqCount.h: No such file or directory
Any idea what’s wrong ?
Hi, how could be used an LTP-305 led matrix for DG5 emulator ?
Best regards
Hi Steve,
Could I order 2 x boards and components please , a little confused with regards the ebay link that you have on the page, it took me to some dude in Rio, didn’t look like your board.
Thanks for all the work you have done with regards this project.
Gerald VK4ST,
Cheers mate.
I have the correct Eagle files for you If you want them.
Nice project. I’ve converted the files to Eagle and have a minimum of 10 PCB’s made so I have a few available for another HAM who’s interested.
I also had the issue the emulator was not exact on frequency. I’ve solved it by putting a 50pf trimmer in serie with the Arduino crystal (wich I replaced for a 22pf capacitor later). PD0PRA