mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fix MCP3xxx Readme
This commit is contained in:
@@ -48,16 +48,17 @@
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="pimcp3008">
|
||||
<p>Reads from an MCP3xxx Series Analogue to Digital Converter (ADC) chip on the Pi SPI CE0 or CE1 connection,
|
||||
such as the rasp.io/analogzero.</p>
|
||||
<p>You can either set a channel in the edit dialogue, or you can set the <code>msg.payload</code>
|
||||
to select the channel dynamically. If so then the expected payload must be a value from 0 to 7.</p>
|
||||
<p>Outputs a numeric <code>msg.payload</code> with a range of 0 to 1023, representing 0V to 3.3V.</p>
|
||||
<p><i>Hint</i>: use a <code>range</code> node to re-scale the values to ones you want.</p>
|
||||
<p>Also sets <code>msg.topic</code> to <i>adc/{the pin number}</i></p>
|
||||
<p><b>Warning</b>: Input voltages must not exceed 3.3V</p>
|
||||
<p>The SPI bus must be enabled for this node to work. This can be achieved by using the
|
||||
advanced menu (option 9 A5) of the <b>raspi-config</b> utility.</p>
|
||||
<p>Reads from an MCP3xxx Series Analogue to Digital Converter (ADC) chip on the Pi SPI CE0 or CE1 connection,
|
||||
such as the rasp.io/analogzero.</p>
|
||||
<p>You can either set a channel in the edit dialogue, or you can set the <code>msg.payload</code>
|
||||
to select the channel dynamically. If so then the expected payload must be a value from 0 to 7.</p>
|
||||
<p>Outputs a numeric <code>msg.payload</code> with a range of 0 to 1023 for MCP30xx or 0 to 4095 for
|
||||
MCP32xx and MPC33xx, representing 0V to 3.3V.</p>
|
||||
<p><i>Hint</i>: use a <code>range</code> node to re-scale the values to ones you want.</p>
|
||||
<p>Also sets <code>msg.topic</code> to <i>adc/{the pin number}</i></p>
|
||||
<p><b>Warning</b>: Input voltages must not exceed 3.3V</p>
|
||||
<p>The SPI bus must be enabled for this node to work. This can be achieved by using the
|
||||
advanced menu (option 9 A5) of the <b>raspi-config</b> utility.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
Reference in New Issue
Block a user