flarets / syringe_pump

An alternate implementation of the OpenSyring Pump program.
MIT License
1 stars 1 forks source link

@Arduino Program #1

Closed farhannaseh closed 7 years ago

farhannaseh commented 7 years ago

Hi ... Please help in following issues: 1) For program to run, does it require any specific LCDKeypad/TimerOne library or any library available online can be used? Please provide with library links then. 2) Can the program be used for smaller syringes < 5ml and flow rates~few microlitres per min? 3) In "unsigned int NSTEPS = 10;" , what is NSTEPS? 4) In float flow_rate_increment = 1/60.0; // flow rate increment, mL/s, units ml/s or ml/min? 5)Please explain this delay_per_step = 0.8e6/(revs_per_s steps_per_revolution usteps_per_step[USTEPS_INDEX]); , I was unable to figure out why 0.8e6? Please reply asap.

flarets commented 7 years ago
  1. Libraries are: http://playground.arduino.cc/Code/Timer1 https://github.com/barnybug/arduino-sous-vide/tree/master/libraries/LCDKeypad
  2. Smaller syringes should be fine, just get your constants right. You can go as slow as you like.
  3. NSTEPS was just to make the minimum volume increment a practical size I think, if you need finer resolution you can reduce it.
  4. mL/s
  5. The 1e6 is because it's microsteps. From testing I found a factor of 0.8 was necessary for the speed to be right. Really not sure why it was necessary.