Laptop Signal Generator
Introduction
Testing and debugging circuits is a crucial part of working on my hardware projects, especially my ambitious Modular Synthesizer project. This process involves using a variable power supply, oscilloscope, and signal generator. A signal generator is a machine which can output voltage waveforms and allows control over waveform parameters, such as frequency and amplitude.
Signal generators can be expensive, along with a variable power supply and oscilloscope. Fortunately, Georgia Tech’s Hive Makerspace has many high quality electronic bench-tops, where I can test and debug my circuits for free. I spend most of my time working on hardware projects here, but sometimes I would like to work at home while the Hive is closed. To save myself from buying a signal generator, I wrote a MATLAB program to use my laptop as one.
I also designed an enclosure for the PCB and 3D printed it. Here is the final product.
Here are the downloads for both the MATLAB script and the MATLAB GUI. To run, have both fgen.m and fgenui.m in the same directory, and then type “fgenui” in the MATLAB command window.