Rig2: Syringe pump + Arduino
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
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
Support Staff 1 Posted by Christopher Sta... on 13 Jan, 2022 02:03 PM
Hi Yoon,
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.)
To dispense, assign a value to
reward_volume
.Cheers,
Chris
2 Posted by Yoon Bai on 13 Jan, 2022 09:00 PM
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
Christopher Stawarz closed this discussion on 14 Jan, 2022 01:45 PM.