You are on page 1of 8

instructables

DIY Function/Waveform Generator

by GreatScottLab

In this project we will have a short look at commercial function/waveform generators in order to determine what
features are important for a DIY version. Afterwards I will then show you how to create a simple function generator,
the analog and digital way. At the end I will then present you a DIY DDS function generator design which can (kind
of ) hold up to the commercial versions. Let's get started!

Step 1: Watch the Video!

The video gives you all the information you need to create your own DDS function generator. During the next steps
though, I will present you some additional information.

https://youtu.be/Y1KE8eAC9Bk

Step 2: Order Your Components!

Here you can nd a parts list with example seller Alie xpre s s :
(a liate links):
1x 12V center tapped transformer:

DIY Function/Waveform Generator: Page 1


href="https://s.click.aliexpress.com/e/_dZzaRwR">http 1x B40C2300 full bridge recti er:
s://s.click.aliexpress.com/e/_dZzaRwR http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x IEC socket: 1x LM7812 12V regulator:


https://s.click.aliexpress.com/e/_dYQWdHl http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x B40C2300 full bridge recti er: 1x LM7912 -12V regulator:


https://s.click.aliexpress.com/e/_dUSXlfZ http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x LM7812 12V regulator: 1x LM7805 5V regulator:


https://s.click.aliexpress.com/e/_d8GjYYf http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x LM7912 -12V regulator: 1x Capacitor kit: http://rover.ebay.com/rover/1/711-


https://s.click.aliexpress.com/e/_d6ueE 53200-19255-0/1?...

1x LM7805 5V regulator: 1x Arduino Nano: http://rover.ebay.com/rover/1/711-


https://s.click.aliexpress.com/e/_dWITJXp 53200-19255-0/1?...

1x Capacitor kit: 1x Rotary Encoder: http://rover.ebay.com/rover/1/711-


https://s.click.aliexpress.com/e/_d8NcJ0L 53200-19255-0/1?...

1x Arduino Nano: 1x AD9833 DDS IC: http://rover.ebay.com/rover/1/711-


https://s.click.aliexpress.com/e/_d85qR0x 53200-19255-0/1?...

1x Rotary Encoder: 1x I2C LCD: http://rover.ebay.com/rover/1/711-53200-


https://s.click.aliexpress.com/e/_dXKK3dV 19255-0/1?...

1x AD9833 DDS IC: 1x TL071 OpAmp: http://rover.ebay.com/rover/1/711-


https://s.click.aliexpress.com/e/_dTc4NZH 53200-19255-0/1?...

1x I2C LCD: https://s.click.aliexpress.com/e/_d6HiiMB 1x BNC connector: http://rover.ebay.com/rover/1/711-


53200-19255-0/1?...
1x TL071 OpAmp:
https://s.click.aliexpress.com/e/_dXd3VYL 1x 10k, 50k Potentiometer:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x BNC connector:
https://s.click.aliexpress.com/e/_dZ51v0F Am a z o n. de :

1x 10k, 50k Potentiometer: 1x 12V center tapped transformer: -


https://s.click.aliexpress.com/e/_dU8s3rt
1x IEC socket: https://amzn.to/2UDXsK1
Eba y :
1x B40C2300 full bridge recti er:
1x 12V center tapped transformer: https://amzn.to/2HVn8wn
http://rover.ebay.com/rover/1/711-53200-19255-0/1?...
1x LM7812 12V regulator: https://amzn.to/34vhVoP
1x IEC socket: http://rover.ebay.com/rover/1/711-
53200-19255-0/1?... 1x LM7912 -12V regulator: https://amzn.to/34vN9vQ

DIY Function/Waveform Generator: Page 2


1x LM7805 5V regulator: https://amzn.to/2N1l4ag 1x I2C LCD: https://amzn.to/31bhEW8

1x Capacitor kit: https://amzn.to/34vpEmB 1x TL071 OpAmp: https://amzn.to/2ZXTb53

1x Arduino Nano: https://amzn.to/34yTMgX 1x BNC connector: https://amzn.to/314ktI9

1x Rotary Encoder: https://amzn.to/300YJMl 1x 10k, 50k Potentiometer: https://amzn.to/2HOI34j

1x AD9833 DDS IC: https://amzn.to/2MZm7HP

Step 3: Build the Circuit!

Here you can nd the schematic of the circuit as well as reference pictures of my nished perfboard construction.
Feel free to use them.

DIY Function/Waveform Generator: Page 3


Step 4: Upload the Code!

Here you can nd the code for this project. You need to upload it to the Arduino before your function generator can
work successfully.

Big thanks once again to Cezar Chirila for his work. The code is pretty much made by him. Have a look at his article:

https://www.allaboutcircuits.com/projects/how-to-D...

Download
https://www.instructables.com/ORIG/FXZ/5055/K06ZGL9U/FXZ5055K06ZGL9U.rar

Step 5: 3D Print a Housing!

Here you can nd the .stl and .123dx les for my 3D printed housing. 3D print them and then mount all the
components inside the main enclosure to complete your function generator build.

DIY Function/Waveform Generator: Page 4


DIY Function/Waveform Generator: Page 5
https://www.instructables.com/ORIG/FLQ/P3IY/K06ZGL9V/FLQP3IYK06ZGL9V.stl
… View in 3D Download

View in 3D Download
https://www.instructables.com/ORIG/FSV/PN71/K06ZGL9W/FSVPN71K06ZGL9W.stl

Download
https://www.instructables.com/ORIG/F7O/QQZB/K06ZGL9X/F7OQQZBK06ZGL9X.123dx

Download
https://www.instructables.com/ORIG/FPX/FJC3/K06ZGL9Y/FPXFJC3K06ZGL9Y.123dx

Step 6: Success!

You did it! You just created your own https://twitter.com/GreatScottLab


function/waveform generator!
Feel free to check out my YouTube channel for more
awesome projects:

http://www.youtube.com/user/greatscottlab https://www.facebook.com/greatscottlab

You can also follow me on Facebook, Twitter and


Google+ for news about upcoming projects and
behind the scenes information:

DIY Function/Waveform Generator: Page 6


Great project, better than cheap xr2206 or icl8038 on ebay. Notice: if you cannot get center tap
12+12v, you can get +12 and - 12 from normal transformer, but you will need 2x more current
transformer.
please give me the code i want to build it...

signal generator.rar is not opening saying the file is corrupted

Thank you for this project, always wanted to make one myself.
What 3D filament did you use, it looks very nice.
działa świetnie :)

Thanks for posting the design. Is F1 the fuse in the IEC socket? If so then I assume that F2 is fuse
shown in the pictures of the proto board. You might want to include the fuse and holder in the list of
required parts. I finally have all my parts and will be starting the build soon. Thanks again for the
design.
I think you mean 24Vac centertapped.

This is a great presentation. Excellent use of a variety of visuals. Nice!

DIY Function/Waveform Generator: Page 7


WOW!!.. thanks for this!!............

DIY Function/Waveform Generator: Page 8

You might also like