Arduino control-based function signal generator

By using a function signal generator controlled by Arduino, combined with a waveform generation module and an LCD control screen, the problems of unstable waveforms and difficult synchronization caused by the complexity of traditional waveform generator circuits are solved, achieving stable and synchronous output of waveforms and reducing interference. .

CN221804549UInactive Publication Date: 2024-10-01APPLIED TECH COLLEGE OF SOOCHOW UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420495233.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional waveform generator circuit structure is complex and difficult to flexibly expand, resulting in unstable output waveforms and difficulty in achieving synchronization.

Method used

Design a function signal generator based on Arduino control. By connecting the Arduino main control board and the waveform generation module, and using the LCD control screen for serial communication, real-time control and synchronous output of the waveform are achieved.

Benefits of technology

It achieves the stability and synchronization of waveforms, generates different waveforms through program control, reduces interference, and can achieve nearly synchronous output of two signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221804549U_ABST
    Figure CN221804549U_ABST
Patent Text Reader

Abstract

The utility model discloses a function signal generator based on Arduino control, and relates to the technical field of electronic test equipment. The system comprises an Arduino main control board which is respectively connected with a first waveform generation module and a second waveform generation module; the liquid crystal control screen is connected with the Arduino main control board through a serial port; and the output ends of the first waveform generation module and the second waveform generation module are connected with external execution equipment. The beneficial effects of the utility model are that the single-chip microcomputer is combined with the waveform generation module AD9833, the generated waveform can be controlled in real time through a program, and the generation process of different waveforms can be intuitively understood through a visual program. In addition, according to the utility model, synchronization of two paths of signals can be almost realized, and interference is small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of electronic testing equipment, in particular to a function signal generator based on Arduino control. Background Art

[0002] Traditional waveform generators mostly use analog electronic technology, and are composed of discrete components or analog integrated circuits. Their circuit structure is complex and cannot be flexibly expanded according to actual needs. Signal generators are a basic electronic test equipment, widely used in measurement and control, communication systems, electronic measurement, university teaching and other fields; signal generators are also called signal sources or oscillators, and can generate a variety of waveforms, such as triangle waves, sawtooth waves, rectangular waves (including square waves), and sine waves, so they are also called function signal generators. However, the finished function signal generator is expensive, and the simple manufacturing will produce interference, resulting in unstable waveforms and difficulty in synchronization. Utility Model Content

[0003] The purpose of this section is to summarize some aspects of the embodiments of the utility model and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and utility model name of this application to avoid blurring the purpose of this section, specification abstract and utility model name, and such simplifications or omissions cannot be used to limit the scope of the utility model.

[0004] Therefore, the problem to be solved by the present invention is how to ensure the stability and synchronization of the output waveform.

[0005] To solve the above technical problems, the utility model provides the following technical solutions: a function signal generator based on Arduino control, comprising an Arduino main control board, which is respectively connected to a first waveform generating module and a second waveform generating module; a liquid crystal control screen, which is connected to the Arduino main control board through serial port communication; the output ends of the first waveform generating module and the second waveform generating module are connected to an external execution device.

[0006] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the 5V pin of the Arduino main control board is respectively connected to the VCC pin of the first waveform generating module and the VCC pin of the second waveform generating module.

[0007] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the GND pin of the Arduino main control board is connected to the GND pin of the first waveform generating module and the GND pin of the second waveform generating module.

[0008] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the PL7 pin of the Arduino main control board is connected to the SCLK pin of the first waveform generating module and the SCLK pin of the second waveform generating module.

[0009] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the PL6 pin of the Arduino main control board is connected to the SDATA pin of the first waveform generating module and the SDATA pin of the second waveform generating module.

[0010] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the PG5 pin of the Arduino main control board is connected to the FSYNC pin of the first waveform generating module, and the PE3 pin of the Arduino main control board is connected to the FSYNC pin of the second waveform generating module.

[0011] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the RX pin of the LCD control screen is connected to the TX pin of the Arduino main control board, and the TX pin of the LCD control screen is connected to the RX pin of the Arduino main control board.

[0012] As a preferred solution of the function signal generator based on Arduino control described in the utility model, wherein: the first waveform generating module outputs waveform signals to the external execution device through the OUT1 pin, and the second waveform generating module outputs waveform signals to the external execution device through the OUT2 pin.

[0013] The beneficial effects of the function signal generator based on Arduino control of the utility model: the utility model combines the single chip microcomputer with the waveform generation module AD9833, and can control the generated waveform in real time through the program, and intuitively understand the generation process of different waveforms through the visualized program. In addition, the utility model can almost achieve the synchronization of two-way signals with minimal interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present utility model, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0015] Figure 1 It is a schematic diagram of an Arduino main control board of the function signal generator based on Arduino control described in the utility model;

[0016] Figure 2 It is a schematic diagram of a first waveform generating module of the function signal generator based on Arduino control described in the utility model;

[0017] Figure 3 It is a schematic diagram of the second waveform generating module of the function signal generator based on Arduino control described in the utility model;

[0018] Figure 4 It is a schematic diagram of a liquid crystal control screen of a function signal generator based on Arduino control described in the utility model;

[0019] Figure 5 It is a schematic diagram of an external execution device of a function signal generator based on Arduino control described in the utility model;

[0020] Figure 6 are Lissajous figures under different conditions of Example 3;

[0021] In the figure: 100, Arduino main control board; 200, first waveform generating module; 300, second waveform generating module; 400, LCD control screen; 500, external execution device. DETAILED DESCRIPTION

[0022] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0024] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0025] Example 1

[0026] Reference Figure 1-5, is the first embodiment of the utility model, which provides a function signal generator based on Arduino control, including an Arduino main control board 100, which is respectively connected to a first waveform generating module 200 and a second waveform generating module 300; a liquid crystal control screen 400, which is connected to the Arduino main control board 100 through a serial port; the output ends of the first waveform generating module 200 and the second waveform generating module 300 are connected to an external execution device 500.

[0027] The 5V pin of the Arduino main control board 100 is connected to the VCC pin of the first waveform generating module 200 and the VCC pin of the second waveform generating module 300 respectively.

[0028] The GND pin of the Arduino main control board 100 is connected to the GND pin of the first waveform generating module 200 and the GND pin of the second waveform generating module 300 .

[0029] The RX pin of the LCD control screen 400 is connected to the TX pin of the Arduino main control board 100 , and the TX pin of the LCD control screen 400 is connected to the RX pin of the Arduino main control board 100 .

[0030] The first waveform generating module 200 outputs waveform signals to the external execution device 500 through the OUT1 pin, and the second waveform generating module 300 outputs waveform signals to the external execution device 500 through the OUT2 pin.

[0031] The model of the Arduino main control board 100 is MEGA2560 series.

[0032] The first waveform generating module 200 and the second waveform generating module 300 are modeled as AD9833.

[0033] The external execution equipment may be a coherent demodulation device, a variable frequency power analyzer, an oscilloscope and the like.

[0034] After the power is turned on, the Arduino main control board 100 is powered, and the amplitude, frequency and phase of the output waveform (sine wave, square wave, triangle wave, etc.) are adjusted in real time and synchronously through the editable program and the buttons of the LCD control screen 400, and then the signal is output to the first waveform generating module 200 and the second waveform generating module 300. The first waveform generating module 200 and the second waveform generating module 300 respectively realize the conversion through their respective D / A modules, and can output two sine waves that meet the design requirements and have specific amplitude, specific frequency and specific phase to the external execution device 500.

[0035] Example 2

[0036] Reference Figure 1-5, which is the second embodiment of the utility model, and which is different from the first embodiment in that the serial port communication between the LCD control screen 400 and the Arduino main control board 100 is used to realize data transmission between the two devices.

[0037] Because serial communication is performed between the LCD control screen and the Arduino, pin swapping is required in this case.

[0038] In serial communication, data is transmitted through a pair of pins, one of which is used to send data (TX) and the other is used to receive data (RX). Therefore, if the RX pin of the LCD control screen 400 is connected to the TX pin of the Arduino main control board 100, and the TX pin of the LCD control screen 400 is connected to the RX pin of the Arduino main control board 100, this is actually the correct connection method because it realizes the correct correspondence between data sending and receiving.

[0039] The utility model realizes the control of the Arduino main control board 100 by the buttons of the liquid crystal control screen 400 in the above manner.

[0040] The SPI interface of the first waveform generating module 200 and the second waveform generating module 300 includes SCLK, SDATA and FSYNC pins. SCLK is a serial clock signal, SDATA is a serial data signal, and FSYNC is a chip select signal.

[0041] The PL7 pin of the Arduino main control board 100 is connected to the SCLK pin of the first waveform generating module 200 and the SCLK pin of the second waveform generating module 300 .

[0042] The PL6 pin of the Arduino main control board 100 is connected to the SDATA pin of the first waveform generating module 200 and the SDATA pin of the second waveform generating module 300 .

[0043] The PG5 pin of the Arduino main control board 100 is connected to the FSYNC pin of the first waveform generating module 200 for chip selection of the first waveform generating module 200 , and the PE3 pin of the Arduino main control board 100 is connected to the FSYNC pin of the second waveform generating module 300 for chip selection of the second waveform generating module 300 .

[0044] Example 3

[0045] Reference Figure 6, which is the third embodiment of the utility model. It is different from the first two embodiments in that this embodiment provides a sine wave output situation. After the power is turned on, the Arduino main control board 100 is powered on. The program uses statements such as setPhase and setFrequency to set the phase and frequency of the waveform. The desired waveform is selected in the LCD control screen 400, and the instruction is sent to the Arduino main control board 100. The Arduino main control board 100 then sends the message to the first waveform generating module 200 and the second waveform generating module 300. The first waveform generating module 200 and the second waveform generating module 300 can output the desired sine wave to the external execution device 500 through D / A conversion. The utility model can generate two sine waves with specific amplitude, specific frequency and specific phase. When output to an oscilloscope, the synthesized graph is as follows: Figure 6 The Lissajous figures for different situations are shown.

[0046] This embodiment illustrates the stability and synchronization of the two-way signals generated by the function signal generator.

[0047] If used for electronic measurement, one of the two-way signals can be synthesized with the signal to be measured, and the frequency and phase can be measured by observing the synthesized Lissajous figure.

[0048] It should be noted that the above embodiments are only used to illustrate the technical solution of the utility model rather than to limit it. Although the utility model has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the technical solution of the utility model can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the utility model, which should be included in the scope of the claims of the utility model.

Claims

1. A function signal generator based on Arduino control, Features: include, An Arduino main control board (100) connected to the first waveform generating module (200) and the second waveform generating module (300) respectively; A liquid crystal control screen (400) connected to the Arduino main control board (100) via serial port communication; The output ends of the first waveform generating module (200) and the second waveform generating module (300) are connected to an external execution device (500).

2. The function signal generator based on Arduino control as claimed in claim 1, Features: The 5V pin of the Arduino main control board (100) is respectively connected to the VCC pin of the first waveform generating module (200) and the VCC pin of the second waveform generating module (300).

3. The function signal generator based on Arduino control as claimed in claim 2, Features: The GND pin of the Arduino main control board (100) is connected to the GND pin of the first waveform generating module (200) and the GND pin of the second waveform generating module (300).

4. The function signal generator based on Arduino control as claimed in claim 3, Features: The PL7 pin of the Arduino main control board (100) is connected to the SCLK pin of the first waveform generating module (200) and the SCLK pin of the second waveform generating module (300).

5. The function signal generator based on Arduino control as claimed in claim 4, Features: The PL6 pin of the Arduino main control board (100) is connected to the SDATA pin of the first waveform generating module (200) and the SDATA pin of the second waveform generating module (300).

6. The function signal generator based on Arduino control as claimed in claim 5, Features: The PG5 pin of the Arduino main control board (100) is connected to the FSYNC pin of the first waveform generating module (200), and the PE3 pin of the Arduino main control board (100) is connected to the FSYNC pin of the second waveform generating module (300).

7. The function signal generator based on Arduino control as claimed in claim 6, Features: The RX pin of the liquid crystal control screen (400) is connected to the TX pin of the Arduino main control board (100), and the TX pin of the liquid crystal control screen (400) is connected to the RX pin of the Arduino main control board (100).

8. A function signal generator based on Arduino control as described in any one of claims 1-7, Features: The first waveform generating module (200) outputs waveform signals to the external execution device (500) via the OUT1 pin, and the second waveform generating module (300) outputs waveform signals to the external execution device (500) via the OUT2 pin.