Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
esp32:esp32_main [2020/10/13 20:04] admin [Espressif ESP32 Development Board] |
esp32:esp32_main [2020/11/17 16:01] (current) admin [DAC and ADC] |
||
|---|---|---|---|
| Line 111: | Line 111: | ||
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ---- | ||
| + | ===== DAC and ADC ===== | ||
| + | |||
| + | **ADC**\\ | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ADC_0db: sets no attenuation (1V input = ADC reading of 1088). | ||
| + | ADC_2_5db: sets an attenuation of 1.34 (1V input = ADC reading of 2086). | ||
| + | ADC_6db: sets an attenuation of 1.5 (1V input = ADC reading of 2975). | ||
| + | ADC_11db: sets an attenuation of 3.6 (1V input = ADC reading of 3959). | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | taken from: [[https:// | ||
| + | |||
| + | ---- | ||
| + | **DAC**\\ | ||
| + | The ESP32 has two DAC pins, GPIO25 and GPIO26. The resolution is 8 bits.\\ | ||
| + | | ||
| + | For generating a sine wave one finds a good manual here: [[https:// | ||
| + | |||
| ---- | ---- | ||