|
|
Function generator module |
x 1 | |
|
|
STM32 frequency meter from previous project |
x 1 | |
|
|
Trimmer Potentiometer, 10 kohm |
x 1 | |
|
|
Rotary potentiometer |
x 3 | |
|
|
2x2 Switch |
x 1 | |
|
|
6x2 Switch |
x 1 |
|
Soldering Iron Kit |
|
|
arduino IDEArduino
|
Build a $10 Function Generator with Frequency Meter for Your Lab
A function generator is a piece of electronic test equipment used to generate various types of electrical waveforms over a wide range of frequencies. It's an indispensable tool for anyone involved in electronics or electrical engineering for electronic design and testing. The most common waveforms produced are Sine, Square and Triangular wave.

A rectangular signal can be easily generated with discrete components, standard ICs, and microcontrollers, while for precise generation of sine and triangle waveforms are most often used specialized ICs. Such is the case here, where the XR-2206 specialized chip is used for this purpose, which, although a bit outdated, performs its function perfectly.
This is a cheap kit for making a function generator that costs less than $5 total. The kit contains all the necessary parts as well as a circuit diagram and can be made in less than an hour.

A rectangular signal can be easily generated with discrete components, standard ICs, and microcontrollers, while for precise generation of sine and triangle waveforms are most often used specialized ICs. Such is the case here, where the XR-2206 specialized chip is used for this purpose, which, although a bit outdated, performs its function perfectly.
This is a cheap kit for making a function generator that costs less than $5 total. The kit contains all the necessary parts as well as a circuit diagram and can be made in less than an hour.
Here is what this module looks like mounted in a larger housing with a clear and easy-to-understand front panel for easier operation. I replaced the jumpers with a switch for selecting the frequency range as well as a switch for selecting between a sine and triangle signal on the corresponding output. Of course, there are also potentiometers for amplification, coarse and fine tuning of the generated frequency.

This project is sponsored by PCBWay . PCBWay officially launches the first-ever 3D Printing Design Contest. All 3D printing enthusiasts can participate in both categories: design a 3D model based on PCBWay’s official mascot "Eon," or create your very own original character. For the best projects are provided valuable prizes ranging from 200 to 500 dollars + certificates. PCBWay has all the services you need to create your project at the best price.

In short, the specifications of this device are: power supply from 9 to 12 Volts, sine and triangle waves with an amplitude of 0 to 3 V, and a rectangular signal with an amplitude of 8 Volts. Distortion and linearity of the signal are less than 1% up to 100 Kilohertz.

The device made in this way works great, but it has one big drawback, which is the inability to precisely adjust the frequency of the output signal. So I came up with the idea of using a device from one of my previous projects , which is actually a frequency meter, on which we will be able to read the exact set output frequency. Like the previous kit, this device costs about 5 dollars and consists only of an STM32 microcontroller and an 8-digit 7-segment display. Thus, the entire device will have professional features and will cost less than 10 dollars. You can watch the frequency meter project in one of my previous videos at the given link.

The frequency meter reads the rectangular shape of the signal most easily, so we will use this output from the generator. As I mentioned earlier, the generated rectangular signal has a constant amplitude of 8 Volts, so to adjust it to the level of the microcontroller, we simply use a small trimmer potentiometer in a voltage divider circuit.
Now let's see how the device works in real conditions. If we have connected everything exactly according to the instructions, the device works immediately and the selected frequency is displayed on the display.

Let me just remind you that the frequency reading is done every 500 milliseconds, so we have to wait a little while for an accurate reading. With the switch we select the range and with the coarse and fine potentiometers we precisely set the desired frequency. With the first potentiometer the amplitude of the sine and triangular signals is adjusted, and it must not exceed 3 volts to avoid signal distortion. The amplitude of the rectangular signal is constant and is 8V, but here too we can set a potentiometer and regulate the value.
Next, I will test the shape, amplitude, and frequency of the output signals using an oscilloscope to ensure the complete functionality of the device.

And finally a short conclusion: This affordable and easy-to-build function generator delivers professional performance with sine, triangle, and square waveforms, all while staying under a $10 budget—perfect for any electronics lab!
Build a $10 Function Generator with Frequency Meter for Your Lab
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(1)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
Arduino 3D Printed self Balancing Cube
Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Ultimate Off-Grid Communication Setup- Raspberry Pi + MeshStick & ThinkNode M9
I recently ordered two products from Elecrow - ThinkNode M9 Meshtastic Terminal and compact Meshsti...
-
DIY ESP32 Universal Timer with Touchscreen & Rotary Encoder
In several of my previous videos, I presented different projects based on the CrowPanel 2.1-inch HM...
-
Build a Real 5-Band Parametric EQ with ESP32 + WM8960 - Stereo DSP Audio Processor
Audio equalizer (EQ) is an electronic device that allows control over the strength of different fre...
-
Bass Reflex vs Sealed vs Horn – Same 2 inch Speaker Test
In one of the previous videos I presented the making of a miniature Horn type speaker box with a 2 ...
-
Building a Mini Fostex Horn Speaker with a 2-Inch Full-Range Driver
A back-loaded horn speaker is a loudspeaker design that channels the rear sound wave of a driver th...
-
ESP32 Moon Lamp That Shows the Real Moon Phase on Crowpanel Round Dispaly
Recently on the Hackaday portal I came across a very interesting project called Moon Display by aut...
-
40-Year-Old DIY Power Amplifiers – Do They Still Work - 500W MOSFET & Transistor Amps
This time I want to describe my two DIY super powerful audio amplifiers that I made about 40 years ...
-
Wi-Fi HaLow Explained! Long-Range Camera Test up to 300m (ESP32 + ThinkNode G4 from ELECROW)
I recently needed to install a security camera at a relatively large distance from my home, more pre...
-
Simple Object Recognition with the UNIHIKER K10 – No TensorFlow, No Internet, No Cloud AI
Object recognition has become one of the most popular applications of artificial intelligence and em...
-
DIY PCL82 Tube Amplifier, Single-Ended Amp with Amazing Sound
The idea for this project came from a local electronics magazine called EMITER, issue 12/13 from 20...
-
Simple MCP2036 SDR Radio - The Most Unusual Software Defined Radio
SDR (Software Defined Radio) is a radio communication system where many of the key electronic compo...
-
Elecrow All-in-One Arduino Starter Kit Review - 20 Projects & 16 Modules
This time I will describe a simple and practical way to enter the world of microcontrollers, specif...
-
ESP32-C3 Color Detector with TCS34725, Real-Time RGB Detection & Web Interface
Color detection is a fundamental task in many embedded systems – from industrial sorting machines t...
-
DIY ESP32 Telegram Flood Protection System - Smart Home Automation
Recently I had an unpleasant experience in my home, specifically my ground floor was flooded as a r...
-
Real-Time Air Traffic Radar using ESP32 + ADS-B Data
ADS-B, which stands for Automatic Dependent Surveillance-Broadcast, is the modern standard for trac...
-
DIY Green Laser Night Sky Object Finder - Find Stars & Galaxies Instantly with great accuracy
As an amateur astronomer, especially at the beginning, the most difficult part of observing the nig...
-
DIY Avionics Simulator with ESP32 - Artificial Horizon, Compass & Altimeter
The inspiration for this project comes from classical aircraft cockpit instruments used for navigat...
-
-
AudioLink – USB & Bluetooth LE Audio / Auracast Receiver with Balanced Line Outputs (nRF5340)
162 0 0 -
-
-
-
Émetteur Récepteur Optique Expérimental (communication UART ATtiny + fibre optique)
324 0 1 -
SmallOLED - Live PC Stats, Animated Clocks & Audio Visualizer
1326 0 3 -
"Talking Multimeter": Arduino-Based Speech Add-on for Multimeters with SCPI Protocol
756 0 1 -
Programmable Mist Maker - XIAO / QT PY Extension
3291 2 4







