The SensorNode has 2 digital inputs. These are general purpose on off inputs. They have configurable pull up/down resistors, to allow them to work with open drain style interfaces.
The inputs will read on above 3.3V and off below 0.8V. The bias resistors will have a small affect on this. The maximum input voltage is 30V.
The parameters that apply to the digital inputs are shown below:
- Maximum Alarm Rate: alarms logged faster than this will not be sent. eg. With a default of 600s, a maximum of 1 alarm can be sent every 10 min. If input changes happen faster than this, the state will change on the device, but an alarm will not be sent.
- Input X Pull Direction: this is setting controlling the weak internal pull direction:
- Pull up: with nothing connected, the input will read high. This is useful with open drain interfaces, where the external interfaces either pulls to ground, or goes high impedance. Note: there is a small 70uA per input penalty for using this pull up setting. Depending on your setup, this could affect battery life.
- None: the SensorNode will not bias the input.
- Pull down: with nothing connected, the input will read low. This is useful with an external interface that goes "off to "on" (low to high voltage).
- Input X Alarm on High: send an update if the input changes to a high state. The update is sent if there is LoRaWAN duty cycle available (region dependent) and the Maximum Alarm Rate has not been exceeded.
- Input X Alarm on Low: send an update if the input changes to a low state. The update is sent if there is LoRaWAN duty cycle available (region dependent) and the Maximum Alarm Rate has not been exceeded.
- Input X Count Edge: when counting changes, should the counter be incremented on the change to low or the change to high. Low means count on change from High to Low. High means count on change from Low to High.
- Input X Debounce Period: the state of the input is updated when it has stopped bouncing (changing state) for this amount of time. ie. 1000ms means it must stay in the new position for 1 sec before updating the state on the device.
- Can the SensorNode send updates on input changes?: Yes. Use the Alarm on High/Low check boxes. Choose a Maximum alarm rate that suits your expected change rate, and battery life (lots of changes could me lots of transmits, and reduced battery life).
- What if the device cannot send an alarm due to the maximum alarm rate or duty cycle?: Then this update will not be sent. The state will reflect on the device, so it will be sent on the next schedule (if configured) or on the next alarm change
- How should I use schedules with the inputs?: You have 2 options:
- Configure a schedule to send the current digital input states (Item = "Digital Inputs").
- Configure a schedule to send the current digital input change counts (Item = "Digital Input X Count")