How-to · Intermediate · 3 min read
Function and Signal Generators
Uses and Settings
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A function generator produces test signals such as sine, square and triangle waves at a frequency and amplitude you set. Use it to test filters, amplifiers, speakers and inputs, or to simulate a sensor. DDS generators set frequency digitally and accurately, while XR2206 kits are cheap analog versions. Pair it with an oscilloscope, set the DC offset so the signal stays within your circuit's safe range, and remember the 50 Ω output impedance.
Key specs at a glance
- Waveforms
- Sine, square, triangle, ramp, pulse, arbitrary (DDS)
- Frequency
- Hz to tens of MHz depending on model
- Amplitude
- Up to about 10 to 20 V peak-to-peak open circuit (check)
- Offset
- DC offset shifts the wave up or down
- Output impedance
- Typically 50 Ω
- Types
- DDS bench units (e.g. FY6900 class), XR2206 kits, PWM from a microcontroller
Key settings
how many cycles per second. Use the frequency and wavelength calculator for RF context.
usually in volts peak-to-peak. Many generators display the value into a 50 Ω load; into a high-impedance input, the real voltage is about double. Check the "load" or "High-Z" setting.
a DC shift. A 0 to 3.3 V square wave for a microcontroller needs 3.3 Vpp with +1.65 V offset.
on square or pulse waves, the percentage of time high; see PWM.
Typical tests
- 1Filter response: sweep a sine wave through an RC filter and watch the output fall above the cut-off frequency on an oscilloscope.
- 2Amplifiers: feed a small sine into an op-amp or audio amplifier and check gain and clipping.
- 3Speakers and buzzers: test frequency response or find a buzzer's resonant frequency.
- 4Simulated sensors: a square wave stands in for a flow sensor, encoder or tachometer while you write the code.
- 5Clock signals: drive a logic circuit or counter at a known rate.
Protecting your circuit
Before connecting, check the waveform and offset on a scope, and start at low amplitude. Never let the signal swing below 0 V or above the supply on a microcontroller pin; use offset or a series resistor and clamp diodes. Connect the generator ground to the circuit ground. Do not connect the output to a powered output of another circuit, which can damage both.
Try it: RC filter calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Driving a microcontroller pin with a signal that swings negative.
- Forgetting the 50 Ω vs High-Z amplitude difference.
- No common ground.
- Starting at full amplitude on a sensitive circuit.
- Connecting the output to another driven output.
Frequently asked questions
What is a DDS function generator?
A generator that builds waveforms digitally for precise, stable frequencies and arbitrary waves.
Why is my amplitude double what the screen says?
The display assumes a 50 Ω load; a high-impedance input sees about twice the voltage.
Can a microcontroller be a function generator?
For simple square waves and low-frequency PWM, yes. For clean sine waves, use a DDS chip or generator.
Do I need one as a beginner?
Not at first. It becomes useful once you work with filters, audio and signal processing.
How do I make a 0 to 5 V square wave?
Set 5 Vpp amplitude with +2.5 V offset, checking on a scope.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




