Category Archives: Arduino

Pseudolog (Digital To Analog Joystick Converter)

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. 🙂

XBOX Adaptive Controller (XAC) with Custom Arduino Joystick — Working Code

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.

AutoScope 2.0 : Coding The Scans

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”.

Limit switches. Y is on bottom, X is on top. Bracket also holds Z (other side, not visible, not currently connected).

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.

I’ve used this sized enclosure for other projects. A good amount of room to work in.
Display, board, buttons, drivers — need to be stuffed into a box.

Of course, also working through how I’m going to trigger cameras.