Skip to content


Repository files navigation

This repository has moved!

Active development continues on where you can find not only the up-to-date microscope designs, but also software and lots of other fun goodies.

OpenFlexure Microscope

The OpenFlexure Microscope is a 3D printable microscope, including a precise mechanical stage to move the sample and focus the optics. There are many different options for the optics, ranging from a webcam lens to a 100x, oil immersion objective.

An OpenFlexure Microscope in an incubator (courtesy Stephanie Reichelt and Dario Bressan at CRUK, Cambridge)

The trick of making a microscope out of a webcam has been around for a little while, and produces good results. However, getting a nice mechanical stage to focus the microscope and move around on the sample is tricky. This project is a 3D printable design that enables very fine (sub-micron) mechanical positioning of the sample and the lens, with surprisingly good mechanical stability. It's discussed in various media articles and a paper in Review of Scientific Instruments (open access).

Come join us!

Most of the development of this design has been done as part of various research projects - if you would like to join our research group at Bath, and you have funding or are interested in applying for it, do get in touch. Check the University of Bath jobs site, or, to see if we are currently advertising any vacancies. The team is bigger than Bath, though, and there are contibutors in Cambridge, Dar es Salaam, and beyond.

Kits and License

This project is open-source and is released under the CERN open hardware license. We are working on bring able to sell kits, and will update here once we have a good way of doing it,

Printing it yourself

To build the microscope, go to version 5.20 release and download the STL files and instructions. Don't just print everything from the STL folder, as there are a number of different configurations possible. The assembly instructions contain instructions on what parts to print and how to build it.

If you've built one, let us know - add yourself to the wiki page of builds or submit a build report issue. This is a really helpful thing to do even if you don't suggest improvements or flag up problems.


The editable instructions are MarkDown format, in the docs folder, and they can be viewed on github pages.

Get Involved!

This project is open so that anyone can get involved, and you don't have to learn OpenSCAD to help (although that would be great). Ways you can contribute include:

  • Get involved in discussions on gitter Join the chat at
  • Share your microscope images (of both microscopes and what you've seen with them) in the gallery
  • Raise an issue if you spot something that's wrong, or something that could be improved. This includes the instructions/documentation.
  • Suggest better text or images for the instructions.
  • Improve the design of parts - even if you don't use OpenSCAD, STL files or descriptions of changes are helpful.
  • Fork it, and make pull requests - again, documentation improvements are every bit as useful as revised OpenSCAD files.

Things in need of attention are currently described in issues so have a look there if you'd like to work on something but aren't sure what.

Related Repositories

Most of the Openflexure Microscope stuff lives on GitHub, under my account. Particularly useful ones are:

Compiling from source

If you want to print the current development version, you can compile the STL from the OpenSCAD files - but please still consult the documentation for quantities and tips on print settings, etc. You can use GNU Make to generate all the STL files (just run make all in the root directory of the repository). More instructions, including hints for Windows users, are available in