# Setting up Brainboxes with Node-RED

**URL:** <https://discourse.nodered.org/t/setting-up-brainboxes-with-node-red/19251>\
**Category:** General\
**Created:** [17 December 2019 08:46 UTC](https://discourse.nodered.org/t/setting-up-brainboxes-with-node-red/19251 "2019-12-17T08:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unikumet](https://avatars.discourse-cdn.com/v4/letter/u/7ea924/32.png) [@Unikumet](https://discourse.nodered.org/u/Unikumet)\
**Post date:** [17 December 2019 08:46 UTC](https://discourse.nodered.org/t/setting-up-brainboxes-with-node-red/19251/1 "2019-12-17T08:46:59Z")

</div>

Hi all,

I am currently working on a project which involves the use of Brainboxes to control equipment, either by giving them a digital signal to open / close, or using a analogue signal to adjust for instance a valve.

For my project at hand I am stuck, and therefore asking for your guidance.

I am using the Modbus function to control the Brainboxes. I have a Brainbox ED-008 for the Digital signals, and a ED-560 for Analogue signals.  
The task at hand is first to use the ED-560 to send analogue signals to a valve, telling it to open anywhere from 0-100%. The second one is to receive information from a sensor located after the valve. This signal is Digital and connected to the ED-008.

What I could use your guidance for is which Modbus Nodes / other nodes to use to both regulate the valve opening as well as receiving the readings from the sensor.

What I have in mind so far is that it might be possible to use a Modbus Write node, with a basic setup like this:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6cef9c01983105698cbba452beb2946d0372a7fb.png)

Still struggling to find out what to do with the digital signal.

All comments / tips / tricks will be most welcome. I am open for all suggestions regarding what to use and possible improvements.

Kind regards  
Alexander
