It seems people have got the pi to boot from the NVMe hard drives. These are so much faster and more reliable than SD cards. The reliance on SD cards was always the thing was most worried about with the Pi.
As the base costs about £13, and NVMe SSDs are similar price (£25 ish for a 256GB) drive… this seems ideal. They also have dual bases allowing separate OS and data drives.
That absolutely should work, and seems to be a major reason for including the PCIe interface on the Pi5.
The current Openflexure operating system/server will not run on a Pi5 because it is tied to an old version of Rasbian. I think the coming v3.0 does not yet run on a Pi5, although that should be more a matter of getting round to it, because it is based on the new Pi OS.
Yes. We were stuck on Buster because of breaking changes to the way the camera is implemented in the later operating systems, which meant that it requires a lot of re-writing in the server. That is currently in progress.
Yes - the new server is working, and in use on some of our medical projects - but due to some server migration pain I’ve not yet been able to properly share the disk image. Also, the code needs some serious tidying up before it’s really releasable (e.g. python packages rather than cloned repositories).
The new code will be based on Bookworm, i.e. up to date again. However, Bookworm did introduce breaking changes to the camera stack this January that caused headaches, so the most recent working version is actually patched into a Bookworm image from November IIRC. I have not yet had time to test if it has been fixed in a subsequent release, but it’s on the list!
I know Pi 5 changes a few things in the camera stack, so it will probably not work out of the box even with the new Bookworm-based softwrae, but hopefully the fixes will not be too tricky. The extra power is very tempting - but dealing with a fan in the base (my understanding was that a fan is basically required now) may require more than just a taller electronics drawer…
Either way, I love the idea of an NVMe drive replacing the SD card, this would eliminate a major headache
We can just update the specs to say the microscope resolution is “vibration limited” rather than diffraction limited?
Would be worth experimenting with a heavier base and some rubber dampers between the pi and the base. But yes quite an engineering project to get everything perfect and confirmed.
yes - I’ve long wanted a nice robust box, where the electronics are fixed to the case and the microscope is “floating”, ideally with a big fat power bank under it for added mass. That would solve a few problems, including this one. Probably that’s something not-3D-printed for robustness and cleanability - a colleague here has a nice acrylic bender that would do, though there are simpler ways to make a decent box!
We need to try the Pi5 and see how much of an issue heat is in this application. For running the actual microscope function it should be fine with no cooling or with some passive cooling, the computational need is not high. For things like analysis and stitching that could be more of an issue, although Pi4 is used for many things without even passive cooling and I don’t think Pi5 can be more power hungry per operation - it just lets you do a lot more operations in a reasonably time.
In the end, surely trying to do everything on the embedded machine is not sensible? Put a basic and headless Pi in the microscope to minimise heat and have no vibration. Then use a wired network connection to an adjacent beefier Pi5 or other computer for the heavy lifting.
Vibration control in a box would be useful anyway.
A beefy wide heat sink will do a lot of work with cooling. Could even try and pipe the heat to a big heatsink in the void space.
I’m not too sure about bent perspex. Perspex is actually quite an awful material really. Brittle and scratches.
I actually have been looking at peli cases. I think they are very standard, very strong, and actually sell frames designed to lock in an instrument. I think there should be a way to have the microscope mounted in a pelicase. May not be idea for all uses but would work well for a portable microscope.
I think working out what easy to specify boxes are available is a better way forward than trying to design a box.
I’ve been looking at the Pi 5, and musing on issues of it likely needing a fan for cooling, and the undesirability of the vibration that would inevitably create.
Which led me to wonder about creating a structure where the electronics are in a separate box that is sat to one side of the main microscope body, and they are then connected with some cables, but isolated from a vibration perspective.
(The electronics box could then optionally have a 7in monitor on its top)
The challenge then is extending the cabling. A long ribbon cable for the camera feels a bit vulnerable, but I not there’s an adaptor that allows an HDMI cable to be repurposed for this: Tindie: Pi Camera HDMI Cable Extension
Obviously the motor and LED connections would also need to be extended, but that feels easier.
Anyway, I thought I’d just through that idea into the mix, in case the vibration was thought to be a blocking issue when considering Pi 5 support.
I think you’re right, and there are plenty reasons it would be nice to isolate the microscope from the electronics. I’d favour a single box that houses both electronics and microscope, but with the microscope sitting on some sort of vibration isolator (sorbothane/whatever). That’s likely more robust than two boxes I think. On the other hand, really good isolation probably needs additional mass, so that solution might become big and heavy… @j.stirling posted a box design a while back, it didn’t include isolators but we’d certainly like it to.
I was sent a very interesting video the other day where someone added stability to a 3D printed housing by filling it with concrete.
I could imagine that if the box had heavy (possibly concrete filled) mounts for the Pi and the microscope. And these sat within dampers in the same box this would be fine. One possible path of transferring vibrations is along the wires. If we really wanted to we could add damped strain relief. But I really doubt that we would get significant vibrations from a fan going down the optics ribbon cable unless it was directly in the path of the airflow.
Very nice! I think vibrations are one reason to stick with the current thin ribbon cable rather than more robust solutions: an HDMI cable can transmit a lot more vibration than a wafer-thin ribbon. Possibly anchoring said ribbon cable to the heavy block or a fixed part of the microscope would help, but I agree it’s unlikely to need a separate vibration damper.
So to pull these ideas together, aiming for a single box, with the option for some added weight (concrete is an option, but sounds a faff to prepare and somewhat messy; but lead shot / scuba diving ballast is still readily available and could be poured into a 3D printed cavity and sealed in), and some damping/isolation for the microscope, with the electronics box (with its vibrating fan) maybe off to one side (or in front, to keep things elegantly symmetrical).
Keep using the ribbon cable for the camera rather than anything more substantial like an HDMI cable to reduce vibration transmission - assuming we are still okay with the ribbon cable length.
I note on my 3D printer there’s an option for it to have anti-vibration feet, which I think are just TPU, so I wonder whether some form of coupling made of something like that would work to isolate the microscope from the box stand below it - either as a purchased part, or even 3D printed. I think the world of top-end hifi systems put a lot of thought into vibration isolation, so there may be some concepts we could borrow from there.
I also hanker after having the option of an integrated small touchscreen, which one could envisage sat on top of the electronics box part, in front of the microscope, tilted towards the user.
I could try modelling something if that would help, but it would be in Onshape rather than OpenSCAD.