8000 Feather Express M0 - pulseio.PulseIN - freezes at high frequency · Issue #516 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Feather Express M0 - pulseio.PulseIN - freezes at high frequency #516
Closed
@Apotessar

Description

@Apotessar

Test Case:
Messure Light trough a light-to-frequency-coverter.

Test Setup:
Feather Express M0 - Circuit Python 2.2.0
TSL235R-LF
https://www.sparkfun.com/datasheets/Sensors/Imaging/TSL235R-LF.pdf
connected 3V to VDD, GND to GND and Output to D12

> #Feather Express M0 connected 3V to VDD, GND to GND and Output to D12
 import board
 from board import*
 import digitalio
 import busio
 import adafruit_ssd1306
 import time
 import analogio
 import pulseio

 i2c = busio.I2C(SCL, SDA)
 display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c)
 pulses = pulseio.PulseIn(board.D12, maxlen=20)

 while True:
     time.sleep(1)
     pulse = 500000
5E4E
/float(pulses[0])
     display.fill(0)
     display.text(str(pulse),0,0)
     print(pulse)
     display.show()

Error:
Board do not response, crash or disconnect while the input frequency is above 25 kHz.
The specific freqency could not be determinated.
While covering the Converter it is sometimes possible to recover the board. Outwise a reset is nessessary.

Source:
https://forums.adafruit.com/viewtopic.php?f=60&t=129061

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0