Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

DDS AD9833 Controller for Arduino LCD Keypad Shield.

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Mon Feb 10, 2020 2:20 am    Post subject: DDS AD9833 Controller for Arduino LCD Keypad Shield. Reply with quote

Analog Devices AD9833 is controlled by Arduino LCD Keypad Shield.
The connection to the DDS module is made up of two power lines and three SPI interfaces.
Circuit diagram
https://drive.google.com/open?id=1JXYliu83b2AujtUyNUQxdRVs0yE652_f

Operate using the character LCD and key switch mounted on the “LCD Keypad Shield” board.
Move the setting cursor displayed at the bottom of the LCD to set the output waveform and frequency.
The operation method of the key switch is described in the following "Operation Manual".
https://drive.google.com/open?id=1esjkVThUk-4vaVL1UG9J_TNtK0uRFcV8
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Mon Feb 10, 2020 10:47 am    Post subject: Reply with quote

Hello O-Family

Thank you for sharing your project.
The circuit and instruction pdfs are very clear. While your code is easy to read, i thank you for taking the time to make the operating manual. There are many options and this is very convenient Very Happy

_________________
Mark
Back to top
View user's profile Visit poster's website
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Thu Feb 13, 2020 1:35 am    Post subject: AD9833 with MCP41010 and OP amp(x6). Reply with quote

Thank you Mark!

continue,
This module is equipped with MCP41010 (digital potentiometer) and Operational Amplifiers (x6) in AD9833.
Sine and triangle waves have an amplitude of up to about 3.6V, and the amplitude can be changed on the LCD screen using a digital potentiometer.

This is a practical and easy-to-use module!

Circuit diagram
https://drive.google.com/open?id=1vE4XgChqopJBAQJ6fuklBH0un3O9V0ni

Operation Manual
https://drive.google.com/open?id=17VBoasE-uPQCRK9od9ER5dWbhVoKE6cc
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5916
Location: Holland

blank.gif
PostPosted: Fri Feb 14, 2020 3:28 pm    Post subject: Reply with quote

an excellent addition.
Do you have a link for the second board? Where to purchase i mean.

_________________
Mark
Back to top
View user's profile Visit poster's website
Plons

Bascom Member



Joined: 24 May 2005
Posts: 435
Location: Hilversum - The Netherlands

netherlands.gif
PostPosted: Fri Feb 14, 2020 9:06 pm    Post subject: Reply with quote

https://www.banggood.com/AD9833-DDS-Signal-Generator-Module-0-12_5MHz-Square-Triangle-Sine-Wave-p-1161804.html?rmmds=search&cur_warehouse=CN

A general search for AD9833 on Banggood shows even more variations

Cheers
Nard

_________________
Bascom AVR ver 2.0.8.6
Dragon-lair: http://www.aplomb.nl/TechStuff/Dragon/Dragon.html
"leef met vlag en wimpel, maar hou het simpel"
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Sat Feb 15, 2020 12:38 am    Post subject: Reply with quote

I purchased from China by mail order.
https://ja.aliexpress.com/wholesale?catId=0&initiative_id=SB_20200214153813&SearchText=ad9833

And now, [AD9834], [AD9850], [AD9851] programs are also under construction.
Back to top
View user's profile Visit poster's website
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Wed Feb 19, 2020 2:32 am    Post subject: DDS AD9834 Controller for Arduino LCD Keypad Shield. Reply with quote

further,
The AD9834 has the ability to switch between two frequencies or phases with an external signal, and the test circuit uses the [FSELECT] pin to switch between the two frequencies, so FSK "Frequency Shift Keying" It is possible.

Circuit diagram
https://drive.google.com/open?id=1qqJxO--GohPUsI5i5yDWTJ-DRbDRi-m8

Operation Manual
https://drive.google.com/open?id=1_Kn6PKLaMgdcVujRCbDAC6-DdquenWs6
Back to top
View user's profile Visit poster's website
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Thu Apr 29, 2021 4:00 pm    Post subject: Reply with quote

Hello.
O-Family, I upgraded your project AD9833 that works paralell with your and GUI-O application on Smart phone.
All details (*.BAS code, Schematic, Pictures) are in attach.

https://www.youtube.com/watch?v=8iPABwZyiAc
www.gui-o.com

Regards, MS
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Fri Apr 30, 2021 12:36 am    Post subject: Reply with quote

Hi, matjazs

Great project!
I am also very interested in controlling from a smartphone.
It was a very good reference.
Back to top
View user's profile Visit poster's website
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Fri Apr 30, 2021 10:30 pm    Post subject: Reply with quote

Yes, it is very easy to program.
GUI-O is a universal application and there is no need to do anything on the Android device site.
You just select an object, give it a unique name, assign it an X and Y position on the screen and that's it.
In the opposite direction, you read the unique name and value that follows it.
f.e. @ bt1 1 (button named bt1 that sends the value 1)
The delimiter between the parameters can be a space or a comma.
Back to top
View user's profile
bellon

Bascom Member



Joined: 01 Mar 2019
Posts: 31

switzerland.gif
PostPosted: Fri Jan 27, 2023 4:47 pm    Post subject: Reply with quote

hello O-family,
I want to use an arduino NANO card and the programming language and BASCOM (and not ARDUINO IDE) my NANO card is connected with a wiffi esp8266 or HC06 module to communicate with the GUI-O application which is on my phone. So far I communicate with my phone using Gui-O live designer (TCP-IP) and it works fine. The next step is to connect ESP or HC06 with my phone. What is the procedure for this? Is it enough to use the "Quick pair" function on the GUI-O application or I missed a step!
Thanks for your help
Back to top
View user's profile
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Mon Jan 30, 2023 9:49 am    Post subject: Reply with quote

You can use the following methods to connect your device to your phone:
- Bluetooth module HC06
nothing to do here, just connect HC06 to Tx or RX pin of Nano. (Pay attention to the baudrate setting)

- ESP8266 module
you can do as described here
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=15115

You only need the Arduino IDE to prepare the ESP module. After you simple replace HC06 modul with ESP8266. Use Bascom after this on your Arduino Nano board.


Be careful when programming the Arduino Nano with the bootloader that the Rx and Tx pin is disconnected from the HC06 or Wemos D1 during programming!!
(Nano Bootloader use the same port RxTx)

A wiring diagram and brief instructions are attached.
Back to top
View user's profile
bellon

Bascom Member



Joined: 01 Mar 2019
Posts: 31

switzerland.gif
PostPosted: Wed Feb 01, 2023 9:04 pm    Post subject: Reply with quote

Hello Matjaz,
Thank you for all your explanations, now I communicate with my phone via Bluetooth. I have another question, in my application. I use a graph. If my software (bascom) sends him the command:
Print "@ch0 PLI:'pl0' PLC:'#6d9dc5' YP:'28' XP:'0' " (28 is a constant) the graph works very well!

but I would like to send it a variable (byte , string, single) my command is as follows: Print "@ch0 PLI:'pl0' PLC:'#6d9dc5' YP: " ; Humidity ; " XP:'0' " ( in this case, Humidity is a variable byte ) and the app (GUI-O) on my phone gives me an error : "Number of parameters mismatch error (ch0) "

I tried many possibilities but without success! do you have an idea ?

Bernard
Back to top
View user's profile
bellon

Bascom Member



Joined: 01 Mar 2019
Posts: 31

switzerland.gif
PostPosted: Thu Feb 02, 2023 3:02 pm    Post subject: Reply with quote

Hello Matjaz
Finally I found the correct command to update the graph, it is: "@ch0 PLI:'pl0' PLC:'#fc0000' YP:"; Temperature ; "XP:'0'"
thank you for your excellent tutorial!
Bernard
Back to top
View user's profile
matjazs

Bascom Member



Joined: 08 Nov 2016
Posts: 86

PostPosted: Fri Feb 03, 2023 10:38 am    Post subject: Reply with quote

In case you want to display several variables on one graph Wink

Code:
Print "@pl1 PLI:'pl0,pl1' PLC:'#cd1e2c,#06c1f7' YP:'" ; Temperature ; "," ; Humidity ; "'," ; "XP:'0,0'"
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum