<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://oldwiki.miniscope.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marshallshuler</id>
		<title>UCLA Miniscope - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://oldwiki.miniscope.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marshallshuler"/>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php/Special:Contributions/Marshallshuler"/>
		<updated>2026-04-05T18:02:07Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Data_Acquisition_Box&amp;diff=1610</id>
		<title>Data Acquisition Box</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Data_Acquisition_Box&amp;diff=1610"/>
				<updated>2017-05-03T20:07:41Z</updated>
		
		<summary type="html">&lt;p&gt;Marshallshuler: /* General Peripheral Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OverviewDAQHardware.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Design, fabrication, and assembly files can be found at the [https://github.com/daharoni/Miniscope_DAQ_PCB.git Miniscope DAQ PCB Github repository].&lt;br /&gt;
&lt;br /&gt;
The Data Acquisition (DAQ) Box sits between the head mounted microscope and PC and mediates communication between the two. The DAQ box connects over super speed USB (USB3.0) to the PC and enumerates as a generic webcam using the USB Video Class (UVC) device protocol. This means that other open source or commercial webcam software should be able to control and stream data for the system. Below shows the default configuration of the DAQ hardware using the firmware provided on this wiki. &lt;br /&gt;
&lt;br /&gt;
[[File:DAQBox.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
The PCB is roughly 3&amp;quot; x 2.25&amp;quot; and housed in a 3D printed box. The PCB is a 4 layer board with controlled impedance for the USB data lines. &lt;br /&gt;
&lt;br /&gt;
[[File:DAQPCB.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
Below is the schematic of the DAQ hardware. &lt;br /&gt;
&lt;br /&gt;
[[File:DAQPCBSchematic.png|center|600px]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connectors ==&lt;br /&gt;
[[File:GPIOSMA.png|center|600px]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status LEDs ==&lt;br /&gt;
[[File:StatusLEDs.png|center|600px]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Jumper Settings ==&lt;br /&gt;
[[File:PowerJumper.png|center|600px]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Switch and Boot Mode Settings ==&lt;br /&gt;
[[File:SwitchSettings.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
[[File:BootMode.png|center|600px]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Firmware ==&lt;br /&gt;
The firmware image and firmware source code can be found at the [https://github.com/daharoni/Miniscope_DAQ_Firmware.git Miniscope DAQ firmware repository].&lt;br /&gt;
&lt;br /&gt;
The firmware running the DAQ box consists of a USB descriptor, General Peripheral Interface (GPIF II) state machine, and ARM Cortex programming. All three of these components were written, and can be modified, using the Cypress EZ-USB FX3 SDK. The SDK also provides the needed software to flash the firmware onto the DAQ board through the USB connection. Below is a short description of the firmware components.&lt;br /&gt;
&lt;br /&gt;
=== USB Descriptor ===&lt;br /&gt;
The USB descriptor is based on the USB Video Class (UVC) descriptor structure which causes the DAQ board to enumerate as a generic webcam. The descriptor conveys supported configurations, frame size, ect. to the PC.&lt;br /&gt;
&lt;br /&gt;
=== General Peripheral Interface ===&lt;br /&gt;
The General Peripheral Interface (GPIF II) configures the GPIOs of the USB Host Controller as well as defines the state machine for handling a raw video data stream. The GPIF connects to the parallel output of the imaging sensor as well as the imaging sensor's sync signals (Frame Valid, Line Valid, Pixel Clock) and the state machine defines how the imaging data gets packaged before being sent over the USB interface.&lt;br /&gt;
&lt;br /&gt;
=== ARM Cortex Programming ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials ==&lt;br /&gt;
[[System Assembly]]&lt;br /&gt;
&lt;br /&gt;
[[Software and Firmware Setup]]&lt;/div&gt;</summary>
		<author><name>Marshallshuler</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Head_Mounted_Scope&amp;diff=1606</id>
		<title>Head Mounted Scope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Head_Mounted_Scope&amp;diff=1606"/>
				<updated>2017-04-07T20:51:20Z</updated>
		
		<summary type="html">&lt;p&gt;Marshallshuler: /* Machined Delrin Housing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OverviewScope.png|thumb||600px]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[File:MiniscopeExplodedLabled.PNG|thumb|right|300px|Exploded view of the head mounted scope.]]&lt;br /&gt;
The head mounted scope consists of a machined Delrin housing, optical filters and lenses, an excitation light source, and CMOS imaging sensor. The mass of the system in under 3 grams and connected to the DAQ hardware using a single coaxial cable. The body and optical components can be easily hand assembled using only forceps and a torx T2 driver. Optical filters are slid in from the side of the scope and held in place with a filter cover plate. The excitation half sphere lens sits in a spherical cutout and held in place by pressure from the LED PCB (optical glue is optional). The achromatic lens is slid through the top emission hole and either press fit into place or optical glued.&lt;br /&gt;
&lt;br /&gt;
Adjustment of focal plane is achieved through adjusting the distance between the CMOS imaging sensor and other optical elements. The CMOS imaging sensor is mounted onto a sliding focusing mechanism which is moved by hand and locked in place with a 00-80 setscrew. Roughly speaking, movement of about 5mm of the CMOS imaging sensor results in a focal plane change of ~150um.&lt;br /&gt;
&lt;br /&gt;
[[File:MiniscopeCalibrationSlide.png|thumb|left|300px|Image of a calibration slide with 9.8μm line spacing (superimposed red boxes are 10px x 10px)]] &lt;br /&gt;
The scope attaches to the head of the animal with the use of a small aluminum baseplate. The baseplate and scope have a matching set of 3 rare-earth magnets which helps with mounting the scope on an awake animal. Once the scope is in place a 00-80 set screw is used to fix it in place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Optical Path ==&lt;br /&gt;
[[File:MiniscopeOpticalPath.png|thumb|300px|Cross section of scope. Excitation path is in blue. Emission path is in green.]]&lt;br /&gt;
The optical path of the miniature microscope is very similar to a tabletop wide-field fluorescence microscope. The main difference is the size of the optical elements and the use of a GRIN lens as an objective. A more detailed discussion on GRIN lenses can be found [[GRIN Lens Information|here]].&lt;br /&gt;
&lt;br /&gt;
The optics in the miniscope use off the shelf lenses and diced commercial filters. Excitation light generated by an LED passes through a half-ball lens to help collimate the light&lt;br /&gt;
which is then bandpassed through an excitation filter and reflected using a dichroic mirror. &lt;br /&gt;
&lt;br /&gt;
Emission light exits the objective GRIN lens in roughly a parallel orientation, passes through the dichroic mirror and then bandpassed through an emission filter. The light is then focused onto the CMOS imaging sensor using an achromatic lens.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Machined Delrin Housing ==&lt;br /&gt;
The housing of the miniature microscope is machined out of plastic (we suggest using Delrin) and consists of a main body, filter set holder, and focusing slider. &lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aluminum Baseplate ==&lt;br /&gt;
The baseplate is cemented to the animal's skull and provides the interface for temporarily connecting the miniature microscope to the animal. Three pairs of magnets on the baseplate and bottom of the microscope help snap the microscope in place and aid in placement when working with awake, freely moving animals. Once the microscope is placed in the baseplate, a 00-80 setscrew locks the scope in place. The setscrew applies a force along both sides of the scope making the mount very stable.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CMOS Imaging Sensor PCB ==&lt;br /&gt;
[[File:CMOSPCB_1.png|thumb|300px|PCB layout of the CMOS imaging sensor PCB. The PCB is 13mm wide and should be printed on a 0.031&amp;quot; circuit board.]]&lt;br /&gt;
The CMOS imaging sensor PCB holds all the electronics needed to power and control the CMOS imaging sensor and excitation LED. A list of circuit features and components are listed below&lt;br /&gt;
*Power over coax filter to separate data/control stream from DC power.&lt;br /&gt;
*3.3V and 1.8V power regulators.&lt;br /&gt;
*Red LED shows board is powered properly and can be used for animal tracking.&lt;br /&gt;
*Serializer interfaces with imaging sensor and packages data to be sent over coax.&lt;br /&gt;
*A Digital to Analog Converter (DAC) and constant current source are used to control and power the excitation LED.&lt;br /&gt;
&lt;br /&gt;
[[File:CMOSSchematic.png|thumb|left|500px|Schematic of CMOS imaging sensor PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Coaxial Cabling ==&lt;br /&gt;
[[File:CoaxFPDLink.png|thumb|300px]]&lt;br /&gt;
The head mounted scope is connected to the DAQ hardware through a single, lightweight coaxial (coax) cable.&lt;br /&gt;
&lt;br /&gt;
'''50Ω Coaxial Cable Features'''&lt;br /&gt;
*Power over coax + control signals + data + GPO&lt;br /&gt;
*Down to 0.3mm diameter&lt;br /&gt;
*Up to 15m long&lt;br /&gt;
*Commutator compatible&lt;br /&gt;
*Addition 4 lines of GPO&lt;br /&gt;
*Supports 12bit pixel data&lt;br /&gt;
*Up to 1.4Gbps&lt;br /&gt;
&lt;br /&gt;
== Excitation LED PCB ==&lt;br /&gt;
The excitation LED PCB is a simple 2 sided PCB with solder pads for a Luxeon SMD LED (P/N LXML-PB01-0030) and wires to power the LED. The PCB acts as a small heat sink and has a 1mm mounting hold for attaching it to the miniscope body. The LED is powered by a constant current source on the CMOS imaging sensor PCB and controlled through an 8bit DAC. We generally run this LED at only a few percent of it maximum power (3mA to 10mA current).&lt;br /&gt;
[[File:LEDPCB.png|thumb|300px|Top and bottom of the LED PCB. The PCB is 7mm tall and should be printed on 0.031&amp;quot; thick circuit boards.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Mass of Head Mounted Scope Components ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Component&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Mass (g)&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Quantity per Scope&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Total Mass&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
! Main Body&lt;br /&gt;
| 0.51&lt;br /&gt;
| 1&lt;br /&gt;
| 0.51&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! Focusing Slider&lt;br /&gt;
| 0.48&lt;br /&gt;
| 0.8 to 1&lt;br /&gt;
| 0.38 to 0.28&lt;br /&gt;
| Bottom portion can be cut off to reduce weight.&lt;br /&gt;
|-&lt;br /&gt;
! Filter Cover&lt;br /&gt;
| 0.11&lt;br /&gt;
| 1&lt;br /&gt;
| 0.11&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! Screw (3mm long 1mm diameter)&lt;br /&gt;
| 0.025&lt;br /&gt;
| 3 to 7&lt;br /&gt;
| 0.075 to 0.175&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! Magnet&lt;br /&gt;
| 0.012&lt;br /&gt;
| 3&lt;br /&gt;
| 0.036&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! Optical Filter Set (per 1mm x 1mm x 1mm of glass)&lt;br /&gt;
| 0.0017 &lt;br /&gt;
| 54&lt;br /&gt;
| 0.09&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! Achromatic Lens (5mm Diameter)&lt;br /&gt;
| 0.15&lt;br /&gt;
| 1&lt;br /&gt;
| 0.15&lt;br /&gt;
| Varies slightly with different focal lengths&lt;br /&gt;
|-&lt;br /&gt;
! Half Ball Lens&lt;br /&gt;
| 0.02&lt;br /&gt;
| 1&lt;br /&gt;
| 0.02&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! LED PCB (without LED SMD)&lt;br /&gt;
| 0.07&lt;br /&gt;
| 1&lt;br /&gt;
| 0.07&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! LED SMD + Wires&lt;br /&gt;
| 0.05&lt;br /&gt;
| 1&lt;br /&gt;
| 0.05&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! CMOS PCB (excluding CMOS sensor)&lt;br /&gt;
| 0.85&lt;br /&gt;
| 1&lt;br /&gt;
| 0.85&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! CMOS Imaging Sensor&lt;br /&gt;
| 0.76&lt;br /&gt;
| 1&lt;br /&gt;
| 0.76&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
*Total scope mass between 3g and 3.3g.&lt;br /&gt;
*Around 0.6g of the CMOS PCB comes from the circuitry and components needed to support power and data over a single coaxial cable. In our experience a very light, flexible cable is well worth the trade off of having the scope be 0.6g lighter.&lt;br /&gt;
*It is feasible to drop the scope's mass to under 3g with a little bit of work. It could be dropped closer to 2g if the bare die of CMOS imaging sensor was directly wire bonded to the PCB.&lt;/div&gt;</summary>
		<author><name>Marshallshuler</name></author>	</entry>

	</feed>