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
# CircuitPython 7.0importfrequencyioimportboardimporttimefrequency=frequencyio.FrequencyIn(board.D11)
# Loop while printing the detected frequencywhileTrue:
print(frequency.value)
# Optional clear() will reset the value# to zero. Without this, if the incoming# signal stops, the last reading will remain# as the value.frequency.clear()
time.sleep(0.1)
Behavior
Signal is generated with an external signal generator (-40.0mV-3.26v Pk-Pk, 1kHz Square Wave).
Serial output with CircuitPython 7.0.0:
0
0
0
0
0
...
Serial output with CircuitPython 6.3.0:
1000
1164
1000
1000
1058
...
Behavior is observed at higher frequencies as well.
Description
No response
Additional information
Did some debugging with @dhalbert on the Adafruit Discord server.
Swapped coax cable.
Validated normal GPIO operation with pin.
The text was updated successfully, but these errors were encountered:
FevenKitsune
changed the title
FrequencyIO on CircuitPython 7.0 only returns 0. Same setup works with 6.3.0.
FrequencyIO on CircuitPython 7.0.0 only returns 0. Same setup works with 6.3.0.
Dec 1, 2021
CircuitPython version
Code/REPL
Behavior
Signal is generated with an external signal generator (-40.0mV-3.26v Pk-Pk, 1kHz Square Wave).
Serial output with CircuitPython 7.0.0:
Serial output with CircuitPython 6.3.0:
Behavior is observed at higher frequencies as well.
Description
No response
Additional information
Did some debugging with @dhalbert on the Adafruit Discord server.
The text was updated successfully, but these errors were encountered: