Author Topic: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.  (Read 3200 times)

0 Members and 1 Guest are viewing this topic.

Offline No.MadTopic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: pl
Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« on: September 20, 2020, 09:20:34 pm »
Hello everyone,

I was recently working on function generator for in-house use. I made it just to give it a shot as mostly I was doing electronics from Arduino and various modules from EBay and so on.

Any critique and pointers are welcomed (both in case of component selection and operation as well in schematic capture). Schematics in attachment.
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2544
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #1 on: September 20, 2020, 10:46:48 pm »
I would use a DDS module instead.
Take a lot at this thread:  Looking for <$50 function generator

You can buy an AD9834 module and drive it with an Arduino.  Or build your own based on the AD9834.
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3036
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #2 on: September 20, 2020, 11:44:02 pm »
Having a display showing the frequency of the signal would be convenient.

This project video goes quite in depth behind a similar idea of controlling a XR2206 via a microcontroller - especially with regard to frequency selection:

https://youtu.be/ZCdTxRASqiQ

Before that he did a simpler XR2206-based project, and there is quite a bit of useful tips on how to trim the feedback loop of the op-amps to get a better looking signal:

https://youtu.be/D3OGcUU1oGE?list=PLUMG8JNssPPwjMZ0eUjj5Zahx2yjz6Alo&index=1
« Last Edit: September 20, 2020, 11:46:08 pm by ledtester »
 
The following users thanked this post: cdev

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #3 on: September 20, 2020, 11:56:41 pm »
I prefer an ATMega32u4 (with USB) and an AD9850 DDS.

I was looking at the single pot for sine adjust and realized that I hadn't ever used an XR2206.
I built a Southwest Technical Products (SWTPC) fun generator that used two separate pots for + and - sine adjust.
I'm so confused because this article from Don Lancaster shows an XR205.
https://www.tinaja.com/glib/rad_elec/funct_gen_9+10_72.pdf
I was pretty sure mine was an Intersil 8038.
Edit: Ah, in 1973 it switched to the 8038.

Your diagram says "XP2206".
« Last Edit: September 20, 2020, 11:59:00 pm by Renate »
 
The following users thanked this post: cdev

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3036
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #4 on: September 21, 2020, 12:20:50 am »

I built a Southwest Technical Products (SWTPC) fun generator that used two separate pots for + and - sine adjust.
I'm so confused because this article from Don Lancaster shows an XR205.
https://www.tinaja.com/glib/rad_elec/funct_gen_9+10_72.pdf
I was pretty sure mine was an Intersil 8038.
Edit: Ah, in 1973 it switched to the 8038.

Your diagram says "XP2206".

Southwest Technical Products - that logo of theirs! I remember seeing their ads all the time in Byte magazine. Don Lancaster - TV Typewriter - what a blast from the past!
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #5 on: September 21, 2020, 12:25:02 am »
Don Lancaster - TV Typewriter - what a blast from the past!
Don Lancaster is a pretty good sport, he's put his old books up for free download.
https://www.tinaja.com/ebksamp1.shtml

Edit: I had the SWTPC FG-2 function generator, a later edition with the ICL8038, it was still "new" by January 1974.
http://www.piratenpraten.nl/schemas/Amtron/SWTPC/SWTPC%20Function%20Generator.pdf
« Last Edit: September 21, 2020, 01:02:18 am by Renate »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11630
  • Country: my
  • reassessing directives...
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #6 on: September 21, 2020, 12:55:20 am »
once i built my DDS9850 that served me for few years until i bought a Uni-T AWG .its using $10 AD9850 module controlled from atTiny13A and adjustable output offset, magnitute etc and output to THS4631 opamp.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 
The following users thanked this post: ledtester, Renate

Offline No.MadTopic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: pl
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #7 on: September 21, 2020, 04:02:25 pm »
Thank you everyone for pointing me to AD9850 solution, I think I will do that one next  :-+

This project video goes quite in depth behind a similar idea of controlling a XR2206 via a microcontroller - especially with regard to frequency selection:

I didn't know Scullcom did it already I had to miss it somehow. I knew I should put Schmidt on square output. Btw, love his clips on YT, he goes on such length to explain stuff. Cheers!

once i built my DDS9850 that served me for few years until i bought a Uni-T AWG .its using $10 AD9850 module controlled from atTiny13A and adjustable output offset, magnitute etc and output to THS4631 opamp.

It looks really neat. I hope you won't mind if I use your solution?

I decided to do FG based on XR2206 (or it's clone XP2206) as I have two of these ICs. It was choice between XR2206 and MAX038. And I really wanted to try doing something more complicated from literall scratch.

Regards,
No.Mad
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11630
  • Country: my
  • reassessing directives...
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #8 on: September 21, 2020, 04:38:58 pm »
once i built my DDS9850 that served me for few years until i bought a Uni-T AWG .its using $10 AD9850 module controlled from atTiny13A and adjustable output offset, magnitute etc and output to THS4631 opamp.
It looks really neat. I hope you won't mind if I use your solution?
its not anyone's solution. i believe anyone can do better than me. the analog trimpot control was crude, slightly touching the trimpots making the output signal jumped nastily, maybe some loose contact or body capacitance got coupled to the signal, not really sure. its suggested to use digital control from mcu but more components will be needed, i was just want to be quick. what i'm afraid is soon enough, you'll want pass the 1MHz limit that XR2206 can give, AD9850 can go to 30-50MHz down to near DC and audio range. ymmv.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline HB9EVI

  • Frequent Contributor
  • **
  • Posts: 722
  • Country: ch
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #9 on: September 21, 2020, 05:43:03 pm »
to call a XR2206 setup 'Function Generator' is a crude definition for 2020.

even a dirt cheap AD9833 module board can reproduce all 3 wave types (sine/tri/square) better than the XR2206 ever did; the AD9834 is doing the same for a few bucks more and this up to the 10MHz-range

sure, it's everybodys free choice, but I wouldn't waste time and material for such a prehistoric chip
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2544
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #10 on: September 21, 2020, 07:01:56 pm »
to call a XR2206 setup 'Function Generator' is a crude definition for 2020.

even a dirt cheap AD9833 module board can reproduce all 3 wave types (sine/tri/square) better than the XR2206 ever did; the AD9834 is doing the same for a few bucks more and this up to the 10MHz-range

sure, it's everybodys free choice, but I wouldn't waste time and material for such a prehistoric chip

The advantage of the AD9834 over the AD9833 is that you can easily implement an amplitude adjustment with a pot or DAC.
 

Offline HB9EVI

  • Frequent Contributor
  • **
  • Posts: 722
  • Country: ch
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #11 on: September 22, 2020, 02:48:26 pm »
jep, that's +1 for the AD9834, the second +1 is the higher MCLK frequency
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16612
  • Country: us
  • DavidH
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #12 on: September 22, 2020, 11:02:58 pm »
Quote
XR2206 based

I would use a DDS module instead.

I might do a discrete analog design and phase lock the frequency to a DDS for simplicity.  I definitely would not use an integrated analog function generator because it is too easy to make a discrete implementation with better performance.
 

Offline No.MadTopic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: pl
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #13 on: October 27, 2020, 06:03:36 pm »
Now you've done it. I didn't know about AD9850 at the beginning.

For now I designed plug-in module board. Now I have to do Motherboard and PSU. I would like to do 2 channel based on AD9850 with neat LCD display.

Well everybody, it's your fault  ;D

Regards,
No.Mad
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: Function Generator - Arduino Nano (Atmega 328) and XR2206 based.
« Reply #14 on: October 28, 2020, 12:52:10 am »
Mmm, don't you want to use the same crystal oscillator for all the synthesizers?
It will make it easier to lock them and to adjust the calibration.
OTOH, Analog Devices has tons of DDS chips with multiple outputs so that you can easily do quadrature or specific phases or phase modulation.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf