10/12/2023 0 Comments Function generator use![]() In addition to producing sine waves, function generators may typically produce other repetitive waveforms including sawtooth and triangular waveforms, square waves, and pulses. Straightforward signal generators such as RF signal generators or simple audio oscillators focus on producing a good sine waves, but in many cases other waveforms are needed. Function generators are items of test equipment that are able to generate a variety of simple repetitive waveforms. print ( F ( " \n :osn \t output signal type n " )) Serial. print ( F ( " \n :opn \t output phase n " )) Serial. print ( F ( " \n :ofn \t output frequency n " )) Serial. print ( F ( " \n :p2n \t set phase 2 to n in tenths of a degree (1201 is 120.1 deg)" )) Serial. print ( F ( " \n :p1n \t set phase 1 to n in tenths of a degree (1201 is 120.1 deg)" )) Serial. print ( F ( " \n :f2n \t set frequency 2 to n Hz" )) Serial. print ( F ( " \n :f1n \t set frequency 1 to n Hz" )) Serial. * Program to control AD9833 and MCP4131 Based on example provided with AD9833 library AD9833 connected to pins 5,6,7 MCP4131 connected to pins 10,11,13 Menu for controlling AD9833 and gain available on Serial Monitor */ #include #include #include #define DATA 6 /// " )) Serial. Using a breadboard and connectors, build the circuit as shown in the picture The circuit can be powered from the Arduino 5V supply.This is also configured in the Arduino sketch SPI communication with the AD9833 uses Arduino pin 4 (DATA), pin 5 (CLK) and pin 6 (FSYNC).This is configured in the Arduino sketch that contols the circuit SPI communication with the MCP4131 uses Arduino pin 13(SCK), pin 11 (SDI), and pin 10 (CS).The resistance can be digitally varied by the Arduino to give resistances between 1 kOhm and 6 kOhm. Rf is the MCP4131 configured as a two terminal variable resistor.Rin is a fixed 1 kOhm resistor connected between inverting input and ground.It also acts as a buffer between the AD9833 and whatever load is attached, providing a low impedance output. The op amp is set up as a non inverting amplifier input signal from the AD9833 is connected to the non inverting input (pin 3).This can be substituted with other similar IC’s A MCP601 single rail power supply operational amplifier is used in the circuit. ![]() A standard non-inverting op amp configuration as shown This project uses an non-inverting op amp circuit to achieve this. This limitation could be restrictive for applications or experiments, so it would be useful to amplify this voltage to larger values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |