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

multiple inputs from same module report the same value. #5

Closed idt1201 closed 6 years ago

idt1201 commented 6 years ago

When one input is used it works fine.

if 2 inputs are used with the same input msg they initially work correctly, however after a short time they will both have the same value regardless of AD value after.

These issues occur regardless of which type is selected, or which channels are used.

Running on Raspberry Pi 3B, node-red version v0.18.7

idt1201 commented 6 years ago

[{"id":"9c3c6688.bcb348","type":"ui_text","z":"f3e99b04.9d10a8","group":"c9512afa.2d99c8","order":0,"width":0,"height":0,"name":"","label":"Ch0","format":"{{msg.payload | number: 0}}","layout":"row-spread","x":510,"y":80,"wires":[]},{"id":"30a63068.8363e","type":"ui_text","z":"f3e99b04.9d10a8","group":"c9512afa.2d99c8","order":0,"width":0,"height":0,"name":"","label":"Ch1","format":"{{msg.payload}}","layout":"row-spread","x":510,"y":120,"wires":[]},{"id":"9befd358.8bfc9","type":"inject","z":"f3e99b04.9d10a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":80,"wires":[["facce173.64a5e"]]},{"id":"3cb3671c.bdade8","type":"inject","z":"f3e99b04.9d10a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":true,"onceDelay":"0.25","x":130,"y":120,"wires":[["dee1442d.e92498"]]},{"id":"facce173.64a5e","type":"ads1x15","z":"f3e99b04.9d10a8","name":"CH1","chip":"0","address":72,"i2c_dev":"/dev/i2c-1","channel":0,"samplesPerSecond":"8","progGainAmp":"4096","x":310,"y":80,"wires":[["9c3c6688.bcb348"]]},{"id":"dee1442d.e92498","type":"ads1x15","z":"f3e99b04.9d10a8","name":"CH2","chip":"0","address":72,"i2c_dev":"/dev/i2c-1","channel":"1","samplesPerSecond":"8","progGainAmp":"4096","x":310,"y":120,"wires":[["30a63068.8363e"]]},{"id":"c9512afa.2d99c8","type":"ui_group","z":"","name":"Inputs","tab":"6eb988ae.d804d8","disp":true,"width":"6","collapse":false},{"id":"6eb988ae.d804d8","type":"ui_tab","z":"","name":"Aqua Controls","icon":"dashboard"}]