Hi. I am building a project with two AD9850 Signal Generators , Two Rotary Encoders, and one 2x16 LCD display.
- One encoder sets the frequency of the first AD9850 (rx)
- The push button sets the digit to displace the frequency
- One character at the bottom LCD row indicates which digit of the frequency is being adjusted.
- The second AD9850 will run at the same frequency (rx) plus a value (ry) that is set with the second encoder
I have frankestenized code from different sources and everything is working, with the exception of the second AD9850. I don’t know how to define it.
I have tried to mess with the library AH_AD9850.h and I have also tried to create a second library AH_AD9850_2.h to define the second generator, but I don’t know how to do it.
Has anyone connected two generators into one board, or can give me some tip about how to modify the library in order to include more than one generator?
Here is a picture of the experiment. This is my first experience with Ardunino, and my first post at this community where I have learned almost everything that I know so far. Thank you!!!
I attach a file with the sketch and the library.