Talk:Open-source syringe pump
Old Method for Controller: Connection and Calibration with a Raspberry Pi[edit source]
First you need to install the software on the Raspberry Pi. If you have previously done a manual install: remove /usr/local/sbin/pump-server and the line referencing it in /etc/rc.local from the Raspberry Pi.
On the Raspberry Pi, open /etc/apt/sources.list and add the line:
deb [arch=all] http://wijnen.dtdns.net/archive sid/all/
sudo apt-get update sudo apt-get install --allow-unauthenticated wijnen-archive-keyring sudo apt-get update sudo apt-get install pump-server
Next, connecting the pump and calibrating it:
- Switch the Pi off.
- Plug everything into an outlet and turn on the router. Look to see that your computer recognizes the network. Once it does, switch over to that network and open up your web browser. Type in the address bar: https://pi.local:8888. NOTE: This is only the address if a version of GNU/Linux is in use (including when a keyboard and monitor are connected to the Pi itself). We have no practical way to get the address of the Pi from a computer running Windows or MacOS, however it does work on Windows and Mac if the name or IP can be obtained; this must be used instead of pi.local. Most routers have an administration web site which can list current clients. Consult your router manual for how to get this information.
- Set the Calibration to 1 ml/mm and set the speed to 1 ml/s.
- Pull the syringe out slightly past a big marker. Then using tiny steps, push the syringe to the bigger marker so the plunger is exactly on the mark. (Because of backlash, you want to do the entire procedure with pushing only.)
- Set the position to 0 ml.
- Push it further until you reach another marker (larger distance is better). Make sure to do small steps at the end, in order to make sure you do it by pushing only.
- Record the current position. The unit of this position is really mm, because a calibration value of 1 ml/mm was used.
- Divide the number of milliliters between the markers by the number of millimeters you pushed it. This is the correct calibration value for this syringe.
- You can insert default values, including a default calibration value, in /etc/default/pump-server. Look at /etc/init.d/pump-server (but don't edit it) to see which variables can be set.