node-red-contrib-smartnode-dfrobot
Version:
this project dependences the node-red-contrib-smartnode package for basic function. based on the smartnode package, this package provide some sersor nodes for DFRobot sensors.
47 lines (32 loc) • 1.3 kB
HTML
<!--
Copyright 2015 Maker Collider
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/x-red" data-help-name="DF-LineTrack">
<h3 id="lineTrackingNode">Line Tracking Node</h3>
<p>this Node can dirve the general infrared line tracking sensor</p>
<h4 id="configuration">configuration</h4>
<ol>
<li>Name:name</li>
<li>Digital Pin:digital pin on edison</li>
<li>Interval:sensor read interval, unit:ms</li>
</ol>
<h4 id="input">input</h4>
<ol>
<li>msg.payload:a switch</li>
</ol>
<h4 id="output">output</h4>
<p>find the line (black) return 0, not find the line (white) return 1</p>
<h4 id="usage">usage</h4>
<ol>
<li>config every parameter,<code>msg.payload</code> on,start to tracking black line,<code>msg.payload</code> off, stop tracking line</li>
</ol>
</script>