Skip to content

Latest commit

 

History

History

APP_INLINE_HOLOGRAM

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Inline Holographic Microscope

This is the repository for the inline holographical microscope.

This is be part of the workshop which can be found in WORKSHOP. Note that the designs has been updated since the last workshop was organized. The files and linked on this page are up to date. The files in the workshop document follow the old version of the cube.

It acquires the interference of the spherical wave coming from a pinhole, illuminated by an LED, and the scattered wave from a transparent (phase) sample.

For reconstructing the Hologram, acquired on-chip (Raspi-Cam, left) one only needs to "deconvolve" it with the free propagator at a certain z-distance (i.e. Fresnel propagator).

A more in-detail documentation can be found here

Devices' features:

  • Lensless
  • Explain Interference
  • Low-cost acquisition
  • Open-Source
  • Compatible with Educational purposes

Parts

The Bill of Materials is always the most up-to-date version!

Modules for this setup

Name Properties Price Link #
Baseplate puzzle - 5€ Base-plate 4
Module: Raspberry Pi Camera - 20 € Raspi Camera Cube 1
Module: LED + Pinhole - 10€ LED + Pinhole 1

3D-printing

To acquire the STL-files use the UC2-Configurator. The files themselves are in the RAW folder. The module can be built using injection-moulded (IM) or 3D-printed (3DP) cubes.

Additional components

  • Check out the RESOURCES for more information!
  • 16× 5mm Ball magnets 🢂
  • 8× - 16× Screws DIN912 ISO 4762 M3×12 mm 🢂
  • 2× M2×12 mm and 2× M2 nut - non-magnetic
  • 1× Raspberry Pi Camera 🢂
  • 1x Raspberry Pi
  • 1x wired LED (blue)
  • 1x button
  • 1x Power Supply for Raspberry Pi

Assembly and alignment

For assembly instructions of the respective modules refer to the links in Modules for this setup.

Electronics

🢂 Find more in the Electronics section

Software

🢂 Find the software for this setup in our dedicated UC2-Software-GIT

Quick-start

This assumes you have built the Inline-holographical microscope already.

Soon we will provide a browser-plugin for the image reconstruction using found in our ImJoy Github-Repository.

This is an example for an acquired inline hologram.

Image Acquisition

In order to use this setup one has to take a picture with the Raspberry Pi camera module. This can conveniently be done using the command-line tool raspistill which can be called from the Terminal in the Raspberry Pi.

A more in-detail documentation can be found here.

We use a very basic setting with auto-white-balance, auto-exposure and jpeg compression by typing

cd ~
mkdir inlineholo
cd inlineholo
raspistill -f my_inline_test.jpg

This will open the camera, capture an image and saves it as my_inline_test.pgin the folder inlineholo in the Pi-home directory. Using a USB-drive one can copy the file to a computer for further processing.

Image Reconstruction

We have created an iPython-Notebook for this task which can be found here.

Tutorial for installing the Inline-Hologram Reconstruction software

Install Anaconda 3.6 (latest version for windows). Therefore follow the tutorial in this link: Anaconda Installation (external).

  1. After you've installed Anacoda, download the ipython notebook file: Listings_1_ReconHoloInline.ipynb by clicking this link and type control+s for saving it somewhere on the computer

  1. Copy Image in the same folder as the .iypnb-file

  1. Windows+R => Run prompt
  2. enter CMD and hit enter
  3. The Terminal opens
  4. Copy the path where you have the image and script file (e.g. C:\Users\diederichbenedict\Downloads\HOLOGRAM)

6. Enter: cd "C:\Users\diederichbenedict\Downloads\HOLOGRAM" (or whatever path; right click is paste in the terminal)

7. Type "ipython notebook" -> enter

8. Browser opens at http://localhost:8888 (copy paste if not opening automatically) 9. Go to the field "Define experimental parameters" and change the variable name "my_holo_file" to the filename you acquired (e.g. "hologram_mouse.jpg"

10. Go to Cell and hit "run all" and keep your fingers crossed!! 11. Vary the position of the slider in the

If you're not happy with the region of interest (ROI) change the center coordinates center_x and center_y to what you would like to see in the RAW-hologram. Rerun the programm by hitting "run all"

If you want to process a bigger field of view or ROI change the variable "mysize" to a bigger number, but take into account, that the processing time increasing!

If you think, that the refocussing range is either too small or too large (i.e. too close or too far away), than change the parameters:

# Creating costume widget
FocusSlider = widgets.FloatSlider(
    min = 0,
    max = .01,
    step = 1e-3,
    value=0,
    description = 'ZPos',
    continuous_update = True
)

min, max and step which describe the minimal/maximal focal distance between the sensor and the sample as well as the stepsize where the algorithm calculates the refocussed hologram.

Results

None yet. Be the first to share yours!

Contribution

If you find this piece usefull or you want to improve it, please feel free to file an issue or write us a message!