Got two more XAC analog sticks out the door for xmas. These use the JoyCon style replacement stick, as the user needed smaller and less tension. Pro Micro/Leo inside. Code & models in github.
Code and SCAD are working and posted for the Pseudolog converter.
Takes 4 switch inputs (ex. joystick u/d/l/r) and converts to pseudo analog joystick (the longer you hold, the more it swings to limits). Sensitivity adjusted by slide pot on top. Acts like a USB stick on the XAC.
The wiring is a little patchwork, as I changed my mind mid-soldering. Basically, jacks and pot go to Analog inputs of Pro Micro. Pot and jacks supplied with VCC. Full reading (1023) used to trigger. I used Analog inputs on purpose — so that I can use this for other projects.
I threw in a NeoPixel, because, why not? I’ve not coded the pixel yet.
At long last I’ve revisited my problem with getting the Arduino Leonardo / Pro Micro to work with the XBOX Adaptive Controller (XAC). This code now works with the XAC! Huzzah!
Important: Folks have been having issues with copy-and-paste. WordPress is sticking in formatting, and I can’t get it to upload an ICO, so head over to github for the code:
More to come. I’m working on a Nintendo JoyCon Joystick version for a user with limited mobility.
Feb 3, 2022 Update: The copy and paste of the code has been causing problems. Please head over to github for the code. Note: The fancier code, which handles weirdness with JoyCon replacement sticks, is also up there. Look for JoyConStick_Converter_ForXBOXAC_v2D.
I got the X and Y limit switches working. Not perfect, but good enough to move forward. Spent yesterday coding “go home” “go center” and a preliminary “scan slide”.
Slide Center is currently hard-coded based on “eye balling” one of my sample slides. I’ll have to come up with something more scientific. 🙂
The level of magnification determines the steps per photo — inverse ratio (lower the mag, higher the # of steps). It follows the mag values, but I’ve tweaked to give some additional overlap. The steppers and gearing are good enough for over 1000x (the optics, not so much).
I’ve also directly connected the camera to the microscope (not going through an eyepiece). These images are roughly 300x. 3D printed a little 32mm adapter tube.
As I play with it, I’m coming up with a list of stuff to do: add a Cancel/Abort/Panic button (hooked to an interrupt). Allow user to set scan ranges. Allow user to set center. Save default values?
Also thinking through a proper case for it.
Of course, also working through how I’m going to trigger cameras.