# Rig2: Syringe pump + Arduino

**URL:** <https://mworks.discourse.group/t/rig2-syringe-pump-arduino/88>\
**Category:** Support\
**Created:** [January 13, 2022, 1:36pm UTC](https://mworks.discourse.group/t/rig2-syringe-pump-arduino/88 "2022-01-13T13:36:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [January 13, 2022, 2:03pm UTC](https://mworks.discourse.group/t/rig2-syringe-pump-arduino/88/2 "2022-01-13T14:03:05Z")

</div>

Hi Yoon,

> I am preparing rig 2 with the Arduino DAQ and syringe pump, both connected via USB ports. It looks like I have to specify the ports (e.g. /dev/…) for each device and wanted to double check with you.

Yes, that’s correct. If there’s more than one serial device, you have to specify which one you want. As long as you don’t change how the devices are connected (i.e. which port on which USB hub), the device names shouldn’t change, even if you reboot. (Although given the [weird issue](https://mworks.tenderapp.com/discussions/questions/6511#comment_49587827) you and Alina have seen with the Arduino, perhaps that won’t be true.)

> Also, do you have a code snippet for the syringe pump?

```auto
var reward_volume = 1

iodevice/ne500 ne500 (
    address = '/dev/cu.usbserial-FTH1RRH5'
    log_pump_commands = false
    autostart = true
    ) {
    iochannel/ne500 (
        capability = '00'
        syringe_diameter = 15.0 // mm
        flow_rate = 5
        rate_unit = UM // uL/min
        variable = reward_volume
        volume_unit = UL // uL
        )
}

```

To dispense, assign a value to `reward_volume`.

Cheers,  
Chris

---

_[View the full topic](https://mworks.discourse.group/t/rig2-syringe-pump-arduino/88)._
