Closed
Description
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