DDS https://www.theladderline.com/ en Inexpensive AD9850 DDS boards on eBay https://www.theladderline.com/inexpensive-ad9850-dds-boards-ebay <span class="field field--name-title field--type-string field--label-hidden">Inexpensive AD9850 DDS boards on eBay</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hi everyone.</p> <p> No updates for a while. We're getting ready to move house so I've been busy with lots of things around that.</p> <p> Thanks to those who have emailed me reporting that they've built the <a href="/dds-60">Arduino DDS-60 controller</a>.</p> <p> Bob, N9KR pointed out that there are inexpensive DDS boards on eBay that work with my software with minor changes. These use an AD9850 chip which is very similar to the AD9851 in the DDS-60. Search eBay for AD9850. Most are "Buy it now" for about $18.99 with free shipping to the US from Hong Kong. These are not kits but assembled modules ready to go.</p> <p> Bob reports that to cope with the difference between the AD9851 and AD9850, he only had to change the WriteByteToDDS(0x09) in WriteToDDS to WriteByteToDDS(0x08).</p> <p> The clock frequency on these boards is 125 MHz whereas the DDS-60 uses 180 MHz. That requires the following changes.</p> <p> const long CLOCK_BASE = 180000000 &amp; 0xFFFF0000;<br /> change to<br /> const long CLOCK_BASE = 125000000 &amp; 0xFFFF0000;</p> <p> and to make the calibration provide the + or - 100 ppm:</p> <p> const unsigned long CLOCK_LSB_MIN = 0x4EB0;<br /> const unsigned long CLOCK_LSB_MAX = 0xDB50;<br /> change to<br /> const unsigned long CLOCK_LSB_MIN = 0x286C;<br /> const unsigned long CLOCK_LSB_MAX = 0x8A14;</p> <p> I haven't tried one of these myself but it sounds like a very inexpensive way of building a DDS. I don't know what they're like in terms of spectral purity or stability.</p> <p> 73<br /> Ross</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/3" typeof="schema:Person" property="schema:name" datatype="">Ross</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sat, 06/11/2011 - 09:58</span> <section class="field field--name-comment field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="0" id="comment-190" about="/comment/190" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1308792740"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Hermann (not verified)</span></span> </p> <p class="comment__time">Wed, 06/22/2011 - 22:32 <span property="schema:dateCreated" content="2011-06-23T01:32:20+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/190#comment-190" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/190#comment-190" class="permalink" rel="bookmark" hreflang="en">DDS module works!</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Hi Ross,</p> <p>thanks for this awesome piece of software!<br /> I got one of those modules a few days ago. It´s not actually from Ebay. It is this module: <a href="http://iteadstudio.com/store/index.php?main_page=product_info&amp;cPath=18&amp;products_id=414">http://iteadstudio.com/store/index.php?main_page=product_info&amp;cPath=18&amp;…</a><br /> I did the mentioned changes in the software and it worked right out of the box!<br /> But after a few minutes I noticed that the AD9850 chip got really hot. I measured the current and found out that the module draws 129mA with the Arduino connected and 113mA without the Arduino. That would be 650mW at 5,05V. The data sheet says 380mW at 5V...<br /> Did you measure the drawn current on your DDS-60?<br /> I would be interested to know if the chip on the DDS-60 is getting warm too.</p> <p>Thanks again for this great program and for sharing it!</p> <p>vy 73 de Hermann DL8MCP / AJ4ZS</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=190&amp;1=default&amp;2=en&amp;3=" token="8Ggz8YvZ-0TKI7ZxChb1M1mtk3j_DKNS84GBgQ7UnYs"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-191" about="/comment/191" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1309848278"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Andries Pretorius (not verified)</span></span> </p> <p class="comment__time">Tue, 07/05/2011 - 03:44 <span property="schema:dateCreated" content="2011-07-05T06:44:38+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/191#comment-191" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/190#comment-190" class="permalink" rel="bookmark" hreflang="en">DDS module works!</a> by <span lang="" typeof="schema:Person" property="schema:name" datatype="">Hermann (not verified)</span></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/191#comment-191" class="permalink" rel="bookmark" hreflang="en">DDS-60 temperature</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I operate two DDS-60 boards. The DDS chip runs hot to the touch, without any perceptible problems, although I have not yet measured the current.</p> <p>73s </p> <p>Andries Pretorius ZR6ABS</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=191&amp;1=default&amp;2=en&amp;3=" token="rvZ9S8fZC_63-0-Pb8lReRTXiMHGFQxfZXU_xhQvH1Y"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-195" about="/comment/195" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1320836975"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">VE2UM (not verified)</span></span> </p> <p class="comment__time">Wed, 11/09/2011 - 07:09 <span property="schema:dateCreated" content="2011-11-09T11:09:35+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/195#comment-195" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/191#comment-191" class="permalink" rel="bookmark" hreflang="en">DDS-60 temperature</a> by <span lang="" typeof="schema:Person" property="schema:name" datatype="">Andries Pretorius (not verified)</span></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/195#comment-195" class="permalink" rel="bookmark" hreflang="en">...AD9850 DDS modules</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Nov 09 2011</p> <p>Hi...</p> <p>I discovered REALLY CHEAP AD9850 DDS modules on eBay...</p> <p>Simply goto EBAY and type: DDS module</p> <p>There ate PLENTY of them !!!!</p> <p>There are more expensive COMPLETE signal generators at around 60 $ but the modules i talk about are the ones with a square blue pot, a square 125 MHz quartz oscillator and an LED close to the oscillator. Those modules can be bought for less than 12 $. I bought one of them, breadboarded it with a PIC12F1840 for initial tests (serial access) and it works great !</p> <p>The only problem is that documentation on the modules is inexistent. I examined the module and found this pinout (quartz oscillator on the LEFT)</p> <p>Top and bottom rows:</p> <p> Vdd D0 D1 D2 D3 D4 D5 D6 D7 GND</p> <p> Vdd CLK Latch DATA RST GND SQW SQW SinA SinB</p> <p>Vdd is +5V (chip can work at 3v3 but not guaranteed to work at 125MHz)</p> <p>D0 - D7 = Parallel programming bits</p> <p>GND = Ground (obvious); Vss</p> <p>CLK = Serial programming clock<br /> Latch = Serial programming latch (FQ_UD pin on 9850)<br /> DATA = Serial programming DATA (internally tied to D7)<br /> RST = Reset. Keep tied to GND<br /> SQW = Square wave outputs (complementary) Duty cycle adjustable with blue pot.<br /> SINA = Raw unfiltered AD9850 sine output<br /> SINB = 70 MHz LPF filtered AD9850 output.</p> <p>I only tried serial programming. For that purpose, D0 and D1 should be tied to Vdd and D2, to Vss. Keep D7 open, I left D2 - D6 open, but note sure about recommended pin status.</p> <p>The format is: </p> <p>W0 W1 W2 W3 W4 W5 ------------- W28 W29 W30 W31 0 0 0 0 0 0 0 0</p> <p>The frequency word has 32 bits, W0 is the LSB and W31, the MSB. W0 is sent first.</p> <p>The last 8 zeroes are for the two control bitys (keep at "0"), the powerdown bit (keep also at "0") and the five phase bits that i keet at "0" for now.</p> <p>The frequency word calculation is:</p> <p>WORD = Frequency * 4 294 967 296 / 125 000 000</p> <p>I used 125 000 000 for the nominal quartz frequency. The quartz oscillator in not a TCXO and is NOT adjustable. For greater accuracy, you shall read the actual quartz frequency and use it in the formula.</p> <p>Example: for 3750 kHz: WORD = 3 750 000 * 4 294 967 296 / 125 000 000 = 128 849 019</p> <p>in HEX: 07 AE 14 7B.</p> <p>The frequency resolution is 0,03492 Hz, so you can build a really smooth VFO with the AD9850.</p> <p>Remember: This is a DDS. While the signal is not bad (use the filtered SinB signal), it is not perfect. If you want to get on the air, you will need a lowpass filter for your band to prevent interference.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=195&amp;1=default&amp;2=en&amp;3=" token="ZMwNV1KGNABeDa9gr0UfGicPQDwGjDZDTOP_beFVtlM"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-210" about="/comment/210" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1355533007"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Ian (not verified)</span></span> </p> <p class="comment__time">Fri, 12/14/2012 - 20:56 <span property="schema:dateCreated" content="2012-12-15T00:56:47+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/210#comment-210" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/190#comment-190" class="permalink" rel="bookmark" hreflang="en">DDS module works!</a> by <span lang="" typeof="schema:Person" property="schema:name" datatype="">Hermann (not verified)</span></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/210#comment-210" class="permalink" rel="bookmark" hreflang="en">DDS AD9850 module</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Sorry to bump an old thread, but I recently got one of these and had a play. I, too, noticed things getting a bit warm so I checked around. The 125MHz oscillator is a 3.3v spec device. If you look carefully at some of the ebay adverts, you can see that some versions of the board actually say 3v3 on the oscillator itself.<br /> To help counter the 5v/3.3v issue, I added two 1n4001 diodes in series with the supply, from the arduino to the DDS board and things seemed a lot happier. It isn't quite as low as 3v3 but at least the oscillator runs a lot cooler. I later replaced the arduino supply to the AD9850 with its own 7805, but I left the diodes in. I suppose I could have ordered a proper 3v3 regulator, but life's too short and I already had 5v regulators lying around.<br /> I haven't had a problem with speed, so I guess it is happy at its supply level.</p> <p>Ian G0OTO</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=210&amp;1=default&amp;2=en&amp;3=" token="jVgrVkdWYglwZA-U3pz5MenD2nokE54ZKW7gJce6vSA"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-218" about="/comment/218" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1391920378"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Bob (not verified)</span></span> </p> <p class="comment__time">Sun, 02/09/2014 - 00:32 <span property="schema:dateCreated" content="2014-02-09T04:32:58+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/218#comment-218" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/218#comment-218" class="permalink" rel="bookmark" hreflang="en">More on the AD9850 DDS VFO</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Just to update: </p> <p>I've built 3 of these AD9850 VFOs since my original note to Ross &amp; they're now down to $4 or $5 bucks on eBay. Due to Ross's amazing arduino code they make terrific homebrew &amp; boatanchor rig VFO's as well as bench test signal generators to 40Mhz. If anyone's interested I've posted a youtube video --&gt; <a href="http://youtu.be/W_dlocgMEpI">http://youtu.be/W_dlocgMEpI</a></p> <p>73, Bob N9KR</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=218&amp;1=default&amp;2=en&amp;3=" token="oylRTldUYUklMt0CaYr7tQtcMbfGbrHzMgUo5pvTKJE"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-224" about="/comment/224" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1417381061"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Anonymous (not verified)</span></span> </p> <p class="comment__time">Sun, 11/30/2014 - 16:57 <span property="schema:dateCreated" content="2014-11-30T20:57:41+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/224#comment-224" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/224#comment-224" class="permalink" rel="bookmark" hreflang="en">Unreliable AD9850 DDS boards</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I have got a bunch of these on ebay from different suppliers. I have noticed that a few do not work properly, from the ones I have tested. What happens is sometimes they produce a nice sine wave output at the desired frequency, and sometimes they do not. Flicking the Vcc line sometimes fixes the problem (if you can call that a fix). To explain further, when I flick the Vcc line, the AD9850 module does not power down completely as it is being kept half-powered by the 4 wires connecting it to the Arduino board. But it seems doing this "nudges" something and then the AD9850 starts, even though the Arduino was doing nothing at the time, which further means that the frequency was already transmitted properly but the AD9850 was refusing to produce it, until I flicked the Vcc line. If anyone has any ideas please let me know. Many thanks</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=224&amp;1=default&amp;2=en&amp;3=" token="QbUKfHu30pFhoMh0KLyrb3EFfuhHElnE-O3-QbmFxbw"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-247" about="/comment/247" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1424477525"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">kd5byb (not verified)</span></span> </p> <p class="comment__time">Fri, 02/20/2015 - 20:12 <span property="schema:dateCreated" content="2015-02-21T00:12:05+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/247#comment-247" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/247#comment-247" class="permalink" rel="bookmark" hreflang="en">Very nice!</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I'm very happy to have found your webpage and your code!</p> <p>My goal is to build a frequency-agile LOWFER receiver. I want to replace the 30 MHz oscillator on the AD9851 board with a very-low drift OCXO or the output from a GPS disciplined 10 MHz frequency standard.</p> <p>I'm using your code on an Arduino Uno board using one of the newer AD9851 boards on eBay. Everything is working GREAT except the encoder is "jumpy." What I mean by this is as follows:</p> <p>If I have it in 1 Hz mode and I turn it one click, the frequency moves anywhere between 1 and 20 Hz. </p> <p>The 0.22uF caps make this worse. After removing the 0.22uF caps, it settles down some - it now jumps anywhere from 1 to 4 Hz. </p> <p>I've tried it with two different mechanical encoders. One was from a junked monitor, the other is a Bourns unit from Adafruit that has very similar specs to the one you suggested from Mouser.</p> <p>All of this is on a solderless breadboard, so I almost wonder if stray capacitance or something is causing the issue?</p> <p>Any ideas welcome...but really...I could use it very effectively as-is!</p> <p>thanks much and 73,<br /> ben, kd5byb</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=247&amp;1=default&amp;2=en&amp;3=" token="N1EbYi22VoLfp84rOkO2biY7aN4zJ6_3pwxtn7cm1sQ"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-248" about="/comment/248" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1424532367"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">kd5byb (not verified)</span></span> </p> <p class="comment__time">Sat, 02/21/2015 - 11:26 <span property="schema:dateCreated" content="2015-02-21T15:26:07+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/248#comment-248" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/248#comment-248" class="permalink" rel="bookmark" hreflang="en">Fixed my encoder issue. :)</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I figured out what was wrong with my encoders. Both of my encoders have detents. The detents were in a place where neither switch was active, so transitioning between detents caused several changes in the position of the switches before they went open again.</p> <p>I just opened up one of the encoders, removed the detent spring, put it back together, hooked it up, and it works great!</p> <p>Thanks much and 73,<br /> ben, kd5byb</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=248&amp;1=default&amp;2=en&amp;3=" token="d7heWZF_GmyVbTJzNVfCZpsTWDI39QjqAsFxnNROJK0"></drupal-render-placeholder> </div> </article> </section> <div class="field field--name-tags1 field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class="field__items"> <div class="field__item"><a href="/taxonomy/term/1" hreflang="en">Arduino</a></div> <div class="field__item"><a href="/taxonomy/term/2" hreflang="en">DDS</a></div> </div> </div> Sat, 11 Jun 2011 12:58:11 +0000 Ross 3162 at https://www.theladderline.com An Arduino based DDS-60 controller https://www.theladderline.com/dds-60 <span class="field field--name-title field--type-string field--label-hidden">An Arduino based DDS-60 controller</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p> A recent project has been the building of a digital VFO based around the DDS-60 kit and Arduino controller. It's a useful thing to have either as part of a homebrew transmitter or transceiver or as a piece of test equipment. It can generate RF from 1 to 60 MHz in 1 Hz steps with the stability of a crystal oscillator and can run as a QRSS beacon. It's nothing particularly original and it's not rocket science but it might be helpful for someone wanting to get started with DDS and microcontrollers. It's still a work in progress and I'll be happy if anyone wants to contribute ideas or discussion.</p> <!--break--> <p> Use the links below or at the top right to navigate the pages.</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/3" typeof="schema:Person" property="schema:name" datatype="">Ross</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sun, 03/07/2010 - 08:29</span> <section class="field field--name-comment field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="0" id="comment-196" about="/comment/196" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1326558075"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Enzo (not verified)</span></span> </p> <p class="comment__time">Sat, 01/14/2012 - 12:21 <span property="schema:dateCreated" content="2012-01-14T16:21:15+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/196#comment-196" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/196#comment-196" class="permalink" rel="bookmark" hreflang="en">your arduino dds</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Hi Ross, i tried your software with this:</p> <p><a href="http://www.ebay.it/itm/ws/eBayISAPI.dll?ViewItem&amp;item=280755016414&amp;ssPageName=ADME:L:OU:IT:1123">http://www.ebay.it/itm/ws/eBayISAPI.dll?ViewItem&amp;item=280755016414&amp;ssPa…</a></p> <p>It works very fine. Very very good job! Thanks for your "open software".</p> <p>My best 73 - Enzo IZ5GVP</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=196&amp;1=default&amp;2=en&amp;3=" token="gDAy6jr-QD1pL9PoWmhO3j249LH0Upx_zC-8URTJjCg"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-211" about="/comment/211" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1359079752"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Anonymous (not verified)</span></span> </p> <p class="comment__time">Thu, 01/24/2013 - 22:09 <span property="schema:dateCreated" content="2013-01-25T02:09:12+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/211#comment-211" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/211#comment-211" class="permalink" rel="bookmark" hreflang="en">LCD Backlight voltage</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>You backlight voltage to pin 15 is 12v through a 560 ohm R.<br /> This could easily drop to 5v. Was that the intent, and why not<br /> Feed it 5v directly? My LCD backlight specs at 5v, and I may<br /> feed it 5v directly as I have seen elsewhere.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=211&amp;1=default&amp;2=en&amp;3=" token="Hk9jxT9x4QE5IrXejBd6GwWx2AZZwjjXJI0pBXYJrI8"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-214" about="/comment/214" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1361915655"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Dave (not verified)</span></span> </p> <p class="comment__time">Tue, 02/26/2013 - 17:54 <span property="schema:dateCreated" content="2013-02-26T21:54:15+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/214#comment-214" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/214#comment-214" class="permalink" rel="bookmark" hreflang="en">Pullup programming for the buttons</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thanks for the sketch. I'm new to the Arduino and not a C programmer. I would never have made it without your work.</p> <p>I couldn't get the buttons to work, and found that the internal pullups were not active. I tried adding external resistors and they worked. In the code to initialize the button ports I had to reverse the order of these lines, like this:<br /> pinMode(_buttonPorts[i], INPUT); // set port as input<br /> digitalWrite(_buttonPorts[i], HIGH); // enable pull-up resistor<br /> When I first set the ports as inputs and then enabled the pullups, all was fine. Strange, I sez.</p> <p>Thanks again for your efforts.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=214&amp;1=default&amp;2=en&amp;3=" token="4UcT8zkGKDYEIV6y1tNwNCSfIioNX2Qg17W2b1l1JmM"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-215" about="/comment/215" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1380774203"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">charles (not verified)</span></span> </p> <p class="comment__time">Thu, 10/03/2013 - 01:23 <span property="schema:dateCreated" content="2013-10-03T04:23:23+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/215#comment-215" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/215#comment-215" class="permalink" rel="bookmark" hreflang="en">Adding buttons and functions</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>This an excellent VFO. Is there a code example that adds a button to retrieve a saved frequency from a memory address and send it to the DDS module? That is, showing where the additional lines of code should be added to the latest version?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=215&amp;1=default&amp;2=en&amp;3=" token="iCw_TI3fER_wkOuWtVrPTbNNC19WJ0xvv0HOY1ov0b8"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-217" about="/comment/217" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1390701640"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">John (not verified)</span></span> </p> <p class="comment__time">Sat, 01/25/2014 - 22:00 <span property="schema:dateCreated" content="2014-01-26T02:00:40+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/217#comment-217" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/214#comment-214" class="permalink" rel="bookmark" hreflang="en">Pullup programming for the buttons</a> by <span lang="" typeof="schema:Person" property="schema:name" datatype="">Dave (not verified)</span></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/217#comment-217" class="permalink" rel="bookmark" hreflang="en">pinMode/digitalWrite order reversal</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I built the VFO as a signal generator 2 years ago. I couldn't locate the same encoder so I ended up having to change a little of the code to count properly. Occasionally, the encoder would double increment or not at all over one 360 degree rotation.</p> <p>Yesterday I decide to attack my code change, noticed I had overlooked how the interrupt was fired (CHANGE) and determined I needed it to fire on a rising edge. After reprogramming the chip, I found a totally unpredictable unit. I searched and searched for a loose connection to no avail. While the IDE was open, I inadvertently clicked on the link to this page, saw the comment about the buttons, checked mine and sure enough - not pulled up. This was a surprise as my unit has worked flawlessly since I built it (not counting the glitches from the encoder).</p> <p>I did the pinMode order change, and found not only was the unit working again, but my encoder changes worked correctly. </p> <p>I'm not sure I would have looked for the buttons to have been floating had I not serendipitously got here.</p> <p>The question is why was the order reversal necessary? I believe I used Arduino 1.00 initially and now am using 1.52b.<br /> What goes on internally as the code compiles is not my forté, but I wouldn't think it should change the order of a user's code.</p> <p>73,<br /> K3OWZ</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=217&amp;1=default&amp;2=en&amp;3=" token="5k6LRxvqsblIXua3eOzKvwHkmJEibFph5fA5EQf9V8g"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-383" about="/comment/383" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1448381447"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Bob N9KR (not verified)</span></span> </p> <p class="comment__time">Tue, 11/24/2015 - 12:10 <span property="schema:dateCreated" content="2015-11-24T16:10:47+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/383#comment-383" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/383#comment-383" class="permalink" rel="bookmark" hreflang="en">Using the Mega2560 Board</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Hi Ross. Just an update on my experiments with this great code and a Mega2560. I needed more pins than the Mega328 provides for some switching control functions in my shack. Built up a Mega2560 &amp; AD9850 version that works well for me but had to make some hacked up code changes (mostly due to direct port manipulation pin changes between the 2 boards…).<br /> If anyone’s interested, building &amp; demo videos are here-- <a href="https://www.youtube.com/watch?v=teo8_V50xg8">https://www.youtube.com/watch?v=teo8_V50xg8</a> and here— <a href="https://www.youtube.com/watch?v=zNOT2PFLGMI">https://www.youtube.com/watch?v=zNOT2PFLGMI</a><br /> The 2nd video has links to a fritzing diagram &amp; my hacked up code in the comments section.<br /> Disclaimer: I’m not a programmer and my code hacks are trial &amp; error &amp; definitely not professional, but worked for my setup.<br /> 73, Bob N9KR</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=383&amp;1=default&amp;2=en&amp;3=" token="3T4gBhxxO9nGYc5wB2Oa8b0EbeONQXqJfPjfTd40WIQ"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-387" about="/comment/387" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1449952265"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">Rich Carstensen (not verified)</span></span> </p> <p class="comment__time">Sat, 12/12/2015 - 16:31 <span property="schema:dateCreated" content="2015-12-12T20:31:05+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/387#comment-387" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/387#comment-387" class="permalink" rel="bookmark" hreflang="en">Software Not working for me at all!</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Hello!<br /> I'm sad to report after talking with Bob, N9KR, that when I load Versions 1.31 and 1.4 off this Web site they don't work! If I load the software into the Arduino Editor and select the 328 and put one program at a time in, they show Errors! Of coarse I don't have anything attached to the port! Just straight Upload of software off this web Site into the Editor with no Arduino Board attached! Is this normal? Thanks!</p> <p>Rich W8VK</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=387&amp;1=default&amp;2=en&amp;3=" token="0pyEO_DIu7VrJ2zVSEpm-8JpvS_fggYaKmd3159TsHg"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-390" about="/comment/390" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1486720725"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">WB6LA (not verified)</span></span> </p> <p class="comment__time">Fri, 02/10/2017 - 05:58 <span property="schema:dateCreated" content="2017-02-10T09:58:45+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/390#comment-390" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/390#comment-390" class="permalink" rel="bookmark" hreflang="en">VFO as QRSS Beacon</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>You mention use of this VFO as a QRSS beacon. Are harmonics somewhere suppressed such that no low-pass filter(s) are needed? I<br /> mean, if the beacon is set for 7.1 MHz do we need to block 14.2 and 21.3 MHz, etc? It would be way cool to avoid having to wind the<br /> toroids for so many filters. Cheers,</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=390&amp;1=default&amp;2=en&amp;3=" token="stq28osMgQuuzY_YCtk5NikoipWNJbVCq4T7l4SnqWg"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="0" id="comment-391" about="/comment/391" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1486721361"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><span lang="" typeof="schema:Person" property="schema:name" datatype="">WB6LA (not verified)</span></span> </p> <p class="comment__time">Fri, 02/10/2017 - 06:09 <span property="schema:dateCreated" content="2017-02-10T10:09:21+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/391#comment-391" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/390#comment-390" class="permalink" rel="bookmark" hreflang="en">VFO as QRSS Beacon</a> by <span lang="" typeof="schema:Person" property="schema:name" datatype="">WB6LA (not verified)</span></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/391#comment-391" class="permalink" rel="bookmark" hreflang="en">Low-Pass Filter, Anyone?</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Never mind: I saw on another page of this site the explanation that an external low-pass filter is needed. Cheers,</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=391&amp;1=default&amp;2=en&amp;3=" token="g5QxsVrMCFAUDqzCp3SRBpXRRT4EQmzUDn9r1BYrD3w"></drupal-render-placeholder> </div> </article> </section> <div class="field field--name-tags1 field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class="field__items"> <div class="field__item"><a href="/taxonomy/term/1" hreflang="en">Arduino</a></div> <div class="field__item"><a href="/taxonomy/term/2" hreflang="en">DDS</a></div> </div> </div> Sun, 07 Mar 2010 12:29:35 +0000 Ross 5 at https://www.theladderline.com