Create simple counter with Brainboxes BB-400

Hello,

I just joined because I have a project at work. I'm wanting to count product on four lanes and show on the ui dashboard from a Brainboxes BB-400 inputs (three and one from a ED588). I also would like to have a reset count button on the ui dashboard.

So far the only way I have been able to get any counts listed on the dashboard is with using Websockets and an inject node with a JSON [0,0,0,0,0,0,0,0] to a TEXT dashboard node.

My issue is that on the ui there is unneeded data being displayed. I'm showing all 8 of "counts" "Inputs" and "Outputs"

I do not know how to query the BB-400 inputs individually or just the three that I need from this device (not including the ED588's fourth)

I'm really excited about the project and the fact that I get to learn. Any direction would be greatly appreciated.

Matt

Welcome to the forum @Matt5155.

What device are you running Node- red on?
And what device are you viewing the editor & dashboard on? (Might be the same)
What dashboard component have you installed - Node-red-dashboard or its replacement @flowfuse/Node-red dashboard?

Thank you.

The device that's running node red is a Raspberry Pi based device. That's the Brainboxes BB-400 unit. It's an industrial controller. The ED 588 is a remote I/O device (also manufactured by Brainboxes) that can communicate with the controller through ethernet and I believe RS485, Modbus.

I view the editor with IPadress:1880 and the dashboard with IPadress:1880/ui on the same device. The BB-400 is in access point mode and I can reach it with my laptop for interface. It's the Node-red dashboard.

Thanks.

I don't know much about modbus but I do know there are nodes you can install to interface with Node-red. It crops up in the forum quite frequently too.

A nice feature of Node-red is that you can break a task up into parts eg data acquisition & analysis, dashboard.

I think node-red-dashboard is a good choice for rapid prototyping of your dashboard. You should be aware though that it is no longer maintained.

If you are comfortable with writing your own html and javascript, you would almost certainly find uibuilder more flexible than either of the official dashboards.

Thanks for the advice

Matt

If this is a new project you should probably use the newer dashboard @flowfuse/node-red-dashboard as the old one is no longer in active development.

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

Once you have watched those then ask again if you need further help.