Remote Site Voltage Monitor

Voltage monitor circuitry

Housed inside a silicon chip case

HOW IT WORKS

Node Red flow:

Node Red dashboard

Voltage Monitor Circuit

This uses 2 voltage divider's (one for battery volts and one for solar power), these feed into a ADS1115 analogue to digital converter which talks to the Pi3 on the I2C Bus

First you need to enable your Raspberry Pi I2C bus via the config utility, or if using RemoteTX, Marcus may need to log in remotely and enable it. Once this is enabled you should see your ADS1115 device on the i2c bus using the command:

i2cdetect -y 1

This should return the address of your device (default is 0x48)


If it fails check the bus is active with command:

ls /dev/*i2c*

This should list the i2c buses available, if that fails then your bus isnt active yet

For the Node Red flow, copy the code below and import to your Node Red:

[

    {

        "id": "d2835fb505c38799",

        "type": "group",

        "z": "4ded3213d4ca3a04",

        "name": "",

        "style": {

            "fill": "#ffefbf",

            "label": true

        },

        "nodes": [

            "a1bf26b257d7f6de",

            "a4b321067ee6b898",

            "99f21d840cd5a037",

            "d9e34593907898b4",

            "44dad3d192dec2a7",

            "53576158bcf3fdd7",

            "a079e8e412131681",

            "b0b3c34f2a45d247",

            "fad314b6c8db4981",

            "cae3b252a61e4a90"

        ],

        "x": 114,

        "y": 59,

        "w": 872,

        "h": 322

    },

    {

        "id": "a1bf26b257d7f6de",

        "type": "iiot-ads1115-m",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "devadr": "0",

        "tupdate": 100,

        "mux0": "4",

        "rate0": "4",

        "gain0": "1",

        "rawdata0": false,

        "enabled0": true,

        "mux1": "5",

        "rate1": "4",

        "gain1": "1",

        "rawdata1": false,

        "enabled1": true,

        "mux2": "6",

        "rate2": "4",

        "gain2": "2",

        "rawdata2": false,

        "enabled2": false,

        "mux3": "7",

        "rate3": "4",

        "gain3": "2",

        "rawdata3": false,

        "enabled3": false,

        "x": 220,

        "y": 260,

        "wires": [

            [

                "a4b321067ee6b898"

            ],

            [

                "44dad3d192dec2a7"

            ],

            [],

            []

        ]

    },

    {

        "id": "a4b321067ee6b898",

        "type": "range",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "minin": "0",

        "maxin": "5000",

        "minout": "0",

        "maxout": "25",

        "action": "scale",

        "round": false,

        "property": "payload",

        "name": "",

        "x": 530,

        "y": 200,

        "wires": [

            [

                "b0b3c34f2a45d247"

            ]

        ]

    },

    {

        "id": "99f21d840cd5a037",

        "type": "ui_chart",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "name": "Voltage Chart",

        "group": "a7589c33b8c2d6a4",

        "order": 2,

        "width": 0,

        "height": 0,

        "label": "Voltage chart",

        "chartType": "line",

        "legend": "false",

        "xformat": "dd HH:mm",

        "interpolate": "linear",

        "nodata": "",

        "dot": false,

        "ymin": "",

        "ymax": "",

        "removeOlder": "1",

        "removeOlderPoints": "",

        "removeOlderUnit": "604800",

        "cutout": 0,

        "useOneColor": false,

        "useUTC": false,

        "colors": [

            "#1f77b4",

            "#aec7e8",

            "#ff7f0e",

            "#2ca02c",

            "#98df8a",

            "#d62728",

            "#ff9896",

            "#9467bd",

            "#c5b0d5"

        ],

        "outputs": 1,

        "useDifferentColor": false,

        "className": "",

        "x": 840,

        "y": 200,

        "wires": [

            []

        ]

    },

    {

        "id": "d9e34593907898b4",

        "type": "ui_gauge",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "name": "",

        "group": "a7589c33b8c2d6a4",

        "order": 1,

        "width": 0,

        "height": 0,

        "gtype": "gage",

        "title": "Voltage Now",

        "label": "Volts",

        "format": "{{msg.payload}}",

        "min": 0,

        "max": "24",

        "colors": [

            "#ed0226",

            "#e6e600",

            "#1fe022"

        ],

        "seg1": "10",

        "seg2": "12.5",

        "diff": false,

        "className": "",

        "x": 830,

        "y": 240,

        "wires": []

    },

    {

        "id": "44dad3d192dec2a7",

        "type": "range",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "minin": "0",

        "maxin": "5000",

        "minout": "0",

        "maxout": "25",

        "action": "scale",

        "round": false,

        "property": "payload",

        "name": "",

        "x": 530,

        "y": 300,

        "wires": [

            [

                "fad314b6c8db4981"

            ]

        ]

    },

    {

        "id": "53576158bcf3fdd7",

        "type": "ui_chart",

        "z": "4ded3213d4ca3a04",

        "d": true,

        "g": "d2835fb505c38799",

        "name": "charge Voltage Chart",

        "group": "a7589c33b8c2d6a4",

        "order": 2,

        "width": 0,

        "height": 0,

        "label": "Charge Voltage chart",

        "chartType": "line",

        "legend": "false",

        "xformat": "dd HH:mm",

        "interpolate": "linear",

        "nodata": "",

        "dot": false,

        "ymin": "",

        "ymax": "",

        "removeOlder": "1",

        "removeOlderPoints": "",

        "removeOlderUnit": "604800",

        "cutout": 0,

        "useOneColor": false,

        "useUTC": false,

        "colors": [

            "#1f77b4",

            "#aec7e8",

            "#ff7f0e",

            "#2ca02c",

            "#98df8a",

            "#d62728",

            "#ff9896",

            "#9467bd",

            "#c5b0d5"

        ],

        "outputs": 1,

        "useDifferentColor": false,

        "className": "",

        "x": 860,

        "y": 300,

        "wires": [

            []

        ]

    },

    {

        "id": "a079e8e412131681",

        "type": "ui_gauge",

        "z": "4ded3213d4ca3a04",

        "d": true,

        "g": "d2835fb505c38799",

        "name": "",

        "group": "a7589c33b8c2d6a4",

        "order": 1,

        "width": 0,

        "height": 0,

        "gtype": "gage",

        "title": "Charge Voltage",

        "label": "Volts",

        "format": "{{msg.payload}}",

        "min": 0,

        "max": "24",

        "colors": [

            "#ed0226",

            "#e6e600",

            "#1fe022"

        ],

        "seg1": "10",

        "seg2": "12.5",

        "diff": false,

        "className": "",

        "x": 840,

        "y": 340,

        "wires": []

    },

    {

        "id": "b0b3c34f2a45d247",

        "type": "function",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "name": "function 5",

        "func": "msg.payload=msg.payload.toFixed(2)\nreturn msg;",

        "outputs": 1,

        "noerr": 0,

        "initialize": "",

        "finalize": "",

        "libs": [],

        "x": 660,

        "y": 200,

        "wires": [

            [

                "99f21d840cd5a037",

                "d9e34593907898b4",

                "74a45f852b88a8b0"

            ]

        ]

    },

    {

        "id": "fad314b6c8db4981",

        "type": "function",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "name": "function 6",

        "func": "msg.payload=msg.payload.toFixed(2)\nreturn msg;",

        "outputs": 1,

        "noerr": 0,

        "initialize": "",

        "finalize": "",

        "libs": [],

        "x": 660,

        "y": 300,

        "wires": [

            [

                "53576158bcf3fdd7",

                "a079e8e412131681"

            ]

        ]

    },

    {

        "id": "cae3b252a61e4a90",

        "type": "comment",

        "z": "4ded3213d4ca3a04",

        "g": "d2835fb505c38799",

        "name": "Requires i2c ADS1115 ADC board and voltage dropper",

        "info": "Requires i2c ADS1115 ADC board and voltage dropper",

        "x": 700,

        "y": 100,

        "wires": []

    },

    {

        "id": "a7589c33b8c2d6a4",

        "type": "ui_group",

        "name": "Voltage",

        "tab": "c4471ee09fb995bd",

        "order": 6,

        "disp": true,

        "width": "6",

        "collapse": false,

        "className": ""

    },

    {

        "id": "c4471ee09fb995bd",

        "type": "ui_tab",

        "name": "Shack Status",

        "icon": "dashboard",

        "order": "1"

    }

]