# LED grid illumination

Using a LED grid for illumination opens up new imaging modalities, such as darkfield, Rheinberg and phase imaging. These instructions, behaving as an add on for the standard build, show you how to use a LED grid with the OpenFlexure Delta Stage.

> This module is still under test, and requires some electronics experience, so please proceed with caution.

### Parts

- 1 74AHCT125
- 1 Adafruit 3444 LED grid
- 8 M2.5x12mm standoffs
- 4 M2.5x7mm screw
- 4 M2.5x8mm screws
- 1 USB cable
- 1 USB plug
- 1 perma-proto board
- some solder

### Tools

- 1 2mm hex screwdriver
- 1 soldering iron

### 3D printed parts

- 1 LED array holder

# Hardware

## Step 1: Solder the parts

Solder the Adafruit 3444 LED grid to the perma-proto board with the 74AHCT125 chip using a soldering iron and solder. You will need to power the LED grid, we recommend using a USB cable with a high power (2A) USB plug for convenience.

Please make reference to the fritzing diagram. Of course, you can always try it out with a breadboard before soldering to the perma-proto board.

## Step 2: Attach the LED grid to the holder

Pass the Adafruit 3444 LED grid through the LED array holder. Secure it in place with four M2.5x8mm screws using a 2mm hex screwdriver.

## Step 3: Put the Raspberry Pi in the base

As with the Raspberry Pi & Sangaboard base instructions, put the Raspberry Pi in the Raspberry Pi and Sangaboard base. Secure it in place with four M2.5x12mm standoffs.

## Step 4: Put the perma-proto HAT board on top of the Raspberry Pi

Push the perma-proto board on top of the Raspberry Pi. Make sure the GPIO pins align with the header on the perma-proto board. The camera ribbon cable should fit through the slot. Secure it in place with four M2.5x12mm standoffs.

## Step 5: Put the Sangaboard on top of the perma-proto HAT

The Sangaboard (currently v2 only) should sit on top of the standoffs, and can be secured with four M2.5x7mm screws using a 2mm hex screwdriver.

## Step 6: Complete microscope as usual and put the main body on the top

The rest of the Raspberry Pi & Sangaboard base instructions will guide you with putting the microscope together. The LED grid slots on the illumination dovetail. You should not power the LED grid from the Raspberry Pi, instead power it using the high power (2A) USB plug.

# Software

## Enable SPI

You may need to enable SPI on your microscope.

## Download the extensions

You will need to download our extensions to your microscope to control the LED using the microscope's software. The instructions to do this can be found on the GitLab repository.