Skip to content

ESP32-S2 A0 DAC truncates and reverses value below mid-point #7871

Open
@CedarGroveStudios

Description

@CedarGroveStudios

CircuitPython version

Adafruit CircuitPython 8.0.5 on 2023-03-31; Adafruit Feather ESP32-S2 TFT with ESP32S2

Code/REPL

import board
from analogio import AnalogOut

a0 = AnalogOut(board.A0)
a1 = AnalogOut(board.A1)

while True:
    for i in range(0, 65535, 64):
        a0.value = i
        a1.value = i

Behavior

IMG_1372

When instantiated, the A0 DAC (top yellow trace) defaults to ~2.96v. When a0.value is set to 0, the voltage drops to ~1.82v instead of 0v. As the value is increased, the voltage output decreases to ~1.6v until it approaches mid-point when the output begins to track the input value as expected.

The A1 DAC output (bottom blue trace) is simultaneously tracking the same value as A0. The A1 DAC output voltage is working as expected.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions