Rig2: Syringe pump + Arduino

Yoon Bai's Avatar

Yoon Bai

13 Jan, 2022 01:36 PM

Hi Chris,

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. Also, do you have a code snippet for the syringe pump?

Thanks,
Yoon

  1. Support Staff 1 Posted by Christopher Sta... on 13 Jan, 2022 02:03 PM

    Christopher Stawarz's Avatar

    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 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?

    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

  2. 2 Posted by Yoon Bai on 13 Jan, 2022 09:00 PM

    Yoon Bai's Avatar

    Thank you, Chris!

    The pump and Arduino DAQ work well together and their device names are intact after rebooting (although, I still have to wake up Arduino after a reboot but this is really not an issue).

    Best,
    Yoon

  3. Christopher Stawarz closed this discussion on 14 Jan, 2022 01:45 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac