Maker Pro
Maker Pro

AD9850 Generate Random Fixed Frequencies Controlled By MEGA328P-AU

XerXes392

Oct 10, 2020
1
Joined
Oct 10, 2020
Messages
1
Hey

I've made a circuit with AD9850 Controlled by ATMega328P-AU with serial interface.

Here is the Schematic Link.

https://gofile.io/d/ShIaPi


I've Tested Prog with AD9850 Module (HC-SR08_Module) and code is working.

Circuit use a 3.7v Single Cell Li-Po Battery and MT3608 to Boost 3.7v to 5v.

The Reference Oscillator for ad9850 is 2 MHz .

I've Reduce the code to just set the frequency of ad9850 But it generates few fixed random frequencies .

for instance:

Desire Freq ----> Output Freq

1 KHz ----> 900 KHz
2 KHz ----> 3.9 KHz

3 KHz ----> 15Hz

4 KHz ----> below 2Hz

5 KHz ----> 899 KHz



and so on.....



every time i change frequency , the output frequency is a random value between above.

I would appreciate any help.
 

ratstar

Aug 20, 2018
485
Joined
Aug 20, 2018
Messages
485
So ur making it output a random frequency, whats not working about it? I'm not an expert with arduino's but I know a lot about programming in general.
 

Nanren888

Nov 8, 2015
622
Joined
Nov 8, 2015
Messages
622
Are you saying that the you load the AD9850 registers but the ourput frequency is not the one you hoped for?
If the values you are loading are correct for the frequencies you want, I'd have to assume that your communication is not working.
How are you determining the frequency of the output?
 
Top