cinqueon / node-red-contrib-ads1x15

Node-Red node for ADS1015 and ADS1115 I2C ADC
https://www.npmjs.com/package/node-red-contrib-ads1x15
0 stars 3 forks source link

Broken: for new versions of node-red greater than 18.x and issue with code in this node! #8

Open meeki007 opened 4 years ago

meeki007 commented 4 years ago

this package depends on, node-ads1x15 https://github.com/cinqueon/node-red-contrib-ads1x15 the above package depends on, node-i2c https://github.com/kelly/node-i2c

node-i2c has been broken for a while.

Issues with code in this node:

Samples Per Second - the selections are reversed if you select ads1015 you get ads 1115 values and vise-vera

Address - you cant change the address 0x48 to one of the other address. your inputs will not take. I edited the code myself to fix it. //address hex must be stored as a sting and then changed to a number later. else it converts it to its corresponding number the user will see. Eample 0x48 will be shown as 72

Differential voltages not supported by this node

SOLUTION: https://flows.nodered.org/node/node-red-contrib-ads1x15_i2c