<?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=DAharoni</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=DAharoni"/>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php/Special:Contributions/DAharoni"/>
		<updated>2026-04-05T19:21:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=5121</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=5121"/>
				<updated>2026-02-02T16:29:05Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: Reverted edits by Valadares61 (talk) to last revision by DAharoni&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, [[Miniscope V4]]. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/xUf7HHiazEI|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;01/31/2020&lt;br /&gt;
:Added Miniscope V4 information, tutorials, design files, and source code&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Online_Workshop&amp;diff=1953</id>
		<title>Online Workshop</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Online_Workshop&amp;diff=1953"/>
				<updated>2021-12-10T17:29:16Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will contain videos of everything presented at our in-person workshops (Will be updated shortly).&lt;br /&gt;
&lt;br /&gt;
== 2021 Virtual Miniscope Workshop hosted by MetaCell ==&lt;br /&gt;
&lt;br /&gt;
'''This is the most up-to-date workshop material for the Miniscope Project. It covers Miniscope design, surgery, animal behavior, analysis, and future directions. The link below will take you to the virtual workshop page which contains videos of all talks from the workshop.'''&lt;br /&gt;
&lt;br /&gt;
[https://sites.google.com/metacell.us/miniscope-workshop-2021 2021 Virtual Miniscope Workshop]&lt;br /&gt;
&lt;br /&gt;
== MCCS Miniscope Workshop 2018 ==&lt;br /&gt;
&lt;br /&gt;
The link below takes you to the slides and talks presented at our previous MCCS Miniscope Workshop. This is likely the best place to start when learning about the UCLA Miniscope project.&lt;br /&gt;
&lt;br /&gt;
[https://vimeopro.com/user16212450/mini-scope-workshop-11-01-2018/video/300830371 MCCS Miniscope Workshop 2018 Recording]&lt;br /&gt;
&lt;br /&gt;
== Imaging Principles and Microscope Design ==&lt;br /&gt;
[https://drive.google.com/open?id=0B1RSzZP5s3hhQ2RKQXpBcThVUVk Powerpoint - Imaging Principles and Microscope Design]&lt;br /&gt;
&lt;br /&gt;
== Surgery Procedure and Baseplating ==&lt;br /&gt;
[https://drive.google.com/open?id=1SluR4GEHCjsx5AgHavIukomudr8-3f6W Powerpoint - Surgery and Baseplating Presentation]&lt;br /&gt;
&lt;br /&gt;
== Image Processing and Analysis==&lt;br /&gt;
[https://ucla.box.com/s/qd4aikyy1tk3iciqgfx73urr6dcc45mv Sample Imaging Data]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/open?id=0B1RSzZP5s3hhcFVhRm9QVW5fUHM Powerpoint - Image Processing and Analysis]&lt;br /&gt;
&lt;br /&gt;
== Hands-on Workstations ==&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/0B4EiRp6ZxCg3WHVNU1VVd3lsZWc/view?usp=sharing Worksheet - Soldering]&lt;br /&gt;
&lt;br /&gt;
=== Soldering Coaxial Cable to CMOS Imaging Sensor PCB ===&lt;br /&gt;
{{#ev:youtube|https://youtu.be/aXzErQn3U7g|640|center}}&lt;br /&gt;
&lt;br /&gt;
=== Soldering SMA Connector to Coaxial Cable ===&lt;br /&gt;
{{#ev:youtube|https://youtu.be/Jrn2oWERPpw|640|center}}&lt;br /&gt;
&lt;br /&gt;
=== Soldering Male SMA Connector/Cable to DAQ PCB v2.01 ===&lt;br /&gt;
This connector will be changed to a through-hole SMA connector in a future version of the DAQ PCB. For version 2.01 DAQ PCBs follow the steps shown in the video below.&lt;br /&gt;
{{#ev:youtube|https://youtu.be/-BMkPaSKkk8|640|center}}&lt;br /&gt;
&lt;br /&gt;
=== Soldering LED onto LED PCB ===&lt;br /&gt;
{{#ev:youtube|8KWx6qv82ts|640|center}}&lt;br /&gt;
&lt;br /&gt;
=== Soldering LED wires to PCBs ===&lt;br /&gt;
{{#ev:youtube|https://youtu.be/AWg9-qTKF1Y|640|center}}&lt;br /&gt;
&lt;br /&gt;
=== Assembly of Miniscopes ===&lt;br /&gt;
[https://docs.google.com/document/d/1fnVXbNp4Gjp_bCMBMAxIDmJZz87G7ROGn2iPIN19Vms/edit?usp=sharing Worksheet - Head Mounted Scope Assembly]&lt;br /&gt;
&lt;br /&gt;
=== Image Acquisition and Lens Testing ===&lt;br /&gt;
[[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
&lt;br /&gt;
=== In Vivo Imaging and Behavior===&lt;br /&gt;
[https://docs.google.com/document/d/16PqPmxzj13-gSA0zPrVQqxB51RxaBzTs3DFlo_rBX6w/edit?usp=sharing Worksheet - In Vivo Imaging and Behavior Tips]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1952</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1952"/>
				<updated>2021-08-12T22:00:03Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Current Status of Project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, [[Miniscope V4]]. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/xUf7HHiazEI|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;01/31/2020&lt;br /&gt;
:Added Miniscope V4 information, tutorials, design files, and source code&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1946</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1946"/>
				<updated>2020-02-19T18:14:02Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Update Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, [[Miniscope V4]]. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;01/31/2020&lt;br /&gt;
:Added Miniscope V4 information, tutorials, design files, and source code&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1945</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1945"/>
				<updated>2020-01-31T06:43:15Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;br /&gt;
&lt;br /&gt;
[[File:V4.png|center|600px]]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1944</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1944"/>
				<updated>2020-01-31T06:42:37Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:V4.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1943</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1943"/>
				<updated>2020-01-31T06:42:02Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
[[File:V4.png|center|600px]]&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1942</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1942"/>
				<updated>2020-01-31T06:41:44Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
[[File:V4.png|center|900px]]&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=File:V4.png&amp;diff=1941</id>
		<title>File:V4.png</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=File:V4.png&amp;diff=1941"/>
				<updated>2020-01-31T06:40:38Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1940</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1940"/>
				<updated>2020-01-31T06:40:27Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
[[File:V4.png]]&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1939</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1939"/>
				<updated>2020-01-31T05:14:07Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1938</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1938"/>
				<updated>2020-01-31T05:13:11Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, [[Miniscope V4]]. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=MediaWiki:Sidebar&amp;diff=1937</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=MediaWiki:Sidebar&amp;diff=1937"/>
				<updated>2020-01-31T05:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
* navigation&lt;br /&gt;
** Main Page|Home&lt;br /&gt;
** Miniscope V4|Miniscope V4 Wikis&lt;br /&gt;
** Data Acquisition Software|Software&lt;br /&gt;
** Surgery Protocol|Surgery&lt;br /&gt;
** Guides and Tutorials| V3 Guides &amp;amp; Tutorials&lt;br /&gt;
** Online Workshop|Workshop Resource&lt;br /&gt;
** https://groups.google.com/d/forum/miniscope|Discussion Board&lt;br /&gt;
** Member Pages|Member Pages&lt;br /&gt;
** FAQs|FAQs&lt;br /&gt;
** Files for Download| V3 Downloads&lt;br /&gt;
** https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit#gid=775554702| V3 Master Parts List&lt;br /&gt;
** Contributors|Contributors&lt;br /&gt;
** Other Open Source Projects|Additional Open Source Resources&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1936</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1936"/>
				<updated>2020-01-31T05:10:38Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
'''[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki) Miniscope DAQ Software Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki) Miniscope DAQ Firmware Wiki]'''&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1935</id>
		<title>Miniscope V4</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Miniscope_V4&amp;diff=1935"/>
				<updated>2020-01-31T05:10:21Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: Created page with &amp;quot;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:  [https://github....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have moved our documentation, guides, and tutorials to Github. Below are links to everything you need to know to get up and running with the V4 Miniscope:&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-v4/wiki Miniscope V4 Wiki]&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-QT-Software/wiki) Miniscope DAQ Software Wiki]&lt;br /&gt;
[https://github.com/Aharoni-Lab/Miniscope-DAQ-Cypress-firmware/wiki) Miniscope DAQ Firmware Wiki]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1934</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1934"/>
				<updated>2020-01-28T16:42:34Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Major new Miniscope components that need to be ordered */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General information, notes, and troubleshooting ===&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
The Open Ephys Production Site (OEPS) is now stocking and has available to order all the components needed to convert a wired Miniscope into a Wire-Free Miniscope. They carry the individual components listed below as well as a fully programmed and tested Wire-Free Miniscope Modification Kit. '''For more information and to get a quote or submit an order, visit their [https://open-ephys.org/miniscope-v3-wirefree Wire-Free Miniscope Web Store].''' You can also follow the information below to order components through other venders.&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt;, [https://open-ephys.org/miniscope-v3-wirefree/wire-free-v3-focus-slider ordered through OEPS] or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. &lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:FS_mod.png|thumb|right|300px|Rendering of cut out of focus slider to avoid hitting resistors on PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from [https://open-ephys.org/miniscope-v3-wirefree OEPS's Wire-Free page].''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in an untethered animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5 second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1933</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1933"/>
				<updated>2020-01-28T16:40:40Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Tutorial on setting up a new wire-free Miniscope */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General information, notes, and troubleshooting ===&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
The Open Ephys Production Site (OEPS) is now stocking and has available to order all the components needed to convert a wired Miniscope into a Wire-Free Miniscope. They carry the individual components listed below as well as a fully programmed and tested Wire-Free Miniscope Modification Kit. '''For more information and to get a quote or submit an order, visit their [https://open-ephys.org/miniscope-v3-wirefree Wire-Free Miniscope Web Store].''' You can also follow the information below to order components through other venders.&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. &lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:FS_mod.png|thumb|right|300px|Rendering of cut out of focus slider to avoid hitting resistors on PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in an untethered animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5 second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1932</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1932"/>
				<updated>2020-01-20T18:31:27Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Current Status of Project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1931</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1931"/>
				<updated>2020-01-20T18:30:18Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1930</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1930"/>
				<updated>2020-01-20T18:29:48Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&amp;lt;div style='text-align: center;'&amp;gt;&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1929</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1929"/>
				<updated>2020-01-20T18:28:15Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Guides and Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials for the current, Version 4, Miniscope platform:&lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Past guides and tutorials can be found here:&lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Information_on_the_(previous_Version_3)_Miniscope_platform&amp;diff=1928</id>
		<title>Information on the (previous Version 3) Miniscope platform</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Information_on_the_(previous_Version_3)_Miniscope_platform&amp;diff=1928"/>
				<updated>2020-01-20T18:27:01Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
Guides and tutorials:&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=File:Miniscopev4_render.png&amp;diff=1927</id>
		<title>File:Miniscopev4 render.png</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=File:Miniscopev4_render.png&amp;diff=1927"/>
				<updated>2020-01-20T18:25:03Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1926</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1926"/>
				<updated>2020-01-20T18:24:44Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.png|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1925</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1925"/>
				<updated>2020-01-20T18:22:07Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev4_render.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1924</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1924"/>
				<updated>2020-01-20T18:21:10Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Links to information on Miniscope subsystems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
Information on the newest generation of the UCLA Miniscope platform can be found here: &lt;br /&gt;
:[[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: &lt;br /&gt;
:[[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
Information on the past Miniscope platforms(s) can be found here: &lt;br /&gt;
:[[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Information_on_the_Version_3_Wire-free_Miniscope_platform&amp;diff=1923</id>
		<title>Information on the Version 3 Wire-free Miniscope platform</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Information_on_the_Version_3_Wire-free_Miniscope_platform&amp;diff=1923"/>
				<updated>2020-01-20T18:20:28Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: Created page with &amp;quot;:Wire-free Miniscope&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:[[Wire-free Miniscope]]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1922</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1922"/>
				<updated>2020-01-20T18:20:19Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Links to information on Miniscope subsystems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
:Information on the newest generation of the UCLA Miniscope platform can be found here: [[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
:Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: [[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
:Information on the past Miniscope platforms(s) can be found here: [[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Information_on_the_(previous_Version_3)_Miniscope_platform&amp;diff=1921</id>
		<title>Information on the (previous Version 3) Miniscope platform</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Information_on_the_(previous_Version_3)_Miniscope_platform&amp;diff=1921"/>
				<updated>2020-01-20T18:20:01Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: Created page with &amp;quot;:Head Mounted Scope  :Data Acquisition Box  :Data Acquisition Software  :[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1920</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1920"/>
				<updated>2020-01-20T18:19:49Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* &amp;gt;1mm diameter field of view&lt;br /&gt;
* ~1mm working distance&lt;br /&gt;
* +/-200um electronic focal adjustment&lt;br /&gt;
* All achromatic optics&lt;br /&gt;
* 2.6 grams&lt;br /&gt;
* 22mm tall&lt;br /&gt;
* Absolute head orientation sensor&lt;br /&gt;
* Requires ~1/5th the excitation power of previous systems&lt;br /&gt;
* No more soldering!&lt;br /&gt;
* Still uses only a single coaxial cable (down to 0.3mm in diameter) for power, communication, and data.&lt;br /&gt;
* New DAQ software&lt;br /&gt;
&lt;br /&gt;
This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring no soldering and simple hands-on assembly. The Miniscope project and Miniscope.org are on going projects and will be routinely updated over the coming months and years.&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and in its third major revision. Miniscope developers have used Miniscopes to understand  [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html how the brain links memories across time in Nature, 2016] and how [https://www.nature.com/articles/s41593-019-0559-0 spatial coding breaks down in epilepsy in Nature Neuroscience, 2019]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. We encourage Miniscope users to contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on Miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
:Information on the newest generation of the UCLA Miniscope platform can be found here: [[Miniscope V4]]&lt;br /&gt;
&lt;br /&gt;
:Our currently release Wire-Free Miniscope (based on the Version 3 Miniscope platform can be found here: [[Information on the Version 3 Wire-free Miniscope platform]]&lt;br /&gt;
:Information on the past Miniscope platforms(s) can be found here: [[Information on the (previous Version 3) Miniscope platform]]&lt;br /&gt;
&lt;br /&gt;
Additional information relating to Miniscope imaging can be found below:&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1919</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1919"/>
				<updated>2020-01-20T18:02:12Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
* one&lt;br /&gt;
* two&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1918</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1918"/>
				<updated>2020-01-20T17:59:41Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional, creative people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation, open-source Miniscope platform, Miniscope V4. This new system is a substantial leap forward over previous designs and will serve as the base Miniscope platform for years to come. An overview of new features can be found below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1917</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1917"/>
				<updated>2020-01-20T17:54:42Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
We are happy to announce the release of our next generation Miniscope platform, Miniscope V4.&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1916</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1916"/>
				<updated>2020-01-20T17:07:45Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Current Status of Project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its 6th year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=File:FS_mod.png&amp;diff=1906</id>
		<title>File:FS mod.png</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=File:FS_mod.png&amp;diff=1906"/>
				<updated>2019-05-23T19:16:38Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1905</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1905"/>
				<updated>2019-05-23T19:16:30Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Major new Miniscope components that need to be ordered */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General information, notes, and troubleshooting ===&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. &lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:FS_mod.png|thumb|right|300px|Rendering of cut out of focus slider to avoid hitting resistors on PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in an untethered animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5 second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1904</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1904"/>
				<updated>2019-05-21T16:02:13Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Update Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its third year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
:Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1903</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1903"/>
				<updated>2019-05-21T16:02:02Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Update Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its third year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;05/21/2019&lt;br /&gt;
;Added [[Wire-free Miniscope]] tutorials, design files, and source code&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1902</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1902"/>
				<updated>2019-05-21T15:59:21Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Links to information on miniscope subsystems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its third year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Wire-free Miniscope]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1899</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1899"/>
				<updated>2019-05-21T03:13:27Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General information, notes, and troubleshooting ===&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1898</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1898"/>
				<updated>2019-05-21T03:12:59Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Generally information, notes, and troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== General information, notes, and troubleshooting ===&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1897</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1897"/>
				<updated>2019-05-21T03:12:40Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Generally information, notes, and troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* '''All design files, source code, firmware, and software can be found [https://github.com/daharoni/wire-free-miniscope here].'''&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1896</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1896"/>
				<updated>2019-05-21T03:03:03Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[File:wire-free-header.png|center|600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* All design files, source code, firmware, and software can be found [https://github.com/Aharoni-Lab/Documentation-Internal/tree/master/Projects/Wire-Free-Miniscope here].&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1895</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1895"/>
				<updated>2019-05-21T03:02:50Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[File:wire-free-header.png||600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* All design files, source code, firmware, and software can be found [https://github.com/Aharoni-Lab/Documentation-Internal/tree/master/Projects/Wire-Free-Miniscope here].&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=File:Wire-free-header.png&amp;diff=1894</id>
		<title>File:Wire-free-header.png</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=File:Wire-free-header.png&amp;diff=1894"/>
				<updated>2019-05-21T03:02:31Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1893</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1893"/>
				<updated>2019-05-21T03:02:21Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:wire-free-header.png||600px|Wire-Free Miniscope Project.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* All design files, source code, firmware, and software can be found [https://github.com/Aharoni-Lab/Documentation-Internal/tree/master/Projects/Wire-Free-Miniscope here].&lt;br /&gt;
* The wire-free Miniscope optics are very similar to the v3 Miniscope. You can use the same Miniscope body, cover, baseplates, and magnets. The two systems are completely interchangeable on the animal.&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an microSD card is detected by the on board microcontroller. The microcontroller checks specific memory locations in the microSD card to load the configuration. Configurations are initially uploaded onto the microSD card using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and a microSD card has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the microSD card are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. These 45mAH batteries from Powerstream are cheap, easy and work well.  They reliably give just over 20 minutes of recording time. We have also used batteries from [https://www.wyon.ch/en/home.html Wyon]. These batteries are significantly lighter and give longer recording times, but are more expensive and in the past we have had to wait several months to get them. We have had success with their W102 batteries, and are still looking to test their W101 batteries (a bit smaller and lighter).&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB (see below).&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=MediaWiki:Sidebar&amp;diff=1887</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=MediaWiki:Sidebar&amp;diff=1887"/>
				<updated>2019-05-21T02:07:30Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
* navigation&lt;br /&gt;
** Main Page|Home&lt;br /&gt;
** Overview of System Components|Overview &amp;amp; Hardware&lt;br /&gt;
** Data Acquisition Software|Software&lt;br /&gt;
** Surgery Protocol|Surgery&lt;br /&gt;
** Guides and Tutorials|Guides &amp;amp; Tutorials&lt;br /&gt;
** Online Workshop|Workshop Resource&lt;br /&gt;
** https://groups.google.com/d/forum/miniscope|Discussion Board&lt;br /&gt;
** Member Pages|Member Pages&lt;br /&gt;
** FAQs|FAQs&lt;br /&gt;
** Files for Download|Downloads&lt;br /&gt;
** https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit#gid=775554702|Master Parts List&lt;br /&gt;
** Contributors|Contributors&lt;br /&gt;
** Other Open Source Projects|Additional Open Source Resources&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1886</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Main_Page&amp;diff=1886"/>
				<updated>2019-05-21T02:06:21Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Discussion Board and FAQ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
   '''Quick Announcement:''' We are excited to announce we have multiple Postdoc/Engineering/Researcher positions open within the Miniscope project! Looking for exceptional people interested in instrumentation/tool/software development and who can effectively communicate in both the fields of engineering and neuroscience. A job listing for one of the open positions can be found [https://www.nature.com/naturejobs/science/jobs/654273-postdoctoral-fellow-engineer here]. If interested please contact Daniel Aharoni, DBAharoni_at_gmail.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:miniscopev2.JPG|thumb|300px]]&lt;br /&gt;
&lt;br /&gt;
'''Welcome to Miniscope.org Wiki! Follow the project on Twitter: [https://twitter.com/MiniscopeTeam @MiniscopeTeam].'''&lt;br /&gt;
&lt;br /&gt;
The miniature fluorescence microscope described here is based on a design pioneered by Mark Schnitzer's Lab at Stanford  and  published in a [http://www.nature.com/nmeth/journal/v8/n10/full/nmeth.1694.html paper in Nature Methods in 2011]. It uses wide-field fluorescence imaging to record neural activity in awake, freely moving mice. The microscope introduced here (Miniscope) has a mass of 3 grams and uses a single, flexible coaxial cable (0.3mm to 1.5mm diameter) to carry power, control signals, and imaging data to custom open source Data Acquisition (DAQ) hardware and software. This wiki site provides a centralized location for sharing design files, source code, and other relevant information so that a community of users can share ideas and developments related to this important imaging technique. Our goal is to help disseminate this technology to the larger neuroscience community and build a foundation of users that will continue advancing this technology and contribute back to the project. While the Miniscope system described here is not an off-the-shelf commercial solution, we have focused on making it as easy as possible for the average neuroscience lab to build and modify, requiring minimal soldering and hands on assembly. For more information please visit the [[Overview of System Components|Project Overview]] page. The Miniscope project and Miniscope.org are still works in progress and will be routinely updated over the coming months and years. We hope you will contribute to this important process!&lt;br /&gt;
&lt;br /&gt;
== Current Status of Project ==&lt;br /&gt;
The Miniscope project is now in its third year of development at UCLA and has gone through two major revisions. Miniscopes were used to understand how the brain links memories across time, with the findings published in [http://www.nature.com/nature/journal/v534/n7605/full/nature17955.html Nature, 2016]. The work and files available on this site are the most up-to-date public version of our system and will be updated frequently with improvements and new system features. Again, we hope that you will contribute to this development process! This wiki is designed for this very purpose.&lt;br /&gt;
&lt;br /&gt;
Initial access to the miniscope.org wiki was enabled mid January, 2016.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Using this system we have successfully imaged Hippocampal CA1, Subiculum, Dorsal Striatum, Parietal Cortex, Prefrontal Cortex, and Visual Cortex using 0.5mm, 1mm, 1.8mm, and 2mm diameter GRIN lenses from either Grintech or GoFoton. (More information on GRIN lenses can be found [[GRIN Lens Information|here]]).&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/IEoXGuoc_pU|640|center}}&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://youtu.be/DCxTaPUPjN8|640|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Links to information on miniscope subsystems ==&lt;br /&gt;
[[File:Overview_System.png|thumb|600px]]&lt;br /&gt;
:[[Head Mounted Scope]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Box]]&lt;br /&gt;
&lt;br /&gt;
:[[Data Acquisition Software]]&lt;br /&gt;
&lt;br /&gt;
:[[Surgery Protocol]]&lt;br /&gt;
&lt;br /&gt;
:[https://docs.google.com/spreadsheets/d/12H71DU2QX8d7efUE4yNuikBEiIzKaXjYqdc0A-oLNSw/edit?usp=sharing Master Parts List]&lt;br /&gt;
&lt;br /&gt;
:[[Analysis Package]]&lt;br /&gt;
&lt;br /&gt;
:[[GRIN Lens Information]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion Board and FAQ ==&lt;br /&gt;
:[https://groups.google.com/d/forum/miniscope Google Group and current Discussion Board]. Please post all new questions and discussions here!&lt;br /&gt;
:(Our previous discussion boards can be found [http://miniscope.org/board here] and [[Special:WikiForum|here.]]. Please do not post to these)&lt;br /&gt;
:[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Tutorials==&lt;br /&gt;
A key feature of this effort is to design miniscope systems that are easy to build and use. The guides below will walk you through component procurement, scope assembly, and software installation.&lt;br /&gt;
&lt;br /&gt;
# [[Overview of System Components]]&lt;br /&gt;
# [[Part Procurement]]&lt;br /&gt;
# [[System Assembly]]&lt;br /&gt;
# [[Recommended Computer Specs]]&lt;br /&gt;
# [[Software and Firmware Setup]]&lt;br /&gt;
# [[Initial Testing of Assembled Miniscopes]]&lt;br /&gt;
# [[Imaging With Thin GRIN Lenses]]&lt;br /&gt;
# [[Surgery Protocol]]&lt;br /&gt;
# [[Animal Behavior Guide]]&lt;br /&gt;
&lt;br /&gt;
== Workshop Resource ==&lt;br /&gt;
We will be holding a pre-SfN workshop November 9th, 2017. For more information visit our [http://www.iclm.ucla.edu/page/MiniscopeWorkshopMCCS-ICLM.html MCCS/ICLM Workshop Page].&lt;br /&gt;
&lt;br /&gt;
The Golshani, Silva, and Khakh labs will be hosting free, two-day long Miniscope workshops here at UCLA. We are currently planning at least 3 workshops for 2018. Please enter your information [https://goo.gl/forms/YXt8HeLpoeX2fVWz2 here] to request a spot in upcoming workshops.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px mode=&amp;quot;packed&amp;quot;&amp;gt;&lt;br /&gt;
Image:Workshop_Jan2016.jpg|January 2016 Workshop&lt;br /&gt;
Image:Workshop_Mar2016.jpg|March 2016 Workshop&lt;br /&gt;
Image:Workshop_April2016.JPG|April 2016 Workshop&lt;br /&gt;
Image:UCLA_Worshop_June.JPG|UCLA Workshop, June 2016&lt;br /&gt;
Image:MCCS_Workshop_Nov2016.JPG|MCCS Miniscope Workshop, November 2016&lt;br /&gt;
Image:Workshop_April2017.jpg|April 2017 Workshop&lt;br /&gt;
Image:Germany_Workshop.jpg|Munich, Germany Workshop, August 2017&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you cannot attend one of our workshops, presentations, data files, and workshop videos can be found on our [[Online Workshop]] page.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Miniscope Community Member Pages ==&lt;br /&gt;
:[[Member Pages]]&lt;br /&gt;
&lt;br /&gt;
== Update Log ==&lt;br /&gt;
;11/29/2018&lt;br /&gt;
:Updated GoFoton GRIN lens information&lt;br /&gt;
;06/21/2018&lt;br /&gt;
:Added link and information to MIN1PIPE analysis package on the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;05/24/2018&lt;br /&gt;
:Updated the [[Analysis Package]] page and [[Other_Open_Source_Projects]] page&lt;br /&gt;
;04/14/2018&lt;br /&gt;
:Updated the Master Parts List for more up-to-date information and comments&lt;br /&gt;
;01/27/2018&lt;br /&gt;
:Added [[Miniscope Gripper]] by Bastijn van den Boom at NIN&lt;br /&gt;
;11/6/2017&lt;br /&gt;
:Added [[Miniscope Baseplate and Protective Cone for Rats]] by Bastijn van den Boom at NIN&lt;br /&gt;
;5/2/2017&lt;br /&gt;
:Updated 'Additional Open Source Resources' to include CNMF-E from the Paninski Lab and an open source miniature microscope from the Gardner Lab.&lt;br /&gt;
;2/01/2017&lt;br /&gt;
:Added additional assembly and surgery tutorial videos.&lt;br /&gt;
;11/29/2016&lt;br /&gt;
:Added a link on the front page to request a spot in upcoming Miniscope workshops.&lt;br /&gt;
;10/28/2016&lt;br /&gt;
:Added version 3.2 of the DAQ PCB to the GitHub repository.&lt;br /&gt;
;07/28/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/1eXogU7JdeuhMHnVIJBHvCVjgZ6e9KnxPGWvJEBK-eyw/edit?usp=sharing here].&lt;br /&gt;
;07/21/2016&lt;br /&gt;
:Fixed bug that would crash the Miniscope DAQ software when using the 'Trigger Ext' option. This option is now fully functional and allows one to remotely trigger the Miniscope to record using a LVTTL or TTL high signal.&lt;br /&gt;
;04/20/2016&lt;br /&gt;
:Added [[Initial Testing of Assembled Miniscopes]] which outlines the process of testing new Miniscope systems.&lt;br /&gt;
;04/16/2016&lt;br /&gt;
:Added [[Imaging With Thin GRIN Lenses]] describing how to use Miniscopes to image with GRIN lenses 1mm diameter and thinner.&lt;br /&gt;
;04/12/2016&lt;br /&gt;
:Added a new group PCB order signup sheet [https://docs.google.com/spreadsheets/d/10_WgeJhZptxXbO2iEl93GyYGTDoEPvbrUjbIsegxpiI/edit?usp=sharing here].&lt;br /&gt;
;04/13/2016&lt;br /&gt;
:Updated the [https://github.com/daharoni/Miniscope_CMOS_Imaging_Sensor_PCB GitHub repository] to include the newer version of the CMOS Imaging Sensor PCB (v3.2).&lt;br /&gt;
;03/25/2016&lt;br /&gt;
:Updated the [https://drive.google.com/file/d/0ByUbjrn9MxK0TWdxUVVjakF3cDQ/view?usp=sharing| Surgery and Baseplating Presentation] link.&lt;br /&gt;
:Updated the [[Recommended Computer Specs]] page... Apparently a MacBook Pro running Windows 8 doesn't always agree with the Miniscope system. &lt;br /&gt;
;03/18/2016&lt;br /&gt;
:Added the DAQ housing design files to our GitHub repository. &lt;br /&gt;
;03/16/2016&lt;br /&gt;
:Added a [[Member Pages]] page for sharing miniscope.org member created pages.&lt;br /&gt;
;02/24/2016&lt;br /&gt;
:Added a set of example Miniscope data to the [[Online Workshop|Workshop Resources]] page. &lt;br /&gt;
;02/17/2016&lt;br /&gt;
:Added a new way to connectorize the coaxial cable. This update includes a new PCB design on the [https://github.com/daharoni/Miniscope_Coax_2_SMA_PCB GitHub repository] as well as an assembly video on the [[System Assembly]] page.&lt;br /&gt;
;02/10/2016&lt;br /&gt;
:Started adding videos to the [[Online Workshop|Workshop Resource]] and [[System Assembly]] page&lt;br /&gt;
;02/05/2016&lt;br /&gt;
:Updated the DAQ Software and Firmware to support FPS adjustment. The source code and compiled files can be found on our GitHub repository.&lt;br /&gt;
;02/03/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
;01/28/2016&lt;br /&gt;
:Added PCB price quotes to reference when ordering PCB fabrication and assembly through Sierra Circuits. They can be found on the [[Part Procurement]] page.&lt;br /&gt;
;01/27/2016&lt;br /&gt;
:'''IMPORTANT''': Updated CMOS Imaging Sensor PCB Fabrication file to newest version&lt;br /&gt;
;01/20/2016&lt;br /&gt;
:Updated Surgery Tools on Miniscope Master Parts List&lt;br /&gt;
:Added GRIN lens specifications on [[GRIN Lens Information]] page&lt;br /&gt;
:Updated the PCB Assembly documents on Github will a more detailed description of SMD LED orientation&lt;br /&gt;
:Slight modification to the Baseplate 3D model on Github&lt;br /&gt;
;01/14/2016&lt;br /&gt;
:Comments added to segmentation functions&lt;br /&gt;
:Added through-hole components for DAQ PCB on Master Parts List&lt;br /&gt;
:Added additional soldering tools on Master Parts List&lt;br /&gt;
;01/13/2016&lt;br /&gt;
:Added basic surgery outline&lt;br /&gt;
:Added a picture guide for scope and Baseplate assembly&lt;br /&gt;
;01/12/2016&lt;br /&gt;
:Finalizing of Miniscope Master Parts List&lt;br /&gt;
;01/10/2016&lt;br /&gt;
:Upload of current version of all files and documents to Github&lt;br /&gt;
;01/09/2016&lt;br /&gt;
:Added guide to programming firmware to DAQ PCB&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1885</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1885"/>
				<updated>2019-05-21T01:46:26Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Tutorial on setting up a new wire-free Miniscope */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* All design files, source code, firmware, and software can be found[https://github.com/Aharoni-Lab/Documentation-Internal/tree/master/Projects/Wire-Free-Miniscope here].&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an sdCard is detected by the on board microcontroller. The microcontroller checks specific memory locations in the sdCard to load the configuration. Configurations are initially uploaded onto the sdCard using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and an sdCard has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the sdCard are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. '''''You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;.''''' Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. The 45mAH batteries seemed to work best and give us about 20 minutes of recording time. You may also want to purchase some batteries to test from wyon,https://www.wyon.ch/en/home.html. We are in the process of testing their W101 and W102 batteries. These might cut out another 0.5 grams if they work well.&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB.&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	<entry>
		<id>https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1884</id>
		<title>Wire-free Miniscope</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.miniscope.org/index.php?title=Wire-free_Miniscope&amp;diff=1884"/>
				<updated>2019-05-21T01:45:50Z</updated>
		
		<summary type="html">&lt;p&gt;DAharoni: /* Major new Miniscope components that need to be ordered */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The wire-free Miniscope is a battery powered, data logging Miniscope that is fully untethered from external DAQ and power hardware. This system is a modification to the current wired Miniscope system (version 3.2) and shares all the same components except for the focus slider, CMOS PCB, and DAQ PCB. Below covers everything needed to get up and running with the wire-free Miniscope system.&lt;br /&gt;
&lt;br /&gt;
[[File:Wire-free.PNG|thumb|right|600px|Wire-free schematic and PCB.]]&lt;br /&gt;
&lt;br /&gt;
=== Generally information, notes, and troubleshooting ===&lt;br /&gt;
* All design files, source code, firmware, and software can be found[https://github.com/Aharoni-Lab/Documentation-Internal/tree/master/Projects/Wire-Free-Miniscope here].&lt;br /&gt;
* The wire-free Miniscope's gain, excitation LED power, and recording length is configured on power-up once an sdCard is detected by the on board microcontroller. The microcontroller checks specific memory locations in the sdCard to load the configuration. Configurations are initially uploaded onto the sdCard using our MiniscopeSDCardReader software.&lt;br /&gt;
* Once the wire-free Miniscope has been powered up and an sdCard has been detected, the Miniscope waits 5 seconds then begins recording at 20FPS. At the start of recording the red status LED on the wire-free PCB will light up. Once recording has finished the red status LED will turn off. You can use the on and off timing of this LED to synchronize wire-free Minsicope recordings with an external behavioral camera.&lt;br /&gt;
* The last 12 pixels values of each frame recorded to the sdCard are over written with a footer that contains four 32bit values. The second to last 32bit value contains the time stamp of that frame. This timestamp is in milliseconds and relative to the start of recording. We have validated that this timestamp is extremely stable across 25 minute recordings. Below is an example code snippet of how you can reconstruct the timestamp for a give frame 'frame' in MATLAB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The wire-free system will run on any single cell lipo battery (and more generally, with anything supplying between 4.2V and 3.4V that is capable of supplying ~80mA).  With a 45mAh single cell lipo battery you can expect to get slightly over 20 minutes of recording. &lt;br /&gt;
* The suggested workflow is to first image the animals with a wired Miniscope to get an estimate of focal depth, gain, and excitation LED power. Set these parameters on the wire-free Miniscope and then do short recordings, checking the resulting video each time, while adjusting the parameters until you have achieved good imaging. In our experience, once you find the optimal parameters you should be able to keep those same parameters across weeks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tutorial on setting up a new wire-free Miniscope ==&lt;br /&gt;
=== 1) First we need to make sure we have all the components and software to get things up and running. ===&lt;br /&gt;
==== Major new Miniscope components that need to be ordered ====&lt;br /&gt;
The wire-free Miniscope uses all the same hardware and optics as the standard v3 Miniscope except for the focus slider and CMOS PCB. It also doesn't use the Miniscope DAQ PCB. &lt;br /&gt;
* '''Wire-free Miniscope Focus Slider''': You can get the wire-free focus slider machined by Shylo Stiteler &amp;lt;shylostiteler@gmail.com&amp;gt; or elsewhere. The design file and dimensions are in the &amp;quot;wire-free focus slider&amp;quot; folder in our github repository. When assembling the Miniscope, if the resistors on the PCB prevents the focus slider from fitting in snugly, you can use a scalpel to indent the top of the focus slider.&lt;br /&gt;
[[File:MS_FocusSlidervWireless.png|thumb|right|300px|Wire-free focus slider.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* '''Wire-free Miniscope CMOS PCB''': You will also need the wire-free CMOS PCB. You can order this PCB already programmed and tested along with all the supporting equipment (batteries, connectors, chargers, SD Cards) from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt;. Of course you can also get this PCB made at your preferred PCB fab/assembly house as well. You can find the fabrication and assembly files in the &amp;quot;wire-free CMOS PCB&amp;quot; folder.&lt;br /&gt;
[[File:wire-free-PCB.png|thumb|right|300px|Wire-free PCB.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Additional components that may need to be ordered ====&lt;br /&gt;
The list below outlines the additional hardware and tools you need when setting up your own wire-free Miniscope. If you purchase a wire-free Miniscope system from Filipe Carvalho &amp;lt;filipe@open-ephys.org&amp;gt; you won't need the Atmel ICE as the PCB will already come programmed. Also, he can supply SDcards, batteries that are already wired up with the correct connectors, and an open-source lipo charging array with appropriate charge current. &lt;br /&gt;
&lt;br /&gt;
If you are having the wire-free PCB produced somewhere else you will need the following:&lt;br /&gt;
* [https://www.digikey.com/products/en?mpart=ATATMEL-ICE&amp;amp;v=150 Atmel ICE] for programming the wire-free PCB&lt;br /&gt;
* Micro SD cards. We like to use [https://www.amazon.com/Sandisk-Extreme-MicroSDHC-UHS-I-SDSDQXL-032G-A46A/dp/B00G5R75AU/ref=sr_1_13?s=electronics&amp;amp;ie=UTF8&amp;amp;qid=1543963603&amp;amp;sr=1-13&amp;amp;keywords=sandisk+micro+sd+card+extreme these microSD cards]. The SanDisk microSD extreme cards seem to perform best.&lt;br /&gt;
* [https://www.powerstream.com/ultra-light.htm Small Lipo battery]. The 45mAH batteries seemed to work best and give us about 20 minutes of recording time. You may also want to purchase some batteries to test from wyon,https://www.wyon.ch/en/home.html. We are in the process of testing their W101 and W102 batteries. These might cut out another 0.5 grams if they work well.&lt;br /&gt;
* Mill-Max 50mil male and female headers. You can get these from digikey.com and they are used to connect the lipo battery and programmer to the CMOS PCB.&lt;br /&gt;
* [https://www.sparkfun.com/products/10217 Lipo battery charger]. Most single cell lipo chargers will work. You will need to modify many standard lipo chargers to limit their charging current to what your battery can handle. This is generally done by swapping on a surface mount resistor on the charger PCB.&lt;br /&gt;
* [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 50K Resistor]. ~50kOhm 0603 resistors to modify the battery charger.&lt;br /&gt;
* [https://www.amazon.com/Tekpower-TP3016M-Portable-Handheld-Variable/dp/B015OA1J82 Power source]. This could be helpful when we are programming and testing the PCB.&lt;br /&gt;
* [https://www.amazon.com/AmazonBasics-Male-Micro-Cable-Black/dp/B072J1BSV6/ref=sr_1_1_sspa?crid=19OWZCA50WRE7&amp;amp;keywords=micro+usb+amazon+basics&amp;amp;qid=1555957481&amp;amp;s=gateway&amp;amp;sprefix=micro+usb+amazon+%2Caps%2C337&amp;amp;sr=8-1-spons&amp;amp;psc=1 USB cable]. Micro USB cables to go with the lipo chargers.&lt;br /&gt;
&lt;br /&gt;
==== Software to download ====&lt;br /&gt;
&lt;br /&gt;
* Download [https://mh-nexus.de/en/hxd/ HxD]. This software will allow you to directly edit memory blocks of an SD card which will be needed to initially setup an SD card for wire-free Miniscope recording. '''NOTE''': This software will allow you to modify any byte of data on any drive connected to your computer so observe particular caution when using it.&lt;br /&gt;
* Download [https://www.microchip.com/mplab/avr-support/atmel-studio-7 Atmel Studio]. This will be used to program the microcontroller firmware onto the CMOS PCB.&lt;br /&gt;
* Download the wire-free Miniscope software found in the &amp;quot;wire-free Miniscope software&amp;quot; folder. This software will allow you to read and save wire-free Miniscope data from an SD card as well as allow you to program recording parameters (exposure, gain, recording length) to the SD card which the Miniscope will read.&lt;br /&gt;
&lt;br /&gt;
=== 2) Now we need to get the wire-free CMOS PCB ready to be programmed with the wire-free Miniscope firmware. ===&lt;br /&gt;
&lt;br /&gt;
==== Soldering the programming header ====&lt;br /&gt;
* First solder a 4 pin Mill-Max 50mil pitch header to the 4 pad programming interface on the wire-free CMOS PCB. The connections of this programming header are as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:wire-free-CMOS-PCB-Connections.png|thumb|right|600px|Programming header.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Soldering the lipo battery connector and excitation LED wires ====&lt;br /&gt;
* You can also now solder a 2 pin Mill-Max 50mil pitch header and wires for the excitation LED PCB to the three pads near to top of the board in the above picture. First solder the Mill-Max header to Lipo+ and GND (this will be the connector for the lipo battery). Then solder the 2 LED wires to LED+ and the same middle GND pad that the Mill-Max header is soldered to. The CMOS PCB should now look something like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-1.png|thumb|right|600px|PCB sensor side.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Soldered-PCB-2.png|thumb|right|600px|PCB sd card side.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Let's also connectorize the Lipo battery ====&lt;br /&gt;
* The lipo battery will come with 2 metal strips (initially protected with heat shrink) extending from the body of the battery which are its + and - voltage terminals. We want to solder a wire to each of these metal strips and then put a 2pin Mill-Max header on the other end of the wires so that the battery can connect to the Mill-Max header we soldered to the Lipo+ and GND pads of the CMOS PCB. &lt;br /&gt;
[[File:lipo-battery.png|thumb|right|600px|Lipo Battery.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure to never short the 2 metal strips of the lipo battery. If you do, it could damage the battery permanently.&lt;br /&gt;
* Use a multimeter to test which metal strip is the + and which is the - (GND).&lt;br /&gt;
* When soldering wires to the lipo, try to minimize the amount of heat traveling to the lipo battery.&lt;br /&gt;
&lt;br /&gt;
=== 3) Programming the wire-free CMOS PCB ===&lt;br /&gt;
==== Connectorizing the Atmel ICE programmer ====&lt;br /&gt;
* In order to program the microcontroller on the CMOS PCB, we first need to wire-up and connectorize a 4pin Mill-Max header to the 4 programming pins of the Atmel ICE programmer. These are GND, VTG, SWDIO, and SWDCLK. Below shows which pins/wires of the Atmel ICE have which function. The Atmel ICE has 2 different 5x2 pin ports. One is labeled AVR and one is labeled SAM. Either will work but depending on which one you are using it will change which column you refer to in the below chart.&lt;br /&gt;
&lt;br /&gt;
[[File:atmel-ice-swd-pinout.png|thumb|right|600px|Chart]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Connect the Atmel ICE to the programming header of the CMOS PCB.&lt;br /&gt;
* Power up the CMOS PCB through the lipo connector (2pin Mill-Max head with Lipo+ and GND). You can hook up a charged lipo battery but we suggest using a power supply between 3.5V and 4.2V here. This way you don't have to worry about a battery running out of charge during programming and testing. You can cap the maximum current output of the power source at 0.150A just to be safe. The power source should measure a current of about 0.03A when 3.8V is supplied to the PCB.&lt;br /&gt;
* When the CMOS PCB gets powered on, you should see an orange light turn on on the Atmel ICE which shows that the Atmel ICE has detected voltage on the VTG (Voltage Target) pin. In the ATATMEL-ICE-ND, you should see a red light turn on showing that the Atmel box is powered, and a green light showing that the box is measuring a voltage from the PCB. Updating Atmel Studio and restarting the computer could all help with debugging.&lt;br /&gt;
* Open Atmel Studio and click the &amp;quot;Device Programming&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
[[File:Atmel-device-programming.PNG|thumb|right|600px|Atmel Studio device programming button.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* In the Device Programming window that pops up select:&lt;br /&gt;
** Tool: Atmel ICE&lt;br /&gt;
** Device: ATSAM....  (should automatically be the correct name, ATSAME70N21)&lt;br /&gt;
** Interface: SWD&lt;br /&gt;
** Then click &amp;quot;Apply&amp;quot;&lt;br /&gt;
* Now check to make sure that Atmel Studio can communicate with the microcontroller on the CMOS PCB. You do this by clicking the &amp;quot;Read&amp;quot; button under Device Signature. If everything is powered and connected correctly you should see some numbers and letter pop up in the box and no error window show up. Now we are ready to program the microcontroller.&lt;br /&gt;
&lt;br /&gt;
[[File:device-programming-window.PNG|thumb|right|600px|device programming window.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Memory&amp;quot; on the left menu panel of the Device Programming window we are currently in. If the memory tab is not showing up, make sure to select the tool, device, and interface and click apply again&lt;br /&gt;
* Click &amp;quot;Browse&amp;quot; and locate the wire-free Miniscope firmware. This is a .hex file you can find in the &amp;quot;/wire-free-firmware&amp;quot; folder. Either the .hex or .elf file should work.&lt;br /&gt;
* Click &amp;quot;Program&amp;quot;. This will erase, program, and verify the microcontroller. It will tell you if everything was successful.&lt;br /&gt;
* Exit the Device Programming window.&lt;br /&gt;
* Now we have to do something a bit weird. I am not sure why this has to be done but it does. Open up the Atmel project found in the &amp;quot;/wire-free-firmware&amp;quot; folder. This load up the code that makes up the wire-free Miniscope firmware. Now click &amp;quot;Debug&amp;quot; from the top menu bar and then click &amp;quot;Start Debugging and Break&amp;quot;. Wait about 15 seconds while the debugger does its thing in Atmel Studio and then the code should jump to the &amp;quot;main()&amp;quot; function and highlight it. Now click the play button (labelled &amp;quot;Start Debugging&amp;quot;) in the top menu. Wait a few seconds then click the stop button (labelled &amp;quot;Stop Debugging&amp;quot;). &lt;br /&gt;
[[File:loadingATMEL.PNG|thumb|right|600px|Loading Atmel.]]&lt;br /&gt;
&lt;br /&gt;
[[File:ddebug-buttons.PNG|thumb|right|600px|Debug buttons.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* Go back to the &amp;quot;Device Programming&amp;quot; window by clicking the &amp;quot;Device Programming&amp;quot; button.&lt;br /&gt;
* Repeat the steps to program the PCB with the .hex file.&lt;br /&gt;
* Now the microcontroller on the wire-free Miniscope CMOS PCB knows how to be a wire-free Miniscope microcontroller.&lt;br /&gt;
&lt;br /&gt;
=== 4) Configure the micro SD card ===&lt;br /&gt;
The wire-free Miniscope and the Miniscope SD Card Reader software are able to read and write raw data directly into and out of the memory blocks of the SD card. In memory block 1023 of the SD card, we need to first write an a key that will, for all subsequnt writing to the SD card, be checked before any raw data writed to make sure we are not writing to the wrong drive. '''If we accidently write over a memory block on your computer's drive it can corrupt Windows so we need to be extra careful not to do that.'''&lt;br /&gt;
&lt;br /&gt;
==== Add the Write Key to memory block 1023 of the SD Card ====&lt;br /&gt;
Here we will use the HxD software to directly write our Key into the SD Card.&lt;br /&gt;
* Open the HxD software and run as Administrator&lt;br /&gt;
* Select 'Tools' then select 'Open Disk' from the drop down menu&lt;br /&gt;
* Uncheck the 'Open as Readonly' option in the bottom left of the window, select the SD card from the list of disks, and then click 'OK'. If the disk is not showing up, restarting the computer might help.&lt;br /&gt;
&lt;br /&gt;
[[File:HxD1.PNG|thumb|right|600px|HxD.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''We will now be writing directly to memory blocks of the drive. Make sure you have selected the SD Card and not another drive'''&lt;br /&gt;
* Go to Sector 1023 and modify the first 16 bytes in this sector.We will be replacing the data in these 16 bytes with the write Key. The write Key is 0x0D7CBA17 repeated 4 times. After replacing these bytes it should look like this:&lt;br /&gt;
[[File:HxD2.PNG|thumb|right|600px|HxD write key.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now click 'Save'.&lt;br /&gt;
* Let's check to make sure everything was modified and saved correctly. Close HxD, pull out the SD card from the computer and then place it back in the computer. Now open up HxD, open the SD Card disk, go to sector 1023, and check to make sure the write Key is still there. If it is then we have correctly configured the SD Card for wire-free Miniscope recording.&lt;br /&gt;
&lt;br /&gt;
=== 5) Using the Miniscope SD Card Reader software ===&lt;br /&gt;
Our final step is to use the Miniscope SD Card Reader software to configure the LED power and Gain of the wire-free Miniscope. The way we do this is by writing the configuration into specific bytes of memory block 1023 of the SD card. The Miniscope SD Card Reader software handles all of this through a simple GUI.&lt;br /&gt;
* Open the MiniscopeSDCardReader.exe and run as Administrator&lt;br /&gt;
[[File:MiniscopeSDCardReader.PNG|thumb|right|600px|Miniscope SD Card Reader.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
* You may need to change the 'Drive' name based on the naming your computer has given to the SD Card. In the image above it has defaulted to 'PhysicalDrive1' and this name should usually work. If a window pops up asking if you want to format the SD card, do not format it or it will undo what we programmed.&lt;br /&gt;
* You can set the Gain, LED Power, and Recording Length. Once the correct numbers have been entered, click 'Set' to write those values to the SD card. The software makes sure the write Key is present in memory block 1023 before attempting to write this configuration. This is used to stop the software from writing to another disk but still be careful. A line should pop up in the bottom window saying “Write key match!”&lt;br /&gt;
* After setting the configuration you can take out the SD card from the computer and mount it in the wire-free Miniscope. Once the Miniscope is powered on, it will wait 5 seconds and then begin recording. Always put in the SD card before plugging in the battery.&lt;br /&gt;
* After recording with the Miniscope, take the SD card out of the Miniscope mount and place it in your computer. You can now use the MiniscopeSDCardReader software to view, save, and delete recordings.&lt;br /&gt;
&lt;br /&gt;
=== 6) Modifying the Lipo charger ===&lt;br /&gt;
In general any single cell lipo charger will work for charging the batteries used for the wire-free Miniscope but you have to make sure that the max current the charge can output is limited to around 20mA. The Sparkfun Lipo charger listed at the top of this tutorial is capped at 500mA by default so we will need to modify the charger to limit the current to ~20mA. The way we do this is by replacing the SMD resistor circled in blue below with a ~50kOhm 0603 resistor. If you don't have a ~50kohn resistor on hand you can [https://www.digikey.com/product-detail/en/yageo/RC0603FR-0749K9L/311-49.9KHRCT-ND/730212 order one from digikey]. If the solder around the resistor is hard to remove, it might help to add a little bit of new solder.&lt;br /&gt;
&lt;br /&gt;
[[File:SparkfunChargerMod.png|thumb|right|600px|Sparkfun modified charger.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to modify or swap out the lipo connector on the right of the board with connector that can mate to the connector you put on your lipo batteries.&lt;br /&gt;
&lt;br /&gt;
== How to record with the wire-free Miniscope system ==&lt;br /&gt;
After following the wire-free Miniscope tutorial above you should now be ready to record using the system. Imaging using the wire-free Miniscope has a few extra steps compared to the wired Miniscope but you set up a workflow for recording the system is often times easier to use than the wired one.&lt;br /&gt;
&lt;br /&gt;
=== Steps for imaging in a unrestrained animal ===&lt;br /&gt;
# Use a wired Miniscope to get a ballpark idea of focal depth and excitation power needed for a specific animal.&lt;br /&gt;
# Set the focal height of the wire-free Miniscope as close as possible to the wired Miniscope you used in step 1.&lt;br /&gt;
# Using the MiniscopeSDCardReader software, set the Gain, LED Power, and recording length. We suggest using a ~5second recording length when first figuring out these settings. This will allow you to quickly image and then check the recording.&lt;br /&gt;
[[File:MiniscopeSDCardReader2.png|thumb|right|600px|Settings.]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
# Now that you have the focal depth set as well as the gain and LED power figured out, you are ready for your experiment. Mount the wire-free Miniscope on the baseplate on the animal's head.&lt;br /&gt;
# Place a microSD card in the SD card mount on the wire-free Miniscope PCB.&lt;br /&gt;
# Plug in a '''fully charged''' single cell lipo.&lt;br /&gt;
# The wire-free Miniscope will now power up and detect the SD card. You can also power up the Miniscope before mounting the SD card but we have found this to be slightly less stable than the other way around. '''The Miniscope will wait exactly 5 seconds''' before turning on its red status LED and beginning recording.&lt;br /&gt;
# The Miniscope will now record for the recording length you previously set through the MiniscopeSDCardReader software. Once the recording has finished the red status LED will turn off. Unplug the lipo battery then remove the SD card.&lt;br /&gt;
# Imaging data is stored in a raw format on the SD card. There are no files or folder structures on the SD card. The recording begins in memory block 1024 and will continue until the end of the recording is reached.&lt;br /&gt;
&lt;br /&gt;
=== Steps for transferring a recording from an SD Card to a computer ===&lt;br /&gt;
Now that you have a wire-free Miniscope stored on an SD Card, we need to transfer it to a computer. As mentioned above, the wire-free Miniscope records raw pixel byte values directly to memory blocks in the SD Card. This means that when the card is mounted in a computer, the computer will think that the card needs to be reformatted. This is due to the SD Card not having a file system on it. '''Always ignore the recommendation of your computer to reformat the SD Card as well as if it says the SD Card is corrupted.''' &lt;br /&gt;
# Mount the SD Card in your computer. If you computer doesn't have a built in SD Card mount, you can use an external USB SD Card mount.&lt;br /&gt;
# Open the MiniscopeSDCardReader software in with Administrator privileges. You will need this since we will be directly reading/writing memory blocks.&lt;br /&gt;
## The &amp;quot;Drive&amp;quot; is the name of the SD Card. This defaults to &amp;quot;PhysicalDrive1&amp;quot; but you should double check you are using the correct name of the SD Card drive.&lt;br /&gt;
## The &amp;quot;Starting Sector&amp;quot; is the memory block where the beginning of the Miniscope recording is located. This should not need to ever be changed from &amp;quot;1024&amp;quot;.&lt;br /&gt;
## '''Note''': Whenever this software attempts to access data on the SD Card, it first checks to make sure the correct 128bit &amp;quot;WRITE KEY&amp;quot; is stored in memory block 1023. This WRITE KEY was placed there by you if you followed the tutorial above. The goal of this WRITE KEY is it makes it extremely unlikely that you end up accessing or modifying any other drive on your computer since the chances of another drive having the 128bit WRITE KEY located at memory block 1023 is highly unlikely. When you do try accessing data on the SD Card, the text box at the bottom of the GUI will tell you if it found the correct WRITE KEY or if it found the wrong one and stopped the requested action.&lt;br /&gt;
# Now you can use the &amp;quot;Read/Save Data&amp;quot; portion of the software to do exactly that... read and/or save the wire-free Miniscope data.&lt;br /&gt;
## First enter in the length of the recording you want to extract from the SD Card. This says &amp;quot;Number of Seconds&amp;quot; but I think it is actually &amp;quot;Number of Frames&amp;quot; (''I will get around to fixing this sometime soon...''). The wire-free Miniscope records at 20FPS so you should usually just set this number a bit longer than the expected recording to make sure you grab all the data.&lt;br /&gt;
## If you click &amp;quot;Read&amp;quot; the software will open up a window that will play the wire-free Miniscope recording. On some computers using some versions of OpenCV, this option for some reason doesn't actually update the window and it just shows black the whole time. We recommend to use &amp;quot;Save&amp;quot; in all cases if this happens to you.&lt;br /&gt;
## If you click &amp;quot;Save&amp;quot; the software will display the video as it extracts it from the SD Card and writes it to the computer's drive. It will save a copy of the wire-free recording in the &amp;quot;data&amp;quot; folder located where ever your MiniscopeSDCardReader software is located. We generally recommend you using the &amp;quot;Save&amp;quot; option over the &amp;quot;Read&amp;quot; option since the read option can be buggy on some computers.&lt;br /&gt;
# Check to make sure the data is now saved as an uncompressed .avi file on your computer.&lt;br /&gt;
# Once you have your data transferred to your computer we highly recommend clearing the SD Card before beginning a new recording:&lt;br /&gt;
## You can do this using the &amp;quot;Clear SD Card&amp;quot; section of the software. Here you can define the number of frames to clear from the SD card and then clear/delete them.&lt;br /&gt;
## Set the number of frames to clear first. We suggest entering a number that is larger than the expected length of recording currently on the SD Card.&lt;br /&gt;
## Click &amp;quot;Delete&amp;quot; and the software will set all bytes in these memory block in the SD Card to 0.&lt;br /&gt;
## '''Note''': It will not delete the settings located in memory block 1023. This means you can now reuse this SD Card without reprogramming the gain, LED power, and recording length.&lt;br /&gt;
# '''Note''': Each frame is timestamped and the timestamp is embedded within each frame. You can extract the timestamp by generating a 32bit integer from the last 8th, 7th, 6th, and 5th pixels in each frame. In MATLAB it would look something like this for a given frame:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;footer = (frame(end,(end-7):end)); timestamp = footer(1) + bitshift(footer(2),8) + bitshift(footer(3),16) + bitshift(footer(4),24);  &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You're Done!&lt;/div&gt;</summary>
		<author><name>DAharoni</name></author>	</entry>

	</feed>