General > General Technical Chat
Sub-par ad9833 sweep using arduino.
rstofer:
--- Quote from: nali on January 16, 2022, 09:49:02 am ---
--- Quote from: SiliconWizard on January 16, 2022, 02:41:03 am ---And reading the AD9833 datasheet would tell the OP what can and cannot be done. =)
--- End quote ---
Not to mention the data sheet of the MCU used by whichever Arduino. Why for example don't you change the code from using delays to timer interrupts, add a potentiometer to load timer values and give yourself a sweep speed control? Then you can publish it for someone else to have a play with...
What I can't fathom is why you even have an Arduino in the 1st instance, given your vitriolic hatred of the whole ecosystsm. There are plenty of ways to do the same thing in the analogue domain.
--- End quote ---
What should happen is for the calculation to be one step ahead and the value transferred on an interrupt. As it is, there is some calculation in the loop with delay(1) so the update occurs at some period much greater than 1 ms. Depending on the actual values being computed, the computation time can probably vary somewhat.
Navigation
[0] Message Index
[*] Previous page
Go to full version