Analog reading intended to sample linear wire with nominal 4.7k resistance on the line.
wit-linearwiredetect
@/wit-linearwiredetect
Analog reading intended to sample linear wire with nominal 4.7k resistance on the line.
MODboolean
Set to TRUE to implement custom Port selection on node.
PORTport
Input port when custom is enabled.
POLLpulse
Rate at which to poll analog input for updates.
ASCLnumber
The output from the analog-read block is a percentage of the full scale voltage (5V max), so multiply the output by 5 to get Vout.
ALRMnumber
The output from the analog-read block is a percentage of the full scale voltage (5V max), so multiply the output by 5 to get Vout.If the voltage is less than the specified value, output TRUE. Since this linear wire is a short when activated, we need to use a less than comparison.
4.8k nominal resistance results in 1.62V, so use 1V for some margin.
LWRDboolean
Output TRUE if LWD is reading a 'short' and FALSE if it is reading 'nominal' or 'open'.
To use the node in your project you should have the cristian-garcia/wit-fire-detection library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.