Close

Minimum viable bug tracker

A project log for Automatic insect followerer

3D printer, USB microscope, bug. What you got to lose?

ahron-wayneAhron Wayne 04/16/2020 at 18:080 Comments

So maybe you've seen this first video already:

It's not working perfectly, but it is a bug tracker. It's kind of a minimum viable bug tracker. It consists of three things, really;

1: A USB microscope. This is what you will use to look at a bug. In my first video I'm alternately using one that costs a thousand dollars and one that costs a hundred dollars. But if you have one that costs 10 dollars, just use that. You also gotta find a way to stick it onto the printer --- I'm using a thing that's 3D-printed, big surprise.  

2: A 3D printer. It's gonna move the microscope around. In this video it's a tronxy x1 style kind, but use whatever you got! It's GCode controlled, so you don't have to get a new control board or anything. Be advised that this one is Marlin based.

3: Magic machine vision to identify the bug and a control loop to make the printer move. This is where almost all of the work on the project is going to be.

In the video shown, the detector is looking for a blob of color --- literally, I took it from code for tracking a green ball. I turned the standalone code into a function that would accept color boundaries and a frame, and then return the frame but with a circle drawn on it the coordinates of the blob of color, if it was found. 

This is obviously not super robust, so the next step is implementing a detector that's based on something more insect-specific --- still mulling over those options. But it's likely that it'll be the first thing I can find which actually works when I haphazardly glue it into my code. 

Discussions