Quantcast
Channel: Request Help - OpenFlexure Forum
Viewing all articles
Browse latest Browse all 127

ValueError: Stage response to 'p?'

$
0
0

Hi

Instead of printing an entire Openflexure Microscope I printed gears to motorise an old Olympus EC. It works!
At first, I struggled with the stage mapping, as the x- and y-axis have different gear transmission ratios and backlash (x: 224 backlash and 0.27 px/step, y:53 backlash and 1.769 px/step). I lowered the “example values” in the camera_stage_mapping.py file and rearranged it so that it starts with calibrating the y axis. Somehow that helped and it now works.
Now I’m trying to set it up so that it can scan the entire stage area (~6 x 5 cm) with probably thousands of pictures each 2500 steps in the x direction and 250 steps in the y direction. So far I managed to capture and stitch 22x15 images (15319 x 6904 pixels).
However, often it stops and I get the following error: ValueError: Stage response to 'p?' ('12500 250-782') wasn't matched by /%d %d %d/ (generated regex /([-+]?\d+) ([-+]?\d+) ([-+]?\d+)/)
I guess this error is caused by to many commands for the motors. I also get it when navigating and keeping the arrow keys pressed down. Or are the motors not strong enough?
I changed the settle time to 2.5 and disabled the gallery, that helped a bit. I use a Raspberry 3B, PiCam v2 and a Arduino nano clone. Would the increased power of a Raspberry 4 work better?

Thank you for you work and any help.

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 127

Trending Articles