Introduction
Optogenetics is the use of light to control some aspect of biology in a living system. My previous project gives a short intro on how this tool is leveraged in Drosophila especially in the context of neuroscience research so I will not go into that here. The reason for building this device was that there were no commercial solutions to our problem. In the lab, we study the role of sleep in memory consolidation(among other things). Our memory assays use groups of flies and that means we have to perform optogenetic manipulations uniformly in as many as 100 flies per vial. To my knowledge there are no commercial systems that do this. This is where the Opto Box comes in. Here is the first iteration of it.
There are slots for 5 x 2 standard drosophila culture vials and each is illuminated by two LED modules(one on either side). They are equidistant from the center of the vial so all flies receive roughly equal illumination. It uses a separate 5V power supply for the lights. The BNC connector is to prevent accidental swapping with the 9V supply for the Arduino which would fry the lights. The v2 uses only one input.
The v2 is also more modular. It is not shoddily held together with hot glue like its predecessor and things can be replaced if the need arises.
Both of them use the WS2812B LEDs. These come in a variety of forms- single SMD chips, strips, circular modules, 8x8 squares, 8 in-line straight modules, there is even a flexible one. I used the 8 LED straight module as this gives ample coverage over the region of the culture tube (excluding the media and the plug). These are RGB LEDs so they can be used with different optogenetic effectors like Chrimson(Red), channelrhodopsin (blue), or GtAcRs(green) although we have only tried it with Chrimson and GtAcR1. Another benefit is that these can be daisy chained and it is possible to hook up multiple of these modules in series. There is a nice FastLED library for Arduino written by Daniel Garcia that makes controlling the LEDs very easy. The intensity, colour, switching on/off can all be done by software unlike regular RGB leds. This eliminates the need for a complicated circuity. The downside is that the intensity is lower than that of 12V RGB leds so it might not work for some applications. We haven't measured the actual light output with a probe because we do not have a probe that is small enough to fit inside.
Operation
The Opto Box is hooked up to a 9V or 12V 2A DC adapter. The power indicator should light up and there is an initial beep. This should be done before connecting the Arduino to the computer. The Arduino inside is then connected to a laptop. Inputs are given through the serial monitor of the Arduino IDE. Once the programming is done the laptop can be disconnected. Make sure that the power indicator is on before starting the stimulation . If the stimulation starts without external power, the Arduino will try to power the LEDs on its own which might damage components on the board. (Maybe the v3 will not have this problem!)