Gavin-Perry / OdorChoice

Pico Odor Choice for Camillo & Ale at WUSTL
0 stars 0 forks source link

Drop time inaccurate change ms to 1000 us #27

Closed Gavin-Perry closed 3 weeks ago

Gavin-Perry commented 1 month ago

The drop time was in milliseconds and at single (4,5,6 7 etc) ms it isn't accurate since delay() is +/- 1 ms timing. Switched to delayMicroseconds( Tm*1000) for better accuracy. ITest the juice solenoids using the 0.5mm ID tubing I calculate as follows: 0.5mm D = 0.25mm R = 0.785 mm^2 thus 0.785 uL per mm of bubble motion.(1uL = 1mm^3) commands: vX to get 1 pulse at X ms long e.g. v7 Ux to set DropTm the pulse length in ms (no fractions supported yet but they could be) aN for N pulses e.g. a10 for 10 pulses HX to change DropDelay the delay between pulses H150 is the default 50 is the minimum Set H to >500 for e.g. single drops as 150 has fluid still flowing so later drops are bigger. Using 0.5mm ID tubing get 0.785 uL per 1mm length of bubble motion.

Gavin-Perry commented 1 month ago

Tested with a fixed length (1 inch) of silicone, no bubbles and it is plenty accurate. See JuiceCal page in OdorChoiceDevelopment spread sheet. Probably need a pinch valve anyway to isolate fluid from solenoid.

Gavin-Perry commented 3 weeks ago

Probably need 3 inches of 0.5mm tubing to slow it down enough. Since time is now in microseconds I can change it to allow fractions of ms if more resolution is needed.