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

node-red-contrib-voltage_undivider

v0.8.9

Published

A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value.

Downloads

6

Readme

node-red-contrib-voltage_undivider

Node-RED A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value.


Table of Contents


Install

Install with node-red Palette Manager or,

Run the following command in your Node-RED user directory - typically ~/.node-red:

npm install node-red-contrib-voltage_undivider

Usage

A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value. Just insert the node in between two others. Then the voltage received can be corrected, undivided, to show voltage before the physical voltage devider.

examplenode.png

Property

Define the msg property name you wish. The name you select (msg.example) will also be the output property The payload must be a number! Anything else will try to be parsed into a number and rejected if that fails.

Voltage_In

Select the voltage scale for the Input. Voltages from diffrent sources may be represented in diffrent scales. Example; a ADC (Anolog to Digital Converter may output in mV. You must select the correct input voltage scale or your output will be wrong.

Resistor_1

vdivider.png

Select the resistor scale for the resistor used. Then enter the resistance.

Resistor_2

vdivider.png

Select the resistor scale for the resistor used. Then enter the resistance.

Voltage_Out

Select the voltage scale you want for the Output. If you have selected the correct scale on the input the output scale you have selected will be automaticly converted to the voltage you want.

Round_Output

If you would like your output to be rounded then select the level you want. Note: if you choose not to round the maximum integer length is 15 digits. The maximum length after a decimals is 17 digits.

Example Flows

Simple examples showing how to use the voltage_undivider.

Example

example1.png

[{"id":"6c3f0ba9.131de4","type":"change","z":"7edb64d7.2216cc","name":"Anolog Digital Converter","rules":[{"t":"set","p":"payload","pt":"msg","to":"3.25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":320,"wires":[["5ad1bd27.e1b3b4"]]},{"id":"c0a340e7.a8288","type":"debug","z":"7edb64d7.2216cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":320,"wires":[]},{"id":"1782d03a.4e4ae","type":"inject","z":"7edb64d7.2216cc","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":320,"wires":[["6c3f0ba9.131de4"]]},{"id":"5ad1bd27.e1b3b4","type":"voltage_undivider","z":"7edb64d7.2216cc","name":"","Voltage_Input":"V-Volts","Resistor_1":"1.1","Resistor_1Types":"Ω-Ohm","Resistor_2":"2.1","Resistor_2Types":"Ω-Ohm","Voltage_Output":"V-Volts","Round_Output":"Thousandths","x":530,"y":320,"wires":[["c0a340e7.a8288"]]}]

Bugs / Feature request

Please report bugs and feel free to ask for new features directly on GitHub.

License

This project is licensed under Apache 2.0 license.

Work

_Need a node? _Need automation work? _Need computers to flip switches?

Contact me at [email protected]

Contributor of Project

Thanks to SunValleyFoods for being a buisness that supports opensource. They needed this node for a monitoring and automation project for their equipment.

release notes

0.0.0 = (majorchange) . (new_feature) . (bugfix-simple_mod)

version 0.8.9 Property option added to node bug fix for checks if null value

version 0.7.8 updated help txt updated images updated example code

version 0.7.7 fixed install command

version 0.7.6 First Public release