npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@redplc/node-red-rpi-mcp3424

v2.0.5

Published

Node-RED node for mcp3424 18bit adc using with redPlc nodes.

Downloads

59

Readme

@redplc/node-red-rpi-mcp3424

platform platform platform

Node-RED node for mcp3424 18bit adc using with redPlc nodes

mcp3424 analog to digital converter

  • 12..18bit Conversion Resolution.
  • Four Analog Inputs.
  • Each input can be disabled.
  • Internal Voltage Reference.
  • Internal Oscillator.
  • Programmable Data Rate 3.75 SPS (18bits) to 240 SPS (12bits).
  • The PGA offers input ranges from ±256 mV to ±2048 V.
  • I2C Interface with Eight Pin-Selectable Addresses.
  • Works also for mcp3421..mcp3428

Usage

  • Install redPlc nodes.
  • Use redPlc s-inject node for trigger update.
  • Connect to first output on s-inject node.
  • Daisy chain nodes in series.
  • For logical operations use redPlc nodes.
  • Data is exchanged with global context variable arrays.
  • Array index is equal input number for easy handling.
  • This node works on Raspberry Pi with 32bit or 64bit OS.
  • Input voltage more than VCC can damage adc input.
  • The output value is mV or adc raw data.
  • Works also on Raspberry Pi 5
  • Enable I2C with raspi-config.
  • If other type then mcp3424 used, set correct parameter (see table below).
  • If you use i2c-0 port add dtparam=i2c_vc=on to /boot/config.txt, then Pin27=SDA, Pin28=SCK.
  • For other ports add this to /boot/config.txt.

Array Index

|Input|Array-Index |:----|:---:| |CH1|0| |CH2|1| |CH3|2| |CH4|3|

Address Pin Connection

|I2C Address|ADR0 Pin|ADR1 Pin| |:----|:---|:---| |68H|Open|Open| |68H|GND|GND| |69H|GND|Open| |6AH|GND|VCC| |6BH|VCC|GND| |6CH|VCC|Open| |6DH|VCC|VCC| |6EH|Open|GND| |6FH|Open|VCC|

Supported Devices

|Type|# Channel|Max. Resol.|Address-Range| |:---|:---:|:---:|:---| |mcp3421|1|18bit|68H| |mcp3422|2|18bit|68H| |mcp3423|2|18bit|68H-6FH| |mcp3424|4|18bit|68H-6FH| |mcp3425|1|16bit|68H| |mcp3426|2|16bit|68H| |mcp3427|2|16bit|68H-6FH| |mcp3428|4|16bit|68H-6FH|

Example

This example reads temperature from sensor LM35 (DZ). The temperature sensor LM35 (DZ) outputs voltage 10.0 mV/°C. The sensor measures in the range of 2°..150°. Therefore the output is 20mV..1500mV. The module node mcp3424 is set for input CH1 and CH2 to Input-Range 2048mV. Other adc inputs are disabled. The redPlc calculate node divides adc value to 10. The redPlc export nodes reads the analog variables and sends to Dashboard gauge.