Hi everyone!
I’ve been messing around with my OpenFlexure for some hobby botany, and am really missing something like a tabletop controller with a joystick and a focus adjuster to operate the microscope. Today I got the chance to use a nice Keyence microscope for work and got inspired to try and make my OpenFlexure be a bit like that 
The software is very nice but a bit less usable (at least, for me) than a hardware controller would be.
I’d like to contribute to the project, but before I start making something like this happen I have a couple of questions:
- Have there been any efforts toward something like this? I’ve seen the person who’s working on 2PP has designed a controller to interact directly with the motors. My vision is more something that interacts with the software.
- Are there any reasons why this doesn’t exist yet? Apart from nobody having been interested enough for it to happen.
If this is something that people would find cool/valuable:
My idea would be to make this with cots components and an arduino or ESP32 prototype board (I’m not really competent with electronics and designing a PCB seems both like a bit overkill and too difficult). Min features would be a joystick for xy stage movement, and a knob for focus adjustment (maybe with switching between coarse and fine adjustment with a button). Casing would be 3D printed, and the entire controller is connected via USB to the microscope. Does anybody have any thoughts/suggestions about this plan? And are there any features you’d like to see on such a controller?
Cheers,
Miguel
3 Likes
There is a way to control the microscope using a SNES controller gamepad. I am not sure of the exact status of that with the newer v3.0.0-beta software.
This is not the same as you suggest, but it is in the same direction. A joystick would be lovely.
2 Likes
Are you on v3-beta or v2 of the software? I would recommend v3-beta as this has smooth jogging motion rather than jerky individual steps.
As William said we have a “SNES” client which allows a USB-game pad to connect to the microscope. This sends commands over a software interface directly to the microscope so it needs the controller plugged into the microscope not into the machine with the client.
I don’t know of anything similar to your plan, but I agree it would be very nice. It should be very possible to get it working on the software side as we just need to detect the signals ESP32 board and then send out the expected HTTP command. This could be added either to the current client for gamepads to to a separate client code.
3 Likes
GitLab was down when I wrote the last message and I couldn’t remember what we renamed the SNES client to.
It is OpenFlexure Gamepad Client, it is now published on PyPi so
pip install openflexure-gamepad-client
will install it.
Not sure if it is possible for an ESP32 to report as a gamepad/joystick to linux? If so you will only need to map the buttons/axes and it should just work.
1 Like
我I use a Xiaomi Remote 2 Pro, which supports Bluetooth and voice control. I wrote a program with AI, and both button and voice control work. I also tested controlling it with an ESP32 module equipped with buttons and a microphone; both button and voice control can properly control the motor’s movement, focus, and photo capture.
1 Like
i used a nintendo wii controller in combination with nodemcu/xiao for other projects. It would be perfect. Wireless, with an handy joystic and two different buttons (that means a total of four different actions)
if interested… why not ^^
1 Like