I have a problem with converting the code to the generator on AD9850
I have code on m328 to AD9850 but on display 1.8 "and two encoders
What I would like to change is to remove the encoders and use a larger 3.5 "TFT display with support for touch , also need to change m328 to m2560 because there is no space , there are certainly people here who will take care of it not much time
someone can change GUI on some nice one ass well
Could someone of you be able to rewrite my code?it would be nice to do something nice and give it to other people
Please help me
This is the original design
http://vwlowen.co.uk/arduino/AD9850-waveform-generator/AD9850-waveform-generator.htm
adds files to GoogleDrive
Looking at the original design page, they seem to use a Red 3.3V display with a 5V ATmega328P.
You should either use 3.3V logic or level shifters. 1k0 Series resistors work (according to Bodmer)
The original design uses GPIO pins for the AD9850, SPI pins for the TFT display, GPIO pins for rotary encoders.
If you want to use an MCUFRIEND-style shield, you would need to control the AD9850 via the SPI pins and have A5 available as Analog/Digital. The MCUFRIEND Shields are happy with 5V logic. (or 3.3V logic)
Yes, you can do the User input with Touch buttons. Either use an AD9850 or AD9833 module from Ebay, BangGood, ...
The "software" is trivial. Draw a paper sketch of where you want buttons to be displayed. Where you want FREQUENCY and MODE displayed.
I would choose a 2.4" Touch display.
David.
Thank you for the response, first of all
from what I understand from the code AD9850
AD9850 module itself can be connected to any pins because is configured as
#define W_CLK 8 // AD9850 Module pins.
#define FQ_UD 7
#define DATA 6
#define RESET 5
so he does not use any important pins
if we use arduino mega there are pins available from D22 to D53, so I think the problem will not be
when it comes to the graphic design itself, I've never designed it like that, I did not even think about how it would look like and maybe you were something you proposed, you have more experience in such things
you definitely know how to use the 3.5 "display
so that it would be nice and elegant
I can draw something on a piece of paper but it guarantees you , your project will certainly be better
I do not have experience in such things but I can design a PCB
It is your project. You must design what it looks like.
By the sound of it you are using a Mega i.e. you have plenty of pins.
You can use the same AD9850 pins as the example.
It is simply detecting a button press instead of turning a knob.
David.