How can I get faster updates from a Tilt sensor into Node-Red? I’m using an ethernet modem to get the data.
Currently, I have the Node ID = 0 and Delay = 1.
The updates are a lot slower than in the YouTube demo videos.
Cheers,
Todd
How can I get faster updates from a Tilt sensor into Node-Red? I’m using an ethernet modem to get the data.
Currently, I have the Node ID = 0 and Delay = 1.
The updates are a lot slower than in the YouTube demo videos.
Cheers,
Todd
If the delay is set to 1, data will be sent as quickly as possible. How often are you receiving the data?
I’m getting data like every 2 or 3 seconds.
T
That is the expected behavior. After it takes samples, it must go through the algorithm to convert the data into an angle.
Is it possible to request or trigger an update?
T
Hi @toddfreese It is not possible to request an immediate transmission from the sensor. However, it is possible to set a threshold that will automatically trigger a sensor transmission. You can utilize the ‘Roll Angle’ and ‘Pitch Angle’ thresholds for this purpose:
Roll Angle threshold: This settings forces the sensor to transmit a packet when it detects a change in Roll angle at the chosen value or a multiple of the chosen value.
A value of 20 will force the sensor to transmit a packet at a roll angle of 20 degrees, -20 degrees, 40 degrees, -40 degrees, etc.
Pitch Angle Threshold: This settings forces the sensor to transmit a packet when it detects a change in Pitch angle at the chosen value or a multiple of the chosen value.
A value of 20 will force the sensor to transmit a packet at a pitch angle of 20 degrees, -20 degrees, 40 degrees, -40 degrees, etc.
This is a guide for sensor configuration using Node-RED, please refer to ‘Manual Configuration’:
Thanks,
Eduardo M.