This solves the issues with the now deprecated node-red-contrib-anolog-to-digital-converter-raspberry-pi
This node now uses ads1x15 - npm for async and fixes the issue of callbacks not being async/await
Now you can select channels to poll voltages on and receive one payload.
Selection of Single Ended or Differential is now separated.
hi,
can anyone show explain how to access the 'Volts' value from js?
(voltage = msg.payload./dev/i2c-1.ads1115.0x48.singleEnded.channel_0.Volts; doesnt work).
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.