mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
17 lines
1.3 KiB
HTML
17 lines
1.3 KiB
HTML
|
|
<script type="text/html" data-help-name="arduino in">
|
|
<p>Arduino input node. Connects to a local Arduino and monitors the selected pin for changes. Uses <a href="http://firmata.org/" target="_new"><i>Firmata</i>.</a></p>
|
|
<p>The Arduino must be loaded with the Standard Firmata sketch available in the Arduino examples.</p>
|
|
<p>You can select either Digital or Analogue input. Outputs the value read as <code>msg.payload</code> and the pin number as <code>msg.topic</code>.</p>
|
|
<p>It only outputs on a change of value - fine for digital inputs, but you can get a lot of data from analogue pins which you must then handle.</p>
|
|
<p>For example you could use a <code>delay</code> node set to rate limit and drop intermediate values, or an <code>rbe</code> node to only report when it changes by a certain amount.</p>
|
|
</script>
|
|
|
|
<script type="text/html" data-help-name="arduino out">
|
|
<p>Arduino output node. Connects to local Arduino and writes to the selected digital
|
|
pin. Uses <a href="http://firmata.org/" target="_new"><i>Firmata</i>.</a></p>
|
|
<p>The Arduino must be loaded with the Standard Firmata sketch available in the Arduino examples.</p>
|
|
<p>You can select Digital, Analogue (PWM) or Servo type outputs. Expects an integer numeric
|
|
value in <code>msg.payload</code>. The pin number is set in the properties panel.</p>
|
|
</script>
|