DIY Function/Waveform Generator

9,177

72

4

About: Awesome Electronics Tutorials, Projects and How To´s

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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Step 2: Order Your Components!

Here you can find a parts list with example seller (affiliate links):

Amazon.com:

1x 12V center tapped transformer: https://amzn.to/315KMhk

1x IEC socket: https://amzn.to/2HVm9wb

1x B40C2300 full bridge rectifier: https://amzn.to/300y2ad

1x LM7812 12V regulator: https://amzn.to/2ZJrCkR

1x LM7912 -12V regulator: https://amzn.to/31h0vtO

1x LM7805 5V regulator: https://amzn.to/2ZHiaOE

1x Capacitor kit: https://amzn.to/2ZQJZTW

1x Arduino Nano: https://amzn.to/2ZM32j6

1x Rotary Encoder: https://amzn.to/2HWJvlg

1x AD9833 DDS IC: https://amzn.to/34vh1IX

1x I2C LCD: https://amzn.to/2LDaa7L

1x TL071 OpAmp: https://amzn.to/316IUF1

1x BNC connector: https://amzn.to/2UDQK6I

1x 10k, 50k Potentiometer: https://amzn.to/2HSJu1G

Ebay:

1x 12V center tapped transformer: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x IEC socket: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x B40C2300 full bridge rectifier: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x LM7812 12V regulator: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x LM7912 -12V regulator: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x LM7805 5V regulator: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Capacitor kit: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x Rotary Encoder: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x AD9833 DDS IC: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x I2C LCD: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x TL071 OpAmp: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x BNC connector: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

1x 10k, 50k Potentiometer: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

1x 12V center tapped transformer: -

1x IEC socket: https://amzn.to/2UDXsK1

1x B40C2300 full bridge rectifier: https://amzn.to/2HVn8wn

1x LM7812 12V regulator: https://amzn.to/34vhVoP

1x LM7912 -12V regulator: https://amzn.to/34vN9vQ

1x LM7805 5V regulator: https://amzn.to/2N1l4ag

1x Capacitor kit: https://amzn.to/34vpEmB

1x Arduino Nano: https://amzn.to/34yTMgX

1x Rotary Encoder: https://amzn.to/300YJMl

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

1x I2C LCD: https://amzn.to/31bhEW8

1x TL071 OpAmp: https://amzn.to/2ZXTb53

1x BNC connector: https://amzn.to/314ktI9

1x 10k, 50k Potentiometer: https://amzn.to/2HOI34j

Step 3: Build the Circuit!

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

Step 4: Upload the Code!

Here you can find 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...

Step 5: 3D Print a Housing!

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

Step 6: Success!

You did it! You just created your own function/waveform generator!
Feel free to check out my YouTube channel for more awesome projects:

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

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information:

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    4 Discussions

    0
    None
    KushagraK7

    Tip 8 days ago

    Why not improve the design by replacing the transformer with an SMPS delivering +12 and -12 volts and making the device dual channel with phase shift control?

    0
    None
    Polymorph

    9 days ago

    I think you mean 24Vac centertapped.

    0
    None
    sumjar

    10 days ago

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

    0
    None
    billbillt

    11 days ago

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