Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
esp32:esp32_main [2020/11/17 15:40]
admin [DAC]
esp32:esp32_main [2020/11/17 15:49]
admin [DAC and ADC]
Line 114: Line 114:
 ---- ----
 ===== DAC and ADC ===== ===== DAC and ADC =====
 +
 +**ADC**\\
 +
 +
 +[[https://www.malabdali.com/esp32-adc-and-dac/]]
  
 **DAC**\\ **DAC**\\
 The ESP32 has two DAC pins, GPIO25 and GPIO26. The resolution is 8 bits.\\ The ESP32 has two DAC pins, GPIO25 and GPIO26. The resolution is 8 bits.\\
    dacWrite(25, Value); // 255=3.3V 128=1.65V 0=0.0V    dacWrite(25, Value); // 255=3.3V 128=1.65V 0=0.0V
 +For generating a sine wave one finds a good manual here: [[https://www.xtronical.com/basics/audio/dacs-on-esp32/|DAC’s on ESP32]]\\
  
 ---- ----