Skip to content

My experience building the digital pipette with a Pico W #2

@sgbaird

Description

@sgbaird

Overall, it was pretty smooth. I'll first note that I was provided the 3D printed parts directly. Also, I ended up writing my own MicroPython code to use it with a Pico W, and consequently I haven't tested out the Arduino code. Here is a basic script:

from machine import Pin, PWM
import utime

# Setup PWM
pwm = PWM(Pin(0))  # Use the appropriate GPIO pin
pwm.freq(50)  # 50 Hz frequency

def set_position(pulse_ms):
    duty = int((pulse_ms / 20.0) * 65535)
    pwm.duty_u16(duty)

# Example to set the actuator to different positions
set_position(1.1)  # Almost full retraction
utime.sleep(5)
set_position(1.5)  # Halfway
utime.sleep(5)
set_position(1.9)  # Almost full extension
utime.sleep(5)
set_position(1.1)  # Almost full retraction
utime.sleep(5)
set_position(1.5)  # Halfway
utime.sleep(5)

# Add your logic to set it to the desired intermediate positions

pwm.deinit()  # Deinitialize PWM

Note the 1.0 ms is fully retracted, and 2.0 ms is fully extended. This was based on the LR16-R datasheet.

Some comments:

  • Diagram could be updated to show the connection between power supply ground and arduino ground
  • The 10 mm short screw for the plunger (step 2) seems just barely too short, but if tightened relatively well, fits through most of the nut. Could have gone with a little bit more tolerance perhaps
  • Maybe best to separate the build instructions in the README with headings for each step instead of only numbering (it was easy to misinterpret the text as a caption)
  • Maybe make the walls on the thin neck a bit larger? (i.e., to get a tighter fit without needing to make the neck width smaller)
  • Maybe there could be an access hole for the plunger, so that the plunger screw can be tightened without needing to unscrew everything else
  • Sometimes the README videos are kind of glitchy - maybe specific to my computer, but refreshing the window usually works. There is also a download option - not a big deal. I like that you have successive, short videos with text instructions.
  • During the final step with the syringe cover, it seems a little strange that there isn't a tighter/more robust connection here. Taping around it will make it stay together better. I get that it would complicate the design though
  • Might be nice to show/explain how someone can power the microcontroller from the same 6V power supply (e.g., buck converter)
  • Any issues with full retraction and full extension? It seemed like maybe limiting the range from 10% to 90% instead of 0% to 100% was better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions