Hello people who know about the rpi and python more than me,
For a university project, I am using an RPI W0 with ADS9850 Module to generate two sine wave outputs of 28125 Hz and 37500 Hz. I used this Python code: https://github.com/mi0iou/RPi_RFSigGen found online to program the 40-bit registry serially requiring 4 GPIO pins, a 3.3 V pin, and a ground pin. The code linked above allows the user to input the frequency and the wave produced is very good and precise, with 1-2 Hz error, which I tested.
As someone not extremely proficient with Python, I need some help making modifications to code so that my output is slightly different. Specifically:
1) I want two analog sine waves to be produced simultaneously from both outputs (SinA and SinB)
2) I want a DC offset of 0.5V for both wave outputs
3) I would like to create a phase shift of 90 degrees for SinB output relative to SinA output
How would I have to modify the code so that this information is uploaded to the DDS through my serial 40 bit input?
Thank you very much in advance,
Tony
AD9850 Spec Sheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD9850.pdf
Where I found the Code: https://asliceofraspberrypi.blogspot.com/2013/10/connecting-dds-module-to-raspberry-pi.html?showComment=1582213740937#c5…