Author Topic: Idea for a tiny function generator  (Read 1978 times)

0 Members and 1 Guest are viewing this topic.

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Idea for a tiny function generator
« on: June 24, 2019, 11:02:14 pm »
I've had this idea for a little while, and I'm not sure if there are any huge pitfalls I'm missing that would make doing this a bad idea.

I've wanted a tiny little function generator, and some of the Analog Devices DDS chips seem like a perfect solution.

For instance, I've looked into the AD9834 and it seems like a pretty cool little chip that could do sine, square and triangle waves. It could be controlled with a simple microcontroller setup which would have a display and some buttons or an encoder with a button for control.

The downsides I can forsee are:

  • It's kinda expensive, $13/chip in low quantities.
  • 75MHz maximum frequency, I think it'd be perfectly usable, but it could be a little low
  • Digital amplitude control could be difficult - any suggestions for this?

Other than these downsides, I feel like it would be a fun idea to attempt, and could be really fun to try out small-scale manufacturing and selling it on Tindie if I'm able to make it work well enough.

Thoughts?
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline ChristofferB

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: dk
  • Chemistry phd student!
    • My channel:
Re: Idea for a tiny function generator
« Reply #1 on: June 24, 2019, 11:19:52 pm »
it's a bit wasteful, but maybe out a digital attenuator on it? I'm pretty sure I've seen small cheap digital attenuator chips flying around somewhere.

maybe you could split the output and have one going to a frequency doubler. 150 MHz would be very decent.

--Chris
--Christoffer //IG:Chromatogiraffery
Check out my scientific instruments diy (GC, HPLC, NMR, etc) Channel: https://www.youtube.com/channel/UCZ8l6SdZuRuoSdze1dIpzAQ
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Idea for a tiny function generator
« Reply #2 on: June 24, 2019, 11:22:20 pm »
it's a bit wasteful, but maybe out a digital attenuator on it? I'm pretty sure I've seen small cheap digital attenuator chips flying around somewhere.

maybe you could split the output and have one going to a frequency doubler. 150 MHz would be very decent.

--Chris

so the digital attenuator would provide variable amplitudes? That would be nice, I'd have to see what kind of battery life I could get out of the thing, I have some small lipos lying around that I want to try using for it.

I'll look into frequency doublers too, thanks for that suggestion!
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9821
  • Country: 00
  • Display aficionado
Re: Idea for a tiny function generator
« Reply #3 on: June 24, 2019, 11:44:47 pm »
75 MHz doesn't sound low to me. Many generators do only 10 or 20 MHz and even then the square waves aren't that impressive. If you manage to do even 30 MHz with good fidelity, you've got a winning product on your hands.
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Idea for a tiny function generator
« Reply #4 on: June 25, 2019, 12:09:43 am »
75 MHz doesn't sound low to me. Many generators do only 10 or 20 MHz and even then the square waves aren't that impressive. If you manage to do even 30 MHz with good fidelity, you've got a winning product on your hands.

I see, thank you! Wasn't quite sure what expectations were for a hobby-grade sort of function generator.
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9821
  • Country: 00
  • Display aficionado
Re: Idea for a tiny function generator
« Reply #5 on: June 25, 2019, 12:14:19 am »
I see, thank you! Wasn't quite sure what expectations were for a hobby-grade sort of function generator.
Please don't take my comments as sage advice. They obviously are, but you should definitely be sure to inform yourself.  ;D What works for me may not work for the rest of the world.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Idea for a tiny function generator
« Reply #6 on: June 25, 2019, 12:33:11 am »
My rather ancient function generator only goes up to 2MHz, for the most part that has been adequate for my needs. If I want more I've got TTL oscillators in various frequencies or I can use one of my FPGA dev boards to get clocks up into hundreds of MHz. Depends on your needs.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2322
  • Country: au
Re: Idea for a tiny function generator
« Reply #7 on: June 25, 2019, 12:39:36 am »
Spend $25 on a AD9102 and you get 180 MSPS, arbitrary waveform capability, and offset+gain ("digitial attenuation") are built-in to the chip. I know it seems like an expensive chip, but it would provide a pretty killer combo of smallness, performance and simplicity of design, and removes the need for external digital attenuators + offset.
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Idea for a tiny function generator
« Reply #8 on: June 25, 2019, 01:01:20 am »
Spend $25 on a AD9102 and you get 180 MSPS, arbitrary waveform capability, and offset+gain ("digitial attenuation") are built-in to the chip. I know it seems like an expensive chip, but it would provide a pretty killer combo of smallness, performance and simplicity of design, and removes the need for external digital attenuators + offset.

Yeah really that isn't a terrible price for all that it does.

Certainly saves a bunch of external circuitry that would probably get close to the $25 price tag anyway.
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2762
  • Country: us
Re: Idea for a tiny function generator
« Reply #9 on: June 25, 2019, 10:57:38 am »
Here is my Function Generator using an AD9834:
  • 1 to 10MHz
  • 4VP-P output
  • +/-2V DC Offset
  • Waveforms: sine, triangle, square, sine sweep, triangle sweep, PWM
  • Analog and digital outputs
  • Rotary Encoder control
  • OLED Color display
   

Prototype:
   
« Last Edit: June 25, 2019, 11:09:45 am by MarkF »
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2762
  • Country: us
Re: Idea for a tiny function generator
« Reply #10 on: June 25, 2019, 11:07:12 am »
75 MHz doesn't sound low to me. Many generators do only 10 or 20 MHz and even then the square waves aren't that impressive. If you manage to do even 30 MHz with good fidelity, you've got a winning product on your hands.

I see, thank you! Wasn't quite sure what expectations were for a hobby-grade sort of function generator.

75 MHz is the maximum clock rate.
The maximum output frequency is half that (37.5 MHz).
But that is the nyquist frequency.  I would not expect to realize that.
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2762
  • Country: us
Re: Idea for a tiny function generator
« Reply #11 on: June 25, 2019, 11:25:05 am »
Also, see this related discussion of the AD9834 and the AD9102
   https://www.eevblog.com/forum/projects/dds-project-76783/
 

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 2077
  • Country: us
    • The Messy Basement
Re: Idea for a tiny function generator
« Reply #12 on: June 25, 2019, 12:31:03 pm »
I've always been happy with a 5 MHz function generator. Any time I need higher frequency, I don't need functions, just a squarish or sine wave. At higher frequencies I use a dedicated RF generator that covers maybe 450 kHz to 500 MHz or more. A doubler is easy to do, so that gets me to 1 GHz, though I've never needed it. My fastest scope is 350 MHz, so I couldn't see it anyway! The only specialty signal I use is a composite FM generator for tuner alignment. 100 MHz, but with various different modulations. What I don't have is an arbitrary generator, so that would be of interest in any digital design I considered.
 

Offline mdszyTopic starter

  • Supporter
  • ****
  • Posts: 291
  • Country: us
  • somehow has an ee degree
    • szy.io
Re: Idea for a tiny function generator
« Reply #13 on: June 25, 2019, 12:44:50 pm »
This is awesome input, thank you all for the suggestions!
somehow allowed to be a Pixie Wrangler in Training
eBay Store | My site | Hackaday.io Projects | my mastodon.technology profile
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf