The syringe board can be used as pyControl device. Its pinout is compatible with pyControl behavior ports.
The pump must be plugged into a port that has a serial UART.
The following example assumes that the syringe pump is plugged into port 3 of Breakout board 1.2:
_syringepump.pyand place it in your “devices” directory.
pump_example_task.pyand place it you “tasks” directory.
Open up pyControl GUI
Connect to your board
Click the “Config” button and then click “Load framework”. This will ensure the _syringepump.py device is on the microcontroller.
From the Task dropdown select the “pump_example_task”
Pressing the user button on the Breakout board 1.2 will tell the syring pump to infuse 0.25 mL.
Click “Variables” and set the pump_volume to 2500. Press the user button again and see the difference. You can also try giving it a negative number, causing the motor to spin in the opposite direction.
The color display includes 7 inputs: a joystick on the left (4 directions + 1 center button) and 2 additional buttons on the right (A and B). Some of these inputs can be used to manually control the syringe pump.
- “A” button
Resets the displayed volume to 0.00 mL
- “B” button
Retracts the pump until it reaches the retract limit switch.
- Joystick North
Rotates the motor in the infuse direction.
- Joystick South
Rotates the motor in the retract direction.
- Joystick center button
Press and hold down the button until “…” appears, indicating the pump has entered “homing” mode. It will continuosly rotate the motor until one of the limit switches is triggerd by the moving carriage. Two options will then appear asking whether the triggered limit switch was the infuse limit switch or the retract limit switch. Answer by pressing the “A” or “B” button. The pump now knows which motor rotation (clockwise or counterclockwise) corresponds to infuse and retract.