Skip to main content

AD9850 DDS with ARDUINO

10 Hz  to 51.000000  MHz , steps selectable 1Hz  to 100kH or 1 Mhz

I had this AD9850 unit some time waiting to test it.
I used an ARDUINO UNO  with LCD Keypad shield
And a rotary encoder.

Many HAM 's already build receivers and tranceivers based on this fantastic AD9850 as VFO.
With this AD9850  building a rock stable VFO became a piece of cake!

The ARDUINO website shows many projects with this AD9850
But I could not find a sketch that  fitted my setup 100%.
I used the rotary encoder improved interrupt sketch as first base
by Simon Merrett / Oleg Mazurov / Nick Gammon rt Steve Spence

First only down count worked  I had  the encoder at pin 1 and 2  not 2 and 3  since those pins are  shifted 1 position on the board that tricked me.

Also the Vcc had to be connected to this encoder.
Only enabling the internal pull-up R's on the pins 2 and 3 showed missing pulses.

Had to adapt some things
The main loop was only a 1 time loop in fact in the original sketch

The LCD Keypad shield uses the pins 4 5 6 7 8 9  for the LCD    and AD0 for the keys
But AD1 2 3 4 5   and  D2 and D3 where left free
ATmega328  free AD inputs can be used as GPIO real nice

Some struggle to get the encoder to work. At first only rubbish came out.

But then it worked stable pulsing up and down and  functions to the main loop for displaying and controlling the DSS VFO where added.

 10Hz  to 51  MHz!  steps adjustable 1Hz ! to 100kH or 1 Mhz
all as you please!
and  I could tune calibrate it to my K3 that is very stable and precise at  frequency.

this is the sketch it works but needs more features

https://www.dropbox.com/s/zx5ea67oxqjd979/ad9850.ino?dl=0





  





Comments

Razvan M0HZH said…
Hello Jaap,

I did something similar a few years back. Unfortunately the AD9850 is not that good over ~20MHz, receiver will be noisy and will have spurs. Si5351 should be a better solution.

Cheers,
Razvan YO9IRF/M0HZH
pa0o said…
thanks for your comment

it was nice to play a bit with this device and Arduino

noise is bad
that rules this DDS out for serious TRX work then
maybe it is still useful for lower bands


will have to get the Si5351 next
the QRP labs U3 uses the Si5351
Unknown said…
Was interested in trying this dds control cerkit but the link to the sketch
https://www.dropbox.com/s/zx5ea67oxqjd979/ad9850.ino?dl=0
Is not working

73 Ray g8kps

Archive

Show more

Popular posts from this blog

2011-01-22 DIAMOND 2m 70cm 1m30 Colinear inside

Having relative poor signals on the local 70cm / 2m channels using this X50 Diamond collinear 70/2  1m antenna at a height of 25m. I needed to investigate what could be wrong. Measuring the cable only 3W is left for the antenna of the 10W 435MHz output from a IC451E The cable is 30m type H100 Z50 10mm outside diameter it is semi air-spaced but has an impossible 4mm² solid CU inner conductor not much air left. I preferred the H43 Z75 cable having lower loss and mechanical better ratio in conductor size. My antenna uses SO239 connector UHF type semi air spaced isolator.  3W should be enough for a comfortable noise free FM signal. But only 27km away at PA0A the signal is weak too weak something must be wrong? I made a simple reference dipole of 2x17cm CU wire. With this dipole the signals where totally worse. So the Diamond does work? I got curious to look inside. Maybe moisture penetration degraded the antenna. This  antenna is rainwater close in its normal vertical mounting posit

SPF5189z Low noise preamp 23cm

 14-4-2018 updated Above the low noise  preamp 50 - 4GHz    ebay  6€ Tested  2 small porto antennas 1 Baofeng UV antenna left   2nd best signal on PI2NOS 2 eBay DIAMONDSRH805S  wide band 144/432/1200  it works for its size as expected 3 piece of wire :   best signal in the setup... Unit under test at workbench. It was stable  50mA  at 5V   few days,  but sudden the current went up to 100mA And i could  no longer adjust it with the negative bias Voltage. The - Voltage went to zero and the SPF input port became low Z. This SPF5189z was broken  no oscillations, no input overload just it broke while i was receiving the PI2NOS 430.125 using a small antenna at the workbench. The specs of  SPF5189z  say it has an internal circuit  regulating the bias current. Replaced . again   with an other of the 5 spare SPF i have. The new one again could be adjusted at 50mA  5V  The current raises to 150mA  when removing the  negative gate voltage. Where is that internal bias cir

BIJZEN mast en ontwerp fouten.

In 2013 heb ik een Bijzen aluminium mast 3 x7m  opgehaald  bij iemand die hem niet mocht plaatsen Gemeente Oss  dat zegt misschien al genoeg.. Pas in 2018 heb ik hem geplaatst had ik veel eerder moeten doen. Mooie mast, mijn xyl vond hem zelfs mooi. Hij is licht, de 3 delen wegen  235kg  het vaste deel 102kg dus het te lieren gedeelte weegt   slechts 133kg + ca 50kg rotor + antennes etc.  De elektrische lier is wel erg zwaar 30kg misschien wel maar die zit onder    Antenne  3ele Steppir  19kG  +  G2500DXC rotor: 3.6kg  + rotorbuis 12 kg  +  kabels 10kg  + 5/7 ele 6m beam. ongeveer 50kg Je moet niet te dichtbij  kijken, dan valt op dat het Aluminium lastwerk heel slordig is gedaan, scherpe bramen aan de lassen waar kabels door kunnen worden beschadigd of haken Er is zeer ! weinig ruimte voor de rotor een YAESU G2500DX past net maar dan ook net  met beetje buigen van  kruisverband. Het Rotor platform kan wel een meter hoger dat geeft meer  buislengte boven het zit nu op 3.5 meter van het