Function Generator Project

by 4D Makers in Circuits > Electronics

3401 Views, 44 Favorites, 0 Comments

Function Generator Project

timer_0002_3.jpg
Function Generator

In this project, we will make a function generator using the gen4-uLCD-43DCT-CLB display module. The gen4 display will be used for generating various types of signal waveforms namely: square, triangular, sinusoidal, sawtooth, and noise waveform. The frequency of the periodic waveforms can also be adjusted.

Components

fritzing.png

  • gen4-uLCD-43DCT-CLB
  • gen4-PA and FFC Cable
  • uSD Card
  • uUSB Cable
  • Jumper Wires
  • 7 x 10 KΩ Resistor
  • 9 x 20 KΩ Resistor
  • 1 x 39 nF Non-polarized Capacitor
  • 1 x 1N4148 Signal Diode
  • Breadboard

Build the circuit as shown in the diagram

Program

how it works.png
gui.png
  1. Download the code here.Open the Visi project using Workshop 4.
  2. This project uses the Visi Environment.
  3. You can modify the properties of each widgets and buttons.
  4. You can also check and modify some part of the code according to your preferences.The code provides comment for your reference
  5. Click on the “Compile” button.
    • Note: This step could be skipped. However, compiling is essential for debugging purposes.
  6. Connect the display to the PC.
  7. Make sure that you are connected to the right port.
    • Red Button indicates that the device is not connected, Blue Button indicates that the device is connected to the right port.
  8. Go back to “Home” tab. This time, click on the “Comp’nLoad” button.
  9. Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card.
  10. After selecting the correct drive, click OK.Mount uSD Card When the uSD card is not yet inserted, this message will appear on your gen4 Display: "Drive not mounted"

Demonstration

Capture.PNG

You can use this function generator display to see different waves.