You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AdafruitCircuitPython8.0.5on2023-03-31; AdafruitFeatherM4Expresswithsamd51j19>>>importanalogio>>>importboard>>>a=analogio.AnalogOut(board.A0) # A0 slowly climbs to 3.3v and holds>>>a.value=0# A0 output returns to 0v and holds>>>b=analogio.AnalogOut(board.A1) # A0 slowly climbs to 3.3v and holds; A1 holds at near 0v>>>b.value=0# A1 holds at 0v>>>a.value=0# A0 holds at 0v>>>b.value=21000# A1 holds at ~1v; A0 holds at 0v>>>a.value=21000# A0 holds at ~1v; A1 holds at ~1v>>>b.deinit() # A0 slowly climbs to 3.3v and holds; A1 floats>>>a.value=21000# A0 holds at ~1v
Behavior
When initializing the A0 DAC (before applying a value), the A0 voltage slowly increases to 3.3v over the course of about 5 seconds. Applying a value to the A0 DAC sets the voltage output correctly and the voltage holds.
If the A1 DAC is then initialized, the A0 voltage slowly begins to climb again, holding at 3.3v. Setting the A0 DAC value again sets and holds the output voltage correctly.
Deinitializing the A1 DAC causes the A0 DAC to drift upwards again until its value is set.
This behavior is identical to that described in #1991.
The temporary workaround is to set the A0 DAC value after instantiating both DACs:
# Define the A0 DACfirst_dac=analogio.AnalogOut(board.A0)
# Define the A1 DAC and set to 0second_dac=analogio.AnalogOut(board.A1)
second_dac.value=0# Set the A0 DAC to zero"""Because of a CircuitPython bug, the A0 DAC value has to be set afterthe A1 DAC is initialized."""first_dac.value=0
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
I'm seeing the same behavior in a custom ATSAMD51G19A board. This is unfortunate, as it's causing DC where I'd really there rather not be, when using it for audio generation.
Uh oh!
There was an error while loading. Please reload this page.
CircuitPython version
Code/REPL
Behavior
When initializing the A0 DAC (before applying a value), the A0 voltage slowly increases to 3.3v over the course of about 5 seconds. Applying a value to the A0 DAC sets the voltage output correctly and the voltage holds.
If the A1 DAC is then initialized, the A0 voltage slowly begins to climb again, holding at 3.3v. Setting the A0 DAC value again sets and holds the output voltage correctly.
Deinitializing the A1 DAC causes the A0 DAC to drift upwards again until its value is set.
This behavior is identical to that described in #1991.
The temporary workaround is to set the A0 DAC value after instantiating both DACs:
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: