Hi Jack et al
I have already tried adding a delay to startup, I started at 200ms and went to 2sec with no success, I have already added the 2 calls to send frequency like this.
? ? DDS.setfreq((float)currentFrequency, 0); ? ? ? ?// set AD9850 output to 1 Hz and phase to 0
? ? sendFrequency(currentFrequency);
? ? sendFrequency(currentFrequency);
I placed them here in the upper section of setup because ?I was seeing the DDS start on a power cycle on the wrong frequency, around 7MHz, with the calls where they were in the original code, moving them stopped that.
I am using a type 1 dds with an adapter board, not that it should make any difference, however I do have two units and have just changed them over, surprise suprise it is as Terry suggested it is just the original module showing the effect. Changing DDS units it's one thing I just did not think of trying. So Jack, great just add two calls in the setup, I would suggest they got in the top half as I've currently placed them. ?Also I think there's some duplicated calls in the lower section, in my efforts to remedy this my lower section is now like this.
? ? updateTime = millis(); // Next update time
? ? encoderDirection = 0;
? ? encoderMode = ENCODERTUNING; ? ? ? ?// tuning
? ? StartupScreen();
? ? locationX = 1;
? ? analogMeter(locationX, locationY, 200, 110, WHITE); // display smeter
? }
I'm having a steep learning curve, Jacks a much better coder than I was or will ever be.
Many thanks all
Regards ?
David G8DJM