# Connecting Tulip to a Peristaltic Pump

**URL:** <https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472>\
**Category:** General\
**Created:** [February 3, 2023, 4:26pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472 "2023-02-03T16:26:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwoodie](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@hwoodie](https://community.tulip.co/u/hwoodie)\
**Post date:** [February 3, 2023, 4:26pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472/1 "2023-02-03T16:26:55Z")

</div>

I was wondering if anyone has ever gotten Tulip to connect to any peristaltic pump. This could be using the Edge I/O device or some microcontroller.

Common peri pumps I use are masterflex and watson marlow but I can’t figure out how to connect them to work with Tulip.

I would like to be able to set the revolutions/min and maybe direction as well and be able to turn it on and off.

Thank you!

---

<div class="post-metadata">

**Author:** ![John](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/john/32/4971_2.png) [@John](https://community.tulip.co/u/John)\
**Post date:** [February 6, 2023, 2:44pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472/2 "2023-02-06T14:44:03Z")

</div>

Hi @hwoodie, welcome to the community! I just wanted to let you know that I’ve flagged this question with our hardware folks, and someone with more in-depth knowledge of the subject should be following-up shortly.

---

<div class="post-metadata">

**Author:** ![k.ober](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/k.ober/32/6330_2.png) [@k.ober](https://community.tulip.co/u/k.ober)\
**Post date:** [February 6, 2023, 3:16pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472/3 "2023-02-06T15:16:25Z")

</div>

Hey @hwoodie ! Thanks for checking in.

Two different thoughts that I have here:

1. From a cursory Google search, it looks like both Masterflex and W-M pumps tend to have some kind of serial interface for control. ([like this, page 46](https://pim-resources.coleparmer.com/instruction-manual/a-1299-1127b-en.pdf).) I would recommend finding the manual for your unit and searching for “RS-232”, “DB9”, “Baud Rate”, or “Serial Connection” to get started.  
In general, we’ll likely need a [Node-RED flow running on Edge IO](https://support.tulip.co/docs/using-node-red-with-edge-io) to parse whatever the pump is outputting and clean it up before sending out to Tulip. But, with how versatile node-RED is I’d be surprised if this wasn’t able to get done. Serial communications are, after all, just sending text back and forth.  
In my experience, the hurdles with lab equipment like this are rarely figuring out _how_ to talk to a piece of equipment, but more often figuring out _what command_ it’s looking for. Arcane serial protocol from the '70s and '80s are common (and, hopefully, well documented 😁 )

2. If we assume the pumps are absolutely devoid of any kind of comms protocol, the ADC (Analog/Digital Converter) ports on your Edge IO are purpose-built to be connected to AC sources like a current clamp. If you clamp the wire going from the wall to the pump, we’ll at least be able to monitor when it’s on vs. when it’s off.

Check out the manual and see if you can point to a port that _should_ be communicating something. Curious to see what you find!

---

<div class="post-metadata">

**Author:** ![hwoodie](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@hwoodie](https://community.tulip.co/u/hwoodie)\
**Post date:** [February 6, 2023, 4:40pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472/4 "2023-02-06T16:40:32Z")

</div>

Here is a manual for the pump I am trying this out with: [https://pim-resources.coleparmer.com/instruction-manual/a-1299-1127b-en.pdf](https://pim-resources.coleparmer.com/instruction-manual/a-1299-1127b-en.pdf)

I have connected it to LabVIEW before and I know the commands it uses (they are mentioned in the manual) and parity, baud rate, etc. to set it to.

This is my first time using Node-RED so it is gonna take me a while to figure out how to setup a flow in Node-RED, then connect to Tulip with a connector function

---

<div class="post-metadata">

**Author:** ![k.ober](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/k.ober/32/6330_2.png) [@k.ober](https://community.tulip.co/u/k.ober)\
**Post date:** [February 6, 2023, 5:22pm UTC](https://community.tulip.co/t/connecting-tulip-to-a-peristaltic-pump/7472/5 "2023-02-06T17:22:53Z")

</div>

Oh great! In that case, getting to Tulip shouldn’t be that hard.

I’d recommend starting with [this guide](https://support.tulip.co/docs/how-to-use-serial-with-node-red-1). Two very important notes:

1. The pump **must** be plugged into Edge IO **before** EIO is powered on, so EIO can identify the occupied port. This is a known hardware limitation for Tulip Edge Devices.
2. The Serial nodes only work if there is no other process using the Serial connection; in other words, be sure that the [“Generic-Serial” Tulip driver is turned **off** on your Edge IO](https://support.tulip.co/docs/how-to-manage-drivers-in-the-device-portal) before beginning.

I wrote [this article](https://community.tulip.co/t/uart-bluetooth-ibeacons-and-edge-mc/7206) about a similar process as well, if you’d like to see a rough idea of how the flow might look.

I’d recommend first attempting to communicate solely over Node-RED, and then adding on the Tulip Connector stuff later. It’s easy enough to fake the Tulip Connector stuff with **Inject** nodes.
