Hello guys,
I'm testing my XBee3s with DigiMesh (XB3-24Z8UM-J) and micropython and it is pretty easy to use and communicate.
Now I'm trying to use some pretty basic and well known sensor, the DHT22, and had some problems.
How fast can it read an Input? I've made a test where it reads the input, save the time difference between the current and the last reading (ticks_diff(ticks_us(), previous)) to check and the smaller time was 74 µs, and the pulses from this sensor can be as small as 26 µs.
Does XBee MicroPython Has any external interrupt, like this lib from MicroPythom? With the external, would be possible to read the sensor without having to code a while loop reading the pin every time to check if the state has changed (HIGH to LOW, or LOW to HIGH).
Hello guys, I'm testing my XBee3s with DigiMesh (XB3-24Z8UM-J) and micropython and it is pretty easy to use and communicate. Now I'm trying to use some pretty basic and well known sensor, the DHT22, and had some problems.
ticks_diff(ticks_us(), previous)
) to check and the smaller time was 74 µs, and the pulses from this sensor can be as small as 26 µs.References (µPython): Reading DHT22 with Interruptions Official Repo that Reads it fast looking for state change