ElexParts / FunctionGenerator

An R2R DAC controlled by Arduino to generate waveforms.
http://www.elexproject.com
1 stars 0 forks source link

Low output waveform resolution #1

Closed dasigr closed 6 years ago

dasigr commented 6 years ago

The output waveform appears to have a "low resolution". Some steps looks missing from an 8-bit R2R DAC.

20180307_203409 20180307_203423 20180307_203434 20180307_203443 20180307_203505

dasigr commented 6 years ago

I have tested the scope using a simple bridge rectifier circuit and confirmed that the scope is working fine and that the waveform is as expected.

Will now check whether the code for driving the R2R DAC is correct.

dasigr commented 6 years ago

So today, I have rechecked the generated waveform and was able to get a better display by lowering the frequency to 1KHz. Looks like the issue was caused the limited capability of the microcontroller to generate data at higher frequencies. The schematic and code works as designed but, I think I'll gonna need a better waveform generator since I was planning on using it to test some audio amplifier projects in the future.

Here's a picture on 1KHz waveform. 20180310_130716 20180310_130732 20180310_130745 20180310_130758