Skip to content

Carlo47/CYD_CosineWaveGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CYD - A graphical user interface for the Cosine Wave Generator of the ESP32

I had the idea of using the Cheap Yellow Display CYD for a graphical user interface for the Cosine Wave Generator that I programmed some time ago.

img1

Because DAC_CHANNEL_1 is used for the photoresistor in the CYD, the settings only affect the second channel. When starting, the generator displays the reference frequency f0. If this deviates from the actual measured frequency, this can be corrected manually. I measured 132.5 Hz on my CYD and therefore set f0 accordingly.The theoretical frequency range is 15 .. 8'000'000 Hz, but only the audio range 15 .. 15'000 Hz is reasonably usable.

In the CYD, the output of DAC_CHANNEL_2 is connected to the input of the built-in amplifier. Because the wiring of this OpAmp is not optimal, I have modified it as described here with the following resistor values: R7 = R8 = 18K, R9 = 33K

Here are the settings and output signals for minimum and maximum audio frequencies measured at a speaker pin and to ground.

Settings 16 Hz Oscilloscope
img2 img3
Settings 15 kHz Oscilloscope
img4 img5