• SOURCE PROGRESS!!! (excited because just a few minutes ago)

    Ahron Wayne • 10/16/2026 at 03:10 • 2 comments

    Last we checked, we had moved our 5000-odd pound X-Ray machine into the garage. In the summer time. 


    Let's just say, if my photographer friend weren't there, I probably wouldn't have been wearing that shirt. Definitely a vibe. I defend it by saying, many people would be doing this with their car; I'm not a car guy.  

    A reminder: We had fixed/achieved basic low level control of the motor control system, then the detector, and then figured out a really weird thing with the source (that the focus and steering cables had been swapped). The source still had some kind of fundamental issue - specifically, much lower power than it should be - with my gut being that the KV was much lower than nominally reported. Evidence included never arcing ever, radiacode spectrum not seeing tungsten k lines, image quality/emission being linear with UA but exponential with desired KV (crappy image starts to emerge at the very edge of allowed KV like 170kv nominal), and finally, the optimum focus current corresponds to a very low KV, too. 

    But one alternative explanation was crappy vacuum. So I set the thing running for 3 or 4 days and monitored the vacuum, and while the mean free path should have increased, the emission did not. So that was out. 

    And this meant it was time to nudify the source. As if we weren't in it already...  

    Hey, STUFF! 

    Believe it or not, I was like "hell yeah!" when I saw this. It wasn't a grey blob of nothing; it was full of stuff. Stuff can be fixed! Better yet, this looked like stuff that was MEANT to be fixed. 

    Ok, what have we got here..  

    We have the turbo pump. So worn down, we can't read the serial number. But it seems to be working ok; repairing it is a problem for a different day. 

    We have a Pirani gauge. It measured vacuum. By means of a hot wire that gets cold faster when there's more air. Not super duper high vacuum, but in the few negative Es of millibar. I'm not a vacuum guy, but I have a bit more of a handle on it than when I started working on this... the gauge is almost certainly measuring more of the roughing pump side than what's in the chamber. 

    there's always a possibility that the vacuum is still bad, but I don't think that's super likely. it has a setpoint for some analog thingie like turning the turbo on, and sends the raw signal to the computer. Fine.

    The boards on the right are involved in vacuum stuff. The boards on the left appear to be power distribution. And the boards in the middle appear to be the money; sending actual signal to the tank, receiving it, driving the focus and steering coils, the brains etc. Reverse engineering it was going to be a huge pain. I'm

    Except thanks for ANONYMOUS, someone far away in the world who had some service manuals and handed them to me, therefore giving me more hope and things to read on a plane ride and hooray for ANONYMOUS!

    Here's a small snippet - what I feel comfortable sharing - the signals to the Xodiac card (my pci card that handles processed signals back and forth between PC and source) and what comes out directly from the source (pl3). Booyah. 

     
      

     
    The first thing I checked was the xodiac card - I didn't have to make a cable for that one. I just bought a 37 pin male and female extension and a breakout board and I was off to beeping. 

    Not 

    T   Not very ergonomic (limited cable length connected to PC - note the zip tie to the monitor, but I've definitely done worse. 

    It revealed... mostly nominal? A bit of current return weirdness and a floating reference, but no killer diagnosis - the PCI card seemed to be fine, the issue was more upstream. So the next would be PL3 -- this is more unprocessed and coming directly out of the source tank/oil to the 'upper board' - processes signals and shares it to lower board, which then connects to the PC. 


      That's the upper board....
    Read more »

  • X-Tek Revolution Moves House

    Ahron Wayne • 08/28/2026 at 04:57 • 0 comments

    This machine weighs 5000 lbs, more or less. It was in a, let's say friend's place. A very nice friend. Who got sick of 5000 lbs of dead X-Tek taking up space. So it had to move.

    it had no wheels. We need to put wheels on it. The heaviest threaded stem casters we could find were M16, the existing threads were M20. So we put on thread adapters, and retapped the holes from underneath. This was sketchy as it sounds. 




    Bro, don't steal my rims

     


     

    After much effort, it left the building. We put a tarp over it to discourage thieves (?). In the morning, it was apparent that the weight had left an impression in the pavement...

    A local towing company handled the 'rigging'. (The bill of lading just said - Make and model: X-ray Machine). I had them rent a hydraulic lift trailer. A GOOD IDEA - the other option was a flatbed truck. quite a bit cheaper, but it would require towing it up a 15 degree slope. Heck, no. 


    mea

    Thanks Victor! This guy should be in the indy 500

    The towing was uneventful. The unloading...


     Meanwhile, I can barely parallel park...


     He's praying to the god of gravity. 

     And there it is. Totally uneventful. Nothing scary happened in between the last picture and this picture. Definitely. 

    Now we can continue to fix it, but in a dirty garage without AC! Yay! 

  • The electrons are hitting the target (and the focus seems to work)

    Ahron Wayne • 08/03/2026 at 06:23 • 0 comments

    Last time we figured out that, somehow (what the heeeeck) the Y and focus coils were physically swapped. Which makes no sense. Maybe an attempt to fix something else, or some kind of weird field repair, but I'm fairly confident that undoing that swap was the correct move. Even if the cables now permanently live in terminal blocks. 

    The problem was, we still were not getting a very strong x-ray beam. At least, not strong enough to image with a detector that I can't really control and is pretty far away. Thankfully, I had access to a portable 'single tooth style' dental detector that can expose for a long time and move closer to the source, and decided to do an experiment to see where our weak x-rays were being generated - properly, at the target, or somewhere deeper in the column. I can now confidently say that (at least some of) the electrons are hitting the target:


    Science: Sometimes, it involves sticking your laptop in an x-ray machine

    I did buy a flat ribbon USB cable to route out of the machine, but unfortunately it didn't work right with the detector, so I just put the laptop in the machine. The x-rays are weak and pointed up mostly anyway. 
     

    The detector is up at the top left, everything else is junk. (Side note: like treadmills, CT scanners will quickly become a place to hang your laundry if they aren't actively used). Below the detector is a block of foam, and below that, is a resolution target of sorts, just a PCB with some traces on it. I've used a PCB as a calibration phantom before with my other CT scanners, in that case, to unwarp a detector image. 

    about 2 mm wide, design credits to A. Alsing



    Basically the idea is we are creating a static object-detector distance, and then moving the stage up and down to create a variable source to object distance. By knowing the size of the detector pixels and the object, and how much you move up and down, you can math the location the x-rays are actually coming from. 

    It would be a good science demo for kids I think. Get a flashlight and put it in a cardboard tube and they have to figure out how far down the flashlight is or something like that. It's basically the same idea. qualitatively, If the light is coming from the very end, the shadows of objects placed closer to it quickly become big big big. If the light is towards the back, moving closer to the tube doesn't do as much.



    And two important things were learned from this! One is that, from the maths, the x-rays are totally emitting from the target. We are hitting it for sure! Scratch one thing off the list. 

    The other is that, focus works, we can make the image crisp-ish, and adjusting focus does so without substantially impacting the brightness.

     
    Yay! 

    Now, we still do have the question:

    WHY SO FEW X-RAYS? And there are essentially 3 possibilities left:

    1: The target is damaged. severely damaged. Like, the tungsten fell off. Unlikely, but possible? We are hitting bare beryllium? 

    2: The current scaling is wrong. It says 10 watts, but it is actually 0.1 watts. Or, it is actually emitting 10 watts, but only a tiny fraction of the electrons are hitting the target. It don't think the latter is likely either, because we would see a change in brightness with focus, I think, it would change the number hitting the target at least diffusely. 

    3: The kv scaling is wrong. This one is interesting, but it kind of makes sense. The image above shows the focus being good at ~275 - the default is more like 800 for 160kv. That, and the x-ray detection goes up a heck of a light at 160 vs 100kv for instance, even when there's nothing in the way; if it was just low current, you'd expect it to not be so crazy. Thirdly, I've never gotten an arc, even when going straight up to 160, which is weird, because I'm opening the tube up all the time and poking and prodding and the vacuum stinks. 

    It would be nice to...

    Read more »

  • Someone already tried to fix the source (and they did a bad job)

    Ahron Wayne • 07/25/2026 at 05:46 • 0 comments

    Hey! So, the motors are basically working, besides being squeaky and encoder scaling being off somewhat. I was partway through mapping out all the PDO stuff for a total CAN takeover when a 'backup solution' arrived in the form of a Copley PCI canbus card --- I had originally installed a Hilscher (CIF-50 CAN) card based on some old archival info about my machine, but I knew that Copley was an alternative. Lo and behold, I installed the Copley card and my behavior with the manufacturer software got a lot less erratic. I'll probably still do a lot of low level stuff in the future, but being able to run the manufacturer control scheme will let me see if they do any clever stuff for virtual axis to keep on the field of view and suchity such. 




    Anyway, motion, detector, source, you need all these things, and the source has been quite the challenge. 

    From the beginning, I needed to track down a proprietary "xodiac" PCI card, which I did. This all but guaranteed staying on 32 bit windows (7 being the best option) for at least the core part of the machine, even if the camera (kappa hires XR, running on a similar 32 bit coreco card) and the general input card (Amplicon PCI 215) could be replaced with modern versions. 

     
     

     Fancy. 

    Once I had the computer and these things all assembled a couple of months ago, I hit the "x-ray" button in the front of the machine, which actually just activates the pre-operational electronics, and I heard the vacuum pumps power up, which was a good sign. There's a backing pump in the back, as they should be found, and soon after starting up, a very robust turbomolecular pump starts to whirr. It continues to spin for like 5 minutes after being shut off, which is cool. But also not something I'd look forward to replacing if it ever broke. 

    Anyway, after navigating to the control software, and turning on the x-rays, let's just say I did not get x-rays. It said it got up to KVs, and it said it got up to emission, but a meter did not detect jack. Maybe the filament was burnt out? Even though it said it was emitting? That's reasonable right? Let's go exploring! 

     After venting, the business end of the source just unlatches and hinges out of the way for service. Don't worry about the stretched cooling tube. From there the grid cup, containing the filament, pulls straight out. 


    Filament looks fine! But let's change it anyway. I bought a 10-pack of Agar A054s for a hundred bucks. Each one is supposed to last 200 hours. That's not forever, but I'll take it any day compared to my experience of sealed sources that blow up and then become paperweights.

    Put it all back together, let it pump down and... nothing.

    Sigh.

    This should work. The high voltage appears to be real. Experiments with removing the above grid cup and filament proves that the reported electron emission is real. And if electrons get emitted, and they get accelerated by a high voltage, and then they hit something, they should make x-rays. Actually, they have to make x-rays. So are the x-rays going? 

    A tungsten copper "screw" that acts as the final aperture in the electron path.
    The target --- ideally this a tungsten on beryllium (Yes, we know Berylium Is Bad). The copper thing is actually a spring washer, not a crush ring
    I believe this is what you might call the "anode ring". It is just connected to the rest of the grounded source assembly so the electrons fly towards it. But it is probably smooth and high melting point so when electrons hit it it doesn't melt.



    After a lot of trial and error, trying to align the filament better, looking at suspicious ini files and playing around with the available settings, taking out the aperture at the top of the flight tube, I discover something significant. with the "focus" set all the way down, to absolutely zero, I do get some x-rays...

    Read more »

  • Sniffing CANS (or: I think I CAN)

    Ahron Wayne • 07/06/2026 at 03:41 • 0 comments

    I have spent too much time trying to figure out the encoder/scaling thing on the native nikon/X-Tek side. And while it breaks out a lot of cool features, I am also locked in to what they think I want to do with this machine. Also my image viewing path is busted anyway because anything involving image processing goes through Matrox, and a Matrox license, and I don't have one of those.

    So I bought one of these guys: 

     According to the target demographic of Hackaday, everyone is an expert on the Canbus, but I didn't know nothin' until recently. I still know very little. But I now know enough of the little to tap into a convenient spot and go sniffin:



     That's the joystick control box, and it both is helpfully on the can bus, and helpfully has a handwritten note from the initial build about where that can bus is. I only burned myself once soldering in that cramped space while it was still attached to the machine. But now I can do this! 

     
    Whee! SDOs and PDOs and SchmeeDOs from my whole can bus! It's so cool that you can just tap in literally anywhere, in this case the joysticks, and see the other five nodes. Encoder and velocity readout works great, and I even did some preliminary work reading the joysticks. Next I need to be able to write commands like to home and well... that should be it for basic control, in the age of the vibes. I should have been approaching it this way sooner. 

  • Check your damn plugs

    Ahron Wayne • 07/02/2026 at 05:11 • 2 comments

    Hi, sometimes old connectors can be plugged in multiple ways.


     

    This connector is not plugged in correctly. It can plug into the board in four ways. Only one of the ways is right. 

    measuring, probing, unplugging, turning things off and on again, the story became less and less clear until noticing something apparently obvious and going ohmygod and now the limit switch situation is fixed. 

    The encoder scaling is next to go.  

  • Not giving up yet (connecting to Copley Drives via CME)

    Ahron Wayne • 06/30/2026 at 06:07 • 0 comments

    We're right in the middle of the project. Rather than tell you everything, I guess I'll mention things as they pop up and spare you months of brute forcebumpinghead, I did upload a few hard to get files useful for the project on the main page. I'd add a full installer for the manufacturer software too but it's 51 megabytes compressed and the limit is 50. Anyway a quick cap from today: 

     

    This screenshot is termed, "yaaaaay". It's a direct serial/RS232 connection to one of the ampifier drives for the system --- the main problem with this system is basically, that the brain of the system, which is a bunch of Copley amplifier cards controlling the motors, and connected together with some other stuff on Canbus, had a stroke. Error! We have hit the limit of the home! we cannot engage the motors unless you do some voodoo witchcraft! I have pages and pages of notes, but it summarizes as, the machine does not work right and I have tried everything to diagnose with the Nikon/X-Tek/Metris software to no avail. 

    But now we have a direct connection to the individual drives! Yaaaaaay! 


     The drives look like this once you take them out of their lead coffin which was totally easy and did not involve prying a circuit board at all. That white stuff? thermal paste. It gets everywhere, the son of the original founder of the original company that got sold a couple of times (X-Tek) called it "birdshit". I too, now call it birdshit. Yucky.

    The drive is mislabeled --- they wrote "Z-Axis" down, installed it randomly, and then flashed the correct info after the fact, it would seem:

     Clockwise from top left: Y, Z, non-ct rotate, X, tilt, CT rotate. The labels: Not that. The motors are beefy brushed DCs, with encoders, and the ones that fight gravity (tilt and Z) also have brakes that must be powered on for the motors to move. Ninety volts, not the easiest thing to just kernable. 


    Connection to the Copley drives directly was CME/CME2. I can upload that, it's less than 50 megs, but I was able to download it on the internet without contacting anyone in the industry directly so you can go find it yourself too! Anyway, it's RS232. From an RJ11 jack, to a breakout, to a DB9, to my serial port, and after swapping the R and TX lines it WORKS and this is a big gain for me. 

     DIRECT INFO! Under volt is fine, there's all sorts of plcs in the back that decide whether or not the drives should be powered. That can be hacked. The positive and negative limits both being on without the power though is crazy. And totally related to the problems I have been having --- software opens and X or rotate or some other axis has hit its limit and can you please home but sorry we can't enable the motors because we're at a limit and blah blah blah WEEKS of this nonsense. The motors and drives themselves work, I've tricked them into running before. Through voodoo. It's cool. I'll show you when I get it to work right.




    But yeah those limits both being on corroborates some weirdness I've seen while beeping out stuff on the system. When the machine is off, the switches and what they are connected to behave as you would expect --- the switches act as a normally closed short, so you would expect there to be a high resistance between what it's connected to (otherwise, it wouldn't matter when the switch was pressed). And this is the case - but when the machine is on, the resistance behavior is different: what the switch is connected to acts like a short, which doesn't make much sense, but anyway there's WEIRDNESS and now I finally have some ground truth for the weirdness.



    That's the key piece here: This is a machine, that at some point functioned, and for various reasons it's no longer doing that. But it's still a machine, it has input and outputs and reasons for all the things it's doing. We can fix it. A service manual would still be nice.