<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.muonpi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hgz</id>
	<title>MuonPi-Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.muonpi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hgz"/>
	<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Special:Contributions/Hgz"/>
	<updated>2026-04-20T20:30:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=808</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=808"/>
		<updated>2022-07-20T14:48:04Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS (at least Buster) according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For a headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, update your system to make sure, certificates and dependencies are up to date. This might take a while depending on how regularly the system is being updated.&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
* Then, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for Raspberry Pi OS Buster do:&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
for Raspberry Pi OS Bullseye do:&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian bullseye main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories again:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same MQTT user account, see above) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=807</id>
		<title>User detectors gallery</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=807"/>
		<updated>2022-02-08T22:37:32Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot; widths=350px heights=300px&amp;gt;&lt;br /&gt;
Image:MuonPi-UserSetUp1.jpg|Users setup of the MuonPi detector next to the router.&lt;br /&gt;
Image:User detector dl4ina.jpg|User setup of DL4INA with single-channel connected hexagonal scintillator. &lt;br /&gt;
Image:User_detector_slu.jpg| User setup of slu with custom 3D printed encasing&lt;br /&gt;
Image:Detector_user_mw1cf.jpg| User setup of mw1cfwith, from his [https://mw1cfnradio.blogspot.com/2020/12/a-minor-departure-from-things-entirely.html blogpost]&lt;br /&gt;
Image:Detector_user_mmo.jpg| User setup of mmo with operating on a Raspberry Pi 0 WH&lt;br /&gt;
Image:MunoPi case in the dark.jpg| Custom enclosure for the complete detector setup. Including the Raspberry Pi, MuonPi HAT, and a hexagonal Scintillator. 3D Model was made by user 'slu' from the community.&lt;br /&gt;
Image:Detector-photo-phyronix.jpg| Detector with one of the first Lite-Boards in a 3d-printed case. User Phyronix12. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=File:Detector-photo-phyronix.jpg&amp;diff=806</id>
		<title>File:Detector-photo-phyronix.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=File:Detector-photo-phyronix.jpg&amp;diff=806"/>
		<updated>2022-02-08T22:35:06Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=805</id>
		<title>How do I get a detector?</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=805"/>
		<updated>2022-02-07T16:17:12Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A collection of frequently asked questions on how to enroll the process of obtaining one of our detectors can be found in this [https://forum.muonpi.org/viewtopic.php?f=17&amp;amp;t=18 forum FAQ post]. Note that we can provide a only a limited amount of fully assembled boards. Therefore we appreciate that users with the appropriate skills and equipment assemble their HAT boards themselves (following our [[Assembly Guide|HAT board assembly guide]]). We gladly provide bare PCBs and DIY solder kits in those cases. The actual detector, i.e. the packaged scintillator with SiPM photo sensor and preamplifier will be provided, if required.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=804</id>
		<title>How do I get a detector?</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=804"/>
		<updated>2022-02-07T16:13:32Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A collection of frequently asked questions on how to enroll the process of obtaining one of our detectors can be found in this [https://forum.muonpi.org/viewtopic.php?f=17&amp;amp;t=18 forum FAQ post]. Note that we can provide a only a limited amount of fully assembled boards. Therefore we appreciate that users with the appropriate skills and equipment assemble their HAT boards themselves. We gladly provide bare PCBs and DIY solder kits in those cases. The actual detector, i.e. the packaged scintillator with SiPM photo sensor and preamplifier will be provided in any case.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=803</id>
		<title>How do I get a detector?</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=How_do_I_get_a_detector%3F&amp;diff=803"/>
		<updated>2022-02-07T16:02:58Z</updated>

		<summary type="html">&lt;p&gt;Hgz: Created page with &amp;quot;A collection of frequently asked questions on how to enroll the process of obtaining one of our detectors can be found in this [https://forum.muonpi.org/viewtopic.php?f=17&amp;amp;t=1...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A collection of frequently asked questions on how to enroll the process of obtaining one of our detectors can be found in this [https://forum.muonpi.org/viewtopic.php?f=17&amp;amp;t=18 forum FAQ post].&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=802</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=802"/>
		<updated>2022-02-07T15:52:46Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* The Kit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB based on the soldering kit. You can obtain a kit, a fully assembled PCB (limited availability) or only the unmounted PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own Raspberry Pi based particle detector.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/ibom.php interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are fixed to a name tag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear Scotch tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy get lost. Also, remove the Scotch tape from the ICs very slowly to prevent sudden static discharge which would destroy the chips.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
* The current limiting resistors for the LEDs in the default BOM are chosen such that the LEDs are rather bright. In order to reduce the brightness, see the recommendations from [https://forum.muonpi.org/viewtopic.php?f=7&amp;amp;t=22 this forum post]. With the default resistors in place the LEDs are intensively illuminating your room at night :)&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=799</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=799"/>
		<updated>2022-01-05T21:30:00Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* MuonPi software installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-linux Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-mac-os MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-windows Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, update your system to make sure, certificates and dependencies are up to date. This might take a while depending on how regularly the system is being updated.&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
* Then, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for Raspberry Pi OS Buster do:&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
for Raspberry Pi OS Bullseye do:&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian bullseye main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories again:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same MQTT user account, see above) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=798</id>
		<title>GUI and Detector Operation</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=798"/>
		<updated>2022-01-01T17:28:38Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Finding the right threshold */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will explain to best operate the detector and how to use the GUI&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: Tutorial written based on [https://github.com/MuonPi/muondetector/releases/tag/v2.0.2 GUI version 2.0.2]&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Detector Operation =&lt;br /&gt;
&lt;br /&gt;
== Finding the right threshold == &lt;br /&gt;
There are several ways to find the right detector threshold. In general, one aims to minimize the amount of electronic noise while not sacrificing real detector counts. &lt;br /&gt;
* Method 0: The choice of threshold should always be guided by the expected integrated muon flux per m&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; and second in the detector. For our large detector (25cm x 12.5 cm), this is roughly 3.5Hz. For our small hexagonal detector, this is roughly 1Hz. For a more in-depth choice of threshold, follow the other methods.&lt;br /&gt;
* Method 1: Using an oscilloscope (details to be added)&lt;br /&gt;
* Method 2: Using the energy processor (details to be added)&lt;br /&gt;
* Method 3: Another way to accomplish this, and without having to use additional equipment, is a threshold scan using the GUI. Here, the software is automatically setting different threshold levels and measuring the number of counts measured per time interval. Thus, by creating a graph showing count rate versus threshold, one can make an informed decision on how to choose the right threshold level. &lt;br /&gt;
# Open GUI and navigate to the &amp;quot;Scans&amp;quot; page. &lt;br /&gt;
# Set &amp;quot;UBXRATE&amp;quot; as observable and &amp;quot;THR1&amp;quot; (if using channel one of the board) or &amp;quot;THR2&amp;quot; (if using channel two). Select meaningful values for the scan range: test by hand (using the Threshold slider) to find a high count rate (blue LED on HAT board permanently on) and where the counts practically disappear (blue LED permanently off). Those to values can be set as &amp;quot;Scan range from&amp;quot; and &amp;quot;To&amp;quot;. To get good statistics, choose 0.0025 as step size and 20s as &amp;quot;Meas. time interval&amp;quot;. &lt;br /&gt;
# Press &amp;quot;Start scan&amp;quot;. The scan might take several minutes, depending on your effective scan range. The progress is displayed on the bottom of the page.&lt;br /&gt;
# When the scan is done, right-click on the y-axis of the plot and select &amp;quot;Log Y&amp;quot; to show the plot in log scale.&lt;br /&gt;
# Choosing the right threshold value. The result in your GUI should look similar to Screenshot 1 in the gallery below. A steep drop in count rate for very low thresholds turns into a less steep drop. At this point, the electronic background is effectively cut and only real detector signals are measured. To avoid measuring a great number of dark counts (signal-like events produced by the photosensors) one wants to set the threshold well above the point where the slope changes. In this example, we chose a value 20mV above that point. In screenshot 2 the data is fitted with an exponential decay function with three decay constants for reference. The data was taken with a large (25cm x 12.5 cm) detector.&lt;br /&gt;
# The threshold that was found across the previous steps should be persisted to the non-volatile memory of the DAC device. This is achieved by clicking the &amp;quot;Store DAC settings&amp;quot; button on the left side bar of the GUI. In this way, the new threshold is automatically set after restart or after a power cycle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
Threshold Scan Log.PNG|Screenshot 1: GUI Scan page with scan settings&lt;br /&gt;
Threshold Scan Log fit.png|Screenshot 2: Fit of the plotted data. An exponential decay function with three decay constants was assumed. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=797</id>
		<title>GUI and Detector Operation</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=797"/>
		<updated>2022-01-01T17:20:52Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Finding the right threshold */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will explain to best operate the detector and how to use the GUI&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: Tutorial written based on [https://github.com/MuonPi/muondetector/releases/tag/v2.0.2 GUI version 2.0.2]&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Detector Operation =&lt;br /&gt;
&lt;br /&gt;
== Finding the right threshold == &lt;br /&gt;
There are several ways to find the right detector threshold. In general, one aims to minimize the amount of electronic noise while not sacrificing real detector counts. &lt;br /&gt;
* Method 0: The choice of threshold should always be guided by the expected integrated muon flux per m2 and per second in the detector. For our large detector (25cm x 12.5 cm), this is roughly 3.5Hz. For our small hexagonal detector, this is roughly 1Hz. For a more in-depth choice of threshold, follow the other methods.&lt;br /&gt;
* Method 1: Using an oscilloscope (details to be added)&lt;br /&gt;
* Method 2: Using the energy processor (details to be added)&lt;br /&gt;
* Method 3: Another way to accomplish this, and without having to use additional equipment, is a threshold scan using the GUI. Here, the software is automatically setting different threshold levels and measuring the number of counts measured per time interval. Thus, by creating a graph showing count rate versus threshold, one can make an informed decision on how to choose the right threshold level. &lt;br /&gt;
# Open GUI and navigate to the &amp;quot;Scans&amp;quot; page. &lt;br /&gt;
# Set &amp;quot;UBXRATE&amp;quot; as observable and &amp;quot;THR1&amp;quot; (if using channel one of the board) or &amp;quot;THR2&amp;quot; (if using channel two). Select meaningful values for the scan range: test by hand (using the Threshold slider) to find a high count rate (blue LED on HAT board permanently on) and where the counts practically disappear (blue LED permanently off). Those to values can be set as &amp;quot;Scan range from&amp;quot; and &amp;quot;To&amp;quot;. To get good statistics, choose 0.0025 as step size and 20s as &amp;quot;Meas. time interval&amp;quot;. &lt;br /&gt;
# Press &amp;quot;Start scan&amp;quot;. The scan might take several minutes, depending on your effective scan range. The progress is displayed on the bottom of the page.&lt;br /&gt;
# When the scan is done, right-click on the y-axis of the plot and select &amp;quot;Log Y&amp;quot; to show the plot in log scale.&lt;br /&gt;
# Choosing the right threshold value. The result in your GUI should look similar to Screenshot 1 in the gallery below. A steep drop in count rate for very low thresholds turns into a less steep drop. At this point, the electronic background is effectively cut and only real detector signals are measured. To avoid measuring a great number of dark counts (signal-like events produced by the photosensors) one wants to set the threshold well above the point where the slope changes. In this example, we chose a value 20mV above that point. In screenshot 2 the data is fitted with an exponential decay function with three decay constants for reference. The data was taken with a large (25cm x 12.5 cm) detector.&lt;br /&gt;
# The threshold that was found across the previous steps should be persisted to the non-volatile memory of the DAC device. This is achieved by clicking the &amp;quot;Store DAC settings&amp;quot; button on the left side bar of the GUI. In this way, the new threshold is automatically set after restart or after a power cycle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
Threshold Scan Log.PNG|Screenshot 1: GUI Scan page with scan settings&lt;br /&gt;
Threshold Scan Log fit.png|Screenshot 2: Fit of the plotted data. An exponential decay function with three decay constants was assumed. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=796</id>
		<title>GUI and Detector Operation</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=796"/>
		<updated>2022-01-01T17:14:11Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Finding the right threshold */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will explain to best operate the detector and how to use the GUI&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: Tutorial written based on [https://github.com/MuonPi/muondetector/releases/tag/v2.0.2 GUI version 2.0.2]&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Detector Operation =&lt;br /&gt;
&lt;br /&gt;
== Finding the right threshold == &lt;br /&gt;
There are several ways to find the right detector threshold. In general, one aims to minimize the amount of electronic noise while not sacrificing real detector counts. &lt;br /&gt;
* Method 0: The choice of threshold should always be guided by the expected integrated muon flux per m2 and per second in the detector. For our large detector (25cm x 12.5 cm), this is roughly 3.5Hz. For our small hexagonal detector, this is roughly 1Hz. For a more in-depth choice of threshold, follow the other methods.&lt;br /&gt;
* Method 1: Using an oscilloscope (details to be added)&lt;br /&gt;
* Method 2: Using the energy processor (details to be added)&lt;br /&gt;
* Method 3: Another way to accomplish this, and without having to use additional equipment, is a threshold scan using the GUI. Here, the software is automatically setting different threshold levels and measuring the number of counts measured per time interval. Thus, by creating a graph showing count rate versus threshold, one can make an informed decision on how to choose the right threshold level. &lt;br /&gt;
# Open GUI and navigate to the &amp;quot;Scans&amp;quot; page. &lt;br /&gt;
# Set &amp;quot;UBXRATE&amp;quot; as observable and &amp;quot;THR1&amp;quot; (if using channel one of the board) or &amp;quot;THR2&amp;quot; (if using channel two). Select meaningful values for the scan range: test by hand (using the Threshold slider) to find a high count rate (blue LED on HAT board permanently on) and where the counts practically disappear (blue LED permanently off). Those to values can be set as &amp;quot;Scan range from&amp;quot; and &amp;quot;To&amp;quot;. To get good statistics, choose 0.0025 as step size and 20s as &amp;quot;Meas. time interval&amp;quot;. &lt;br /&gt;
# Press &amp;quot;Start scan&amp;quot;. The scan might take several minutes, depending on your effective scan range. The progress is displayed on the bottom of the page.&lt;br /&gt;
# When the scan is done, right-click on the y-axis of the plot and select &amp;quot;Log Y&amp;quot; to show the plot in log scale.&lt;br /&gt;
# Choosing the right threshold value. The result in your GUI should look similar to Screenshot 1 in the gallery below. A steep drop in count rate for very low thresholds turns into a less steep drop. At this point, the electronic background is effectively cut and only real detector signals are measured. To avoid measuring a great number of dark counts (signal-like events produced by the photosensors) one wants to set the threshold well above the point where the slope changes. In this example, we chose a value 20mV above that point. In screenshot 2 the data is fitted with an exponential decay function with three decay constants for reference. The data was taken with a large (25cm x 12.5 cm) detector.&lt;br /&gt;
# The threshold that was found across the previous steps should be persisted to the non-volatile memory of the DAC device. This is achieved by clicking the &amp;quot;store DAC values&amp;quot; button on the left side bar of the GUI. In this way, the new threshold is automatically set after restart or after a power cycle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
Threshold Scan Log.PNG|Screenshot 1: GUI Scan page with scan settings&lt;br /&gt;
Threshold Scan Log fit.png|Screenshot 2: Fit of the plotted data. An exponential decay function with three decay constants was assumed. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=795</id>
		<title>GUI and Detector Operation</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=GUI_and_Detector_Operation&amp;diff=795"/>
		<updated>2022-01-01T17:07:33Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Finding the right threshold */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will explain to best operate the detector and how to use the GUI&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: Tutorial written based on [https://github.com/MuonPi/muondetector/releases/tag/v2.0.2 GUI version 2.0.2]&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Detector Operation =&lt;br /&gt;
&lt;br /&gt;
== Finding the right threshold == &lt;br /&gt;
There are several ways to find the right detector threshold. In general, one aims to minimize the amount of electronic noise while not sacrificing real detector counts. &lt;br /&gt;
* Method 0: The choice of threshold should always be guided by the expected integrated muon flux per m2 and per second in the detector. For our large detector (25cm x 12.5 cm), this is roughly 3.5Hz. For our small hexagonal detector, this is roughly 1Hz. For a more in-depth choice of threshold, follow the other methods.&lt;br /&gt;
* Method 1: Using an oscilloscope (details to be added)&lt;br /&gt;
* Method 2: Using the energy processor (details to be added)&lt;br /&gt;
* Method 3: Another way to accomplish this, and without having to use additional equipment, is a threshold scan using the GUI. Here, the software is automatically setting different threshold levels and measuring the number of counts measured per time interval. Thus, by creating a graph showing count rate versus threshold, one can make an informed decision on how to choose the right threshold level. &lt;br /&gt;
# Open GUI and navigate to the &amp;quot;Scans&amp;quot; page. &lt;br /&gt;
# Set &amp;quot;UBXRATE&amp;quot; as observable and &amp;quot;THR1&amp;quot; (if using channel one of the board) or &amp;quot;THR2&amp;quot; (if using channel two). Select meaningful values for the scan range: test by hand (using the Threshold slider) to find a high count rate (blue LED on HAT board permanently on) and where the counts practically disappear (blue LED permanently off). Those to values can be set as &amp;quot;Scan range from&amp;quot; and &amp;quot;To&amp;quot;. To get good statistics, choose 0.0025 as step size and 20s as &amp;quot;Meas. time interval&amp;quot;. &lt;br /&gt;
# Press &amp;quot;Start scan&amp;quot;. The scan might take several minutes, depending on your effective scan range. The progress is displayed on the bottom of the page.&lt;br /&gt;
# When the scan is done, right-click on the y-axis of the plot and select &amp;quot;Log Y&amp;quot; to show the plot in log scale.&lt;br /&gt;
# Choosing the right threshold value. The result in your GUI should look similar to Screenshot 1 in the gallery below. A steep drop in count rate for very low thresholds turns into a less steep drop. At this point, the electronic background is effectively cut and only real detector signals are measured. To avoid measuring a great number of dark counts (signal-like events produced by the photosensors) one wants to set the threshold well above the point where the slope changes. In this example, we chose a value 20mV above that point. In screenshot 2 the data is fitted with an exponential decay function with three decay constants for reference. The data was taken with a large (25cm x 12.5 cm) detector.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
Threshold Scan Log.PNG|Screenshot 1: GUI Scan page with scan settings&lt;br /&gt;
Threshold Scan Log fit.png|Screenshot 2: Fit of the plotted data. An exponential decay function with three decay constants was assumed. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=789</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=789"/>
		<updated>2021-12-31T15:33:50Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-linux Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-mac-os MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-windows Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, update your system to make sure, certificates and dependencies are up to date. This might take a while depending on how regularly the system is being updated.&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
* Then, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories again:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same MQTT user account, see above) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=697</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=697"/>
		<updated>2021-06-09T08:15:29Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB based on the soldering kit. You can obtain a kit, a fully assembled PCB (limited availability) or only the unmounted PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own Raspberry Pi based particle detector.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are fixed to a name tag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear Scotch tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy get lost. Also, remove the Scotch tape from the ICs very slowly to prevent sudden static discharge which would destroy the chips.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
* The current limiting resistors for the LEDs in the default BOM are chosen such that the LEDs are rather bright. In order to reduce the brightness, see the recommendations from [https://forum.muonpi.org/viewtopic.php?f=7&amp;amp;t=22 this forum post]. With the default resistors in place the LEDs are intensively illuminating your room at night :)&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=696</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=696"/>
		<updated>2021-06-09T07:41:41Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Hints and Tricks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own Raspberry Pi based particle detector.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are fixed to a name tag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear Scotch tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy get lost. Also, remove the Scotch tape from the ICs very slowly to prevent sudden static discharge which would destroy the chips.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
* The current limiting resistors for the LEDs in the default BOM are chosen such that the LEDs are rather bright. In order to reduce the brightness, see the recommendations from [https://forum.muonpi.org/viewtopic.php?f=7&amp;amp;t=22 this forum post]. With the default resistors in place the LEDs are intensively illuminating your room at night :)&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=695</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=695"/>
		<updated>2021-05-22T11:58:50Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* The Kit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own Raspberry Pi based particle detector.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are fixed to a name tag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear Scotch tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy get lost. Also, remove the Scotch tape from the ICs very slowly to prevent sudden static discharge which would destroy the chips.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=694</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=694"/>
		<updated>2021-05-22T11:57:03Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* The Kit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy get lost. Also, remove the Scotch tape from the ICs very slowly to prevent sudden static discharge which would destroy the chips.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=674</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=674"/>
		<updated>2021-03-10T12:40:49Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* The Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
==== Related and similar projects ====&lt;br /&gt;
&lt;br /&gt;
* [http://cosmicpi.org/ CosmicPi]: A CERN-based project that aims to build the world's largest open-source distributed cosmic ray telescope.  &lt;br /&gt;
* [https://www.hisparc.nl/en/ HiSPARC]: A distributed muon detection network aimed for high-schools and an experience of over 15 years.&lt;br /&gt;
* [https://academic.oup.com/ptep/article/2020/10/103H01/5885093?login=true Thundercloud Project]: Exploring high-energy phenomena in thundercloud and lightning. [https://www.nature.com/articles/d41586-021-00395-3 -&amp;gt; Nature Article]&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. One cluster instance is also running on the main server collecting the data streams from the entire network, finding the online coincidences and writing the coincidence events as well as detailed logs and statistics summaries into the MuonPi InfluxDB database. The source code is available in the [https://github.com/MuonPi/muondetector-cluster cluster github repository].&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
*[[time synchronization|How to set up Time Synchronization of the RPi through the GNSS receiver]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= [[user detectors gallery|Gallery of Users' Detectors]] =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=673</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=673"/>
		<updated>2021-03-10T12:40:15Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* The Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
==== Related and similar projects ====&lt;br /&gt;
&lt;br /&gt;
* [http://cosmicpi.org/ CosmicPi]: A CERN-based project that aims to build the world's largest open-source distributed cosmic ray telescope.  &lt;br /&gt;
* [https://www.hisparc.nl/en/ HiSPARC]: A distributed muon detection network aimed for high-schools and an experience of over 15 years.&lt;br /&gt;
* [https://academic.oup.com/ptep/article/2020/10/103H01/5885093?login=true Thundercloud Project]: Exploring high-energy phenomena in thundercloud and lightning. [https://www.nature.com/articles/d41586-021-00395-3 -&amp;gt; Nature Article]&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. One cluster instance is also running on the main server collecting the data streams from the entire network, finding the online coincidences and writing the coincidence events as well as detailed logs and statistic summaries into the MuonPi InfluxDB database. The source code is available in the [https://github.com/MuonPi/muondetector-cluster cluster github repository].&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
*[[time synchronization|How to set up Time Synchronization of the RPi through the GNSS receiver]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= [[user detectors gallery|Gallery of Users' Detectors]] =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=672</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=672"/>
		<updated>2021-03-10T12:29:13Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup and Operation of the Detector */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
==== Related and similar projects ====&lt;br /&gt;
&lt;br /&gt;
* [http://cosmicpi.org/ CosmicPi]: A CERN-based project that aims to build the world's largest open-source distributed cosmic ray telescope.  &lt;br /&gt;
* [https://www.hisparc.nl/en/ HiSPARC]: A distributed muon detection network aimed for high-schools and an experience of over 15 years.&lt;br /&gt;
* [https://academic.oup.com/ptep/article/2020/10/103H01/5885093?login=true Thundercloud Project]: Exploring high-energy phenomena in thundercloud and lightning. [https://www.nature.com/articles/d41586-021-00395-3 -&amp;gt; Nature Article]&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. This tool is in development phase with more information about it's utilization to come in near future.&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
*[[time synchronization|How to set up Time Synchronization of the RPi through the GNSS receiver]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= [[user detectors gallery|Gallery of Users' Detectors]] =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=671</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=671"/>
		<updated>2021-03-10T12:13:36Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup of the chrony daemon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
=== Setup of the chrony daemon ===&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;br /&gt;
&lt;br /&gt;
You may also look into more detailed outputs with &amp;lt;code&amp;gt;chronyc sourcestats&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;chronyc tracking&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note, that the synchronization via pps is in operation only when a reliable ntp source for the coarse synchronization is available. This means, that during network outages the pulling of the system clock via the pps time pulse will not be provided. One remedy to this would be the inclusion of the GNSS-provided absolute time as a time source for chrony. This still has to be tested and documented yet.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=670</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=670"/>
		<updated>2021-03-10T12:13:16Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup of the chrony daemon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
=== Setup of the chrony daemon ===&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;br /&gt;
&lt;br /&gt;
You may also look in more detailed outputs with &amp;lt;code&amp;gt;chronyc sourcestats&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;chronyc tracking&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note, that the synchronization via pps is in operation only when a reliable ntp source for the coarse synchronization is available. This means, that during network outages the pulling of the system clock via the pps time pulse will not be provided. One remedy to this would be the inclusion of the GNSS-provided absolute time as a time source for chrony. This still has to be tested and documented yet.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=669</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=669"/>
		<updated>2021-03-10T12:10:22Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup of the chrony daemon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
=== Setup of the chrony daemon ===&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;br /&gt;
&lt;br /&gt;
Note, that the synchronization via pps is in operation only when a reliable ntp source for the coarse synchronization is available. This means, that during network outages the pulling of the system clock via the pps time pulse will not be provided. One remedy to this would be the inclusion of the GNSS-provided absolute time as a time source for chrony. This still has to be tested and documented yet.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=668</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=668"/>
		<updated>2021-03-10T12:09:38Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup of the chrony daemon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
=== Setup of the chrony daemon ===&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;br /&gt;
&lt;br /&gt;
Note, that the synchronization via pps is in operation only when a reliable ntp source for the course synchronization is available. This means, that during network outages the pulling of the system clock via the pps time pulse will not be provided. One remedy to this would be the inclusion of the GNSS-provided absolute time as a time source for chrony. This still has to be tested and documented yet.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=667</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=667"/>
		<updated>2021-03-10T12:04:34Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
=== Setup of the chrony daemon ===&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=666</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=666"/>
		<updated>2021-03-10T12:03:18Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&amp;lt;br&amp;gt;&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=665</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=665"/>
		<updated>2021-03-10T12:02:17Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
 # Welcome to the chrony configuration file. See chrony.conf(5) for more&lt;br /&gt;
 # information about usuable directives.&lt;br /&gt;
 # use a server from a public pool of ntp servers&lt;br /&gt;
 pool 2.debian.pool.ntp.org iburst&lt;br /&gt;
 # add another server within the local network to prevent synchronization loss in case of internet outages, not mandatory&lt;br /&gt;
 server 192.168.2.1 iburst&lt;br /&gt;
&lt;br /&gt;
 # add the pps device as a trusted synchronization source&lt;br /&gt;
 refclock PPS /dev/pps0 refid PPS trust&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Finally, restart chronyd with &amp;lt;code&amp;gt;sudo systemctl restart chrony.service&amp;lt;/code&amp;gt; and observe the activity e.g. with:&lt;br /&gt;
&lt;br /&gt;
 pi@raspberrypi:~ $ chronyc sources&lt;br /&gt;
 210 Number of sources = 4&lt;br /&gt;
 MS Name/IP address         Stratum Poll Reach LastRx Last sample               &lt;br /&gt;
 ===============================================================================&lt;br /&gt;
 #* PPS                           0   4   377    17   +195ns[ +823ns] +/-  208ns&lt;br /&gt;
 ^? fb07-unbekannt2.physik.u&amp;gt;     0  10     0     -     +0ns[   +0ns] +/-    0ns&lt;br /&gt;
 ^- ns1.hrz.uni-giessen.de        2   9   377   184   -239us[ -238us] +/-   39ms&lt;br /&gt;
 ^- ns2.hrz.uni-giessen.de        2   9   377   240   -129us[ -127us] +/-   30ms&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=664</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=664"/>
		<updated>2021-03-10T11:50:15Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;br /&gt;
&lt;br /&gt;
In order to discipline the system clock, the pps signal has to be regarded and from the mean time difference a correction has to be applied to the clock speed. This can be realized with the chrony-daemon. Install chrony with &amp;lt;code&amp;gt;sudo apt install chrony&amp;lt;/code&amp;gt; and edit the config file in &amp;lt;code&amp;gt;/etc/chrony/chrony.conf&amp;lt;/code&amp;gt;. Modify or add lines as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;line1&amp;lt;br&amp;gt;&lt;br /&gt;
line2&amp;lt;br&amp;gt;&lt;br /&gt;
line3&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=663</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=663"/>
		<updated>2021-03-10T11:40:47Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:Ppstest-screen.png|thumb|Checking the timepulse signal with ppstest.]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=662</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=662"/>
		<updated>2021-03-10T11:40:07Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[File:ppstest-screen|thumb|Checking the timepulse signal with ppstest.]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=File:Ppstest-screen.png&amp;diff=661</id>
		<title>File:Ppstest-screen.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=File:Ppstest-screen.png&amp;diff=661"/>
		<updated>2021-03-10T11:37:56Z</updated>

		<summary type="html">&lt;p&gt;Hgz: Screenshot of testing the sampling of the timepulse signal with ppstest.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Screenshot of testing the sampling of the timepulse signal with ppstest.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=660</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=660"/>
		<updated>2021-03-10T11:36:26Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=659</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=659"/>
		<updated>2021-03-10T11:36:06Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list.&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;br /&gt;
&lt;br /&gt;
To test the pps functionality, the command-line-tool &amp;lt;code&amp;gt;ppstest&amp;lt;/code&amp;gt; may be used (install with &amp;lt;code&amp;gt;sudo apt install pps-tools&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=658</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=658"/>
		<updated>2021-03-10T11:28:41Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list:&lt;br /&gt;
[[File:Lsmod-pps.png|thumb|lsmod showing the loaded pps_gpio kernel module]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=File:Lsmod-pps.png&amp;diff=657</id>
		<title>File:Lsmod-pps.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=File:Lsmod-pps.png&amp;diff=657"/>
		<updated>2021-03-10T11:27:06Z</updated>

		<summary type="html">&lt;p&gt;Hgz: Screenshot showing the loaded pps_gpio kernel driver module with lsmod.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Screenshot showing the loaded pps_gpio kernel driver module with lsmod.&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=656</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=656"/>
		<updated>2021-03-10T11:21:37Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Install the pps kernel driver module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will activate the kernel pps driver module at startup listening to GPIO pin 18 to which the timepulse output of the uBlox is connected on the MuonPi HAT board. After a restart, one should see the activated driver in the kernel module list:&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=655</id>
		<title>Time synchronization</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Time_synchronization&amp;diff=655"/>
		<updated>2021-03-10T11:17:04Z</updated>

		<summary type="html">&lt;p&gt;Hgz: Created page with &amp;quot;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial describes, how to set up the time synchronization of the system clock by disciplining the kernel of the RPi with the Ublox's PPS (Pulse-Per-Second) signal using [https://chrony.tuxfamily.org/ chronyd].&lt;br /&gt;
&lt;br /&gt;
=== Install the pps kernel driver module ===&lt;br /&gt;
Edit the /boot/config.txt and add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;dtoverlay=pps-gpio,gpiopin=18&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=654</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=654"/>
		<updated>2021-03-10T11:05:32Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Setup and Operation of the Detector */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
==== Related and similar projects ====&lt;br /&gt;
&lt;br /&gt;
* [http://cosmicpi.org/ CosmicPi]: A CERN-based project that aims to build the world's largest open-source distributed cosmic ray telescope.  &lt;br /&gt;
* [https://www.hisparc.nl/en/ HiSPARC]: A distributed muon detection network aimed for high-schools and an experience of over 15 years.&lt;br /&gt;
* [https://academic.oup.com/ptep/article/2020/10/103H01/5885093?login=true Thundercloud Project]: Exploring high-energy phenomena in thundercloud and lightning. [https://www.nature.com/articles/d41586-021-00395-3 -&amp;gt; Nature Article]&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. This tool is in development phase with more information about it's utilization to come in near future.&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
*[[time synchronization|How to set up Time Synchronization of the RPi through the GNSS]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= [[user detectors gallery|Gallery of Users' Detectors]] =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=636</id>
		<title>User detectors gallery</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=636"/>
		<updated>2021-02-10T13:52:09Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
Image:MuonPi-UserSetUp1.jpg|Users setup of the MuonPi detector next to the WiFi router. Although this is an [[wikipedia:Electromagnetic_interference|EMI]] nightmare, the detector works unaffected.&lt;br /&gt;
Image:User detector dl4ina.jpg|User setup of DL4INA with single-channel connected hexagonal scintillator. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=635</id>
		<title>User detectors gallery</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=User_detectors_gallery&amp;diff=635"/>
		<updated>2021-02-10T13:50:37Z</updated>

		<summary type="html">&lt;p&gt;Hgz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
Image:MuonPi-UserSetUp1.jpg|Users setup of the MuonPi detector next to the WiFi router. Although this is an [[wikipedia:Electromagnetic_interference|EMI]] nightmare, the detector works unaffected.&lt;br /&gt;
Imgae:User detector dl4ina.jpg|User setup of DL4INA with single-channel connected hexagonal scintillator. &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=File:User_detector_dl4ina.jpg&amp;diff=634</id>
		<title>File:User detector dl4ina.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=File:User_detector_dl4ina.jpg&amp;diff=634"/>
		<updated>2021-02-10T13:49:04Z</updated>

		<summary type="html">&lt;p&gt;Hgz: Detector setup of user DL4INA&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Detector setup of user DL4INA&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=622</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=622"/>
		<updated>2021-02-03T14:00:26Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Mounting Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy to lose.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=621</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=621"/>
		<updated>2021-02-03T13:59:51Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Mounting Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy to lose.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&amp;quot;External Bias Supply&amp;quot; and &amp;quot;Fixed Input Polarity&amp;quot; were used by us in the development and will not be discussed here further.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515, L503, R115/R215, LED406, P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|-&lt;br /&gt;
| External Bias Supply || use plug-on DC/DC converter for bias voltage  generation  instead  of  on-board regulator || U502, L500, D500, C505, R501, R500, R502 || R515 or L503 ||  || bias voltage supplied by plug-on DC/DC converter module for e.g. supply of other SiPM types (e.g. Hamamatsu)&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=620</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=620"/>
		<updated>2021-02-03T13:56:05Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Mounting Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy to lose.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&amp;quot;External Bias Supply&amp;quot; and &amp;quot;Fixed Input Polarity&amp;quot; were used by us in the development and will not be discussed here further.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515,L503,R115/R215,LED406,P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502, L200, R200, R202, R203, R204, R205, R206, R212, R215, R301, R302, R305, R309, R312, R404, R513, C200, C201, C202, C203, C204, C205, C210, C211, C301, C302, C305, U200, U202, U504, LED404, X2 ||  ||  || single channel&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=619</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=619"/>
		<updated>2021-02-03T13:54:16Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Mounting Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy to lose.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&amp;quot;External Bias Supply&amp;quot; and &amp;quot;Fixed Input Polarity&amp;quot; were used by us in the development and will not be discussed here further.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Full || dual channel, dual polarity, on-board bias supply || R515,L503,R115/R215,LED406,P400 ||  ||  || Default mounting option&lt;br /&gt;
|-&lt;br /&gt;
| Single Channel || Channel 1 only, default input configuration || D502,L200,R200,R202,R203,R204,R205,R206,R212,R215,R301,R302,R305,R309,R312,R404,R513,C200,C201,C202,C203,C204,C205,C210,C211,C301,C302,C305,U200,U202,U504,LED404,X2 ||  ||  || single channel&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=618</id>
		<title>Assembly Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Assembly_Guide&amp;diff=618"/>
		<updated>2021-02-03T13:50:37Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Mounting Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide on how to populate our MuonPi-PCB, using the construction kit. You can get a kit or a fully assembled PCB by contacting us [http://www.muonpi.org/contact.html here].&lt;br /&gt;
&lt;br /&gt;
All components in this kit (except for the pin headers) are surface-mount devices (SMD).&lt;br /&gt;
Most of these parts are only a few millimeters in size and are prone jump very far, should you slip with the tweezers.&lt;br /&gt;
Soldering these requires steady hands and a bit of technique, but this guide aims to help you with that.&lt;br /&gt;
&lt;br /&gt;
== The Kit ==&lt;br /&gt;
The Kit contains all the parts you need to set up your very own particle detector using your Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
Contents of the Kit are:&lt;br /&gt;
* The plastic scintillator (generously provided by [https://eljentechnology.com/ Eljen Technology])&lt;br /&gt;
* The bare printed circuit board ([[Muonpi board]])&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Satellite_navigation GNSS] antenna&lt;br /&gt;
* Components to mount on the PCB (Resistors, Capacitors, Inductors, ICs, etc.)&lt;br /&gt;
* Bill of materials (BOM). There's also an [https://muonpi.org/bom/ibom.html interactive online version] which simplifies the search for components on the board and has a place-and-tick checkmark for the already mounted components to maintain the overview during soldering.&lt;br /&gt;
&lt;br /&gt;
The individual components of the kit are glued to a nametag using tape, as can be seen in the picture.&lt;br /&gt;
[[File:Parts-packaging.jpg|thumb|Example of how parts in the detector PCB kit are packaged]]&lt;br /&gt;
Because of the size and difficulty labeling the parts, they are packaged using paper labels and clear tape. &lt;br /&gt;
Getting the parts out of their packaging has to be done quite carefully, as they are easy to lose.&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
The bare essential tools are:&lt;br /&gt;
* soldering iron&lt;br /&gt;
* solder&lt;br /&gt;
* (metal) tweezers &lt;br /&gt;
* solder fume extractor&lt;br /&gt;
additional:&lt;br /&gt;
* flux&lt;br /&gt;
* solder wick&lt;br /&gt;
* vise or helping hands&lt;br /&gt;
* scalpel/scissors&lt;br /&gt;
* magnifying glass&lt;br /&gt;
&lt;br /&gt;
Additionally, we recommend to choose a brightl workplace, as dim lights and small components can lead to eye strain and head aches.&lt;br /&gt;
&lt;br /&gt;
Generally,the smaller the tip of your soldering iron is, the better, for small component soldering at least.&lt;br /&gt;
Of course if you have other solder tips, like ones with a solder depot, you can use those too.&amp;lt;br&amp;gt;&lt;br /&gt;
In any case whatever tools you need to get the job done, are the correct tools to use.&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
The schematic, layout and BOM of the current hardware version can be found on the [https://easyeda.com/MuonPi/cosmic_shower_detector_v1-52b8a2536bb6468e9f48412a774951d0_copy_copy easyEDA project page].&lt;br /&gt;
While soldering, finding the right pad, where a specific components has to go, can be quite difficult.&lt;br /&gt;
The labels on the PCB are small and space for them is very limited which makes some of them hard to read and find.&lt;br /&gt;
To help you find the correct solder pads, we recommend to have a computer nearby where you can open the [https://easyeda.com/editor#id=ad78628187d94b9cb54d8735233128d7 schematics] and use the search function.&lt;br /&gt;
Alternatively you can print out the layout that is attached on the easyEDA project page.&lt;br /&gt;
&lt;br /&gt;
=== Mounting Options ===&lt;br /&gt;
The BOM specifies multiple mounting options, such as: &amp;quot;Full&amp;quot;, &amp;quot;Single Channel&amp;quot;, &amp;quot;External Bias Supply&amp;quot;, &amp;quot;Fixed Input Polarity&amp;quot;.&lt;br /&gt;
&amp;quot;External Bias Supply&amp;quot; and &amp;quot;Fixed Input Polarity&amp;quot; were used by us in the development and will not be discussed here further.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Mounting Option !! Description !! Do Not Mount !! Mount !! Modify !! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| Example || Example || Example || Example || Example || Example&lt;br /&gt;
|-&lt;br /&gt;
| Example || Example || Example || Example || Example || Example&lt;br /&gt;
|}&lt;br /&gt;
The default configuration of the kit contains only one scintillator, therefore only one channel of the detector electronics will be used at a time.&lt;br /&gt;
In that case, the &amp;quot;Single Channel&amp;quot; mounting option would be sufficient.&lt;br /&gt;
However the number of components in the kit follows the &amp;quot;Full&amp;quot; configuration, and mounting all components is still recommended.&lt;br /&gt;
Just mounting all the parts that are included in the kit will lead to a working PCB with both channels working.&lt;br /&gt;
Please [https://muonpi.org/contact.html contact us], if you are interested in a two scintillator setup.&lt;br /&gt;
&lt;br /&gt;
== Assembly ==&lt;br /&gt;
First things first, you should setup your workspace with all parts layed out, along with the BOM and all the tools you might need.&lt;br /&gt;
Personally, I like to sort the parts into categories: Resistors, Capacitors, Inductors, ICs and others.&lt;br /&gt;
This helps to save time and gives a quick overview of your soldering progress.&lt;br /&gt;
In principle the choice which components to mount first comes down to personal preference.&lt;br /&gt;
A helpful guideline is to mount parts depending on their height.&lt;br /&gt;
Lower, smaller parts should be mounted first, as to not interfere too much in the later stages of assembly.&lt;br /&gt;
This is why the GPIO headers should be among the last components to be mounted.&lt;br /&gt;
&lt;br /&gt;
Once you are set up, you can turn on your soldering iron and fume extractor and start soldering.&lt;br /&gt;
&lt;br /&gt;
=== Tips on SMD soldering ===&lt;br /&gt;
SMD components are small and difficult to solder.&lt;br /&gt;
The easiest components to solder are the resistors and capacitors.&lt;br /&gt;
Start with these to get comfortable with SMD soldering first, then proceed to the more difficult ICs.&amp;lt;br&amp;gt;&lt;br /&gt;
A quick guide to SMD soldering can be found at [https://www.sparkfun.com/marcomm/SFE03-0010-KitCard-SolderingSMD-ReaderSpreads.pdf sparkfun.com].&lt;br /&gt;
&lt;br /&gt;
Be careful with the tip of the iron and the PCB. Too much heat and scraping of the pads can remove the top layer from the PCB or even rip the pad off the PCB.&lt;br /&gt;
The later, depending on the pad this happens to, is very likely to completely brick the board and rendering it unusable.&lt;br /&gt;
&lt;br /&gt;
=== Soldering Workflow ===&lt;br /&gt;
[[File:Closeup of one soldered pad and a resistor.jpg|thumb|left|Closeup of a pad with solder and a resistor]]&lt;br /&gt;
Take your BOM and choose one of the resistor/capacitor values to begin with and identify the pad label, where the part is supposed to be placed.&lt;br /&gt;
Now take your soldering iron and heat one side of the pad. After a couple of seconds of heating, add some solder to the pad.&lt;br /&gt;
Take out one of the components out of it's packaging and grab onto it with the tweezers as indicated in the picture on the right.&lt;br /&gt;
Heat the solder blob and slide the component into the molten solder from the side.&lt;br /&gt;
This ensures covering of the components contacts.&lt;br /&gt;
Placing the component into the blob from above can lead to solder bridges underneath the component, which will render the component useless.&lt;br /&gt;
&lt;br /&gt;
Once one side of the component is fixed, it's good practice to lightly press down on the component and remelt the solder.&lt;br /&gt;
Doing this will help to mount the component flush to the board.&lt;br /&gt;
Although not always necessary, doing this will help to avoid solder bridges, especially between the legs of ICs.&lt;br /&gt;
[[File:Flush component.jpg|x300px|thumb|right|Component lifted on one side (top); pressed down and after remelting the solder (bottom)]]&lt;br /&gt;
&lt;br /&gt;
It is a good idea to cross out the components on the BOM once they are soldered.&lt;br /&gt;
Should in the end a label on the BOM be left unmarked you can check to not miss any components.&lt;br /&gt;
&lt;br /&gt;
When you are finished soldering all parts of one kind, pause and check you haven't missed any.&lt;br /&gt;
Only then move on to the next group of parts.&lt;br /&gt;
&lt;br /&gt;
=== Integrated Circuits (ICs) ===&lt;br /&gt;
Once all passive Components are placed and double checked, we can move on to the integrated circuits.&lt;br /&gt;
Soldering these is considerably more difficult, especially the ADC and DAC (U401 &amp;amp; U402 in v3.x) have a very small pad pitch.&lt;br /&gt;
Solder bridges are almost unavoidable and need to be dealt with.&lt;br /&gt;
&lt;br /&gt;
First, solder is added to one pad on a corner of the IC footprint.&lt;br /&gt;
Then, just like the passive components, the IC is moved into the molten solder.&lt;br /&gt;
It is very important to align all the legs of the IC on their respective pads.&lt;br /&gt;
Proceed to fix one of the other legs, preferably a leg on the diagonally opposite side.&lt;br /&gt;
The remaining unsoldered legs can now be soldered to the board.&lt;br /&gt;
&lt;br /&gt;
If solder bridges are created, they need to be removed.&lt;br /&gt;
One possible method to remove solder bridges is the usage of flux.&lt;br /&gt;
Flux is a mixture of multiple compounds that remove and prevent build up of oxides on the solder blob.&lt;br /&gt;
Additionally it increases the surface tension of the molten solder and therefor promotes splitting of solder blobs.&lt;br /&gt;
So just using a good amount of flux can fix solder bridges.&lt;br /&gt;
&lt;br /&gt;
However if there is too much solder on the pads, bridges cannot be fixed just using flux. In that case we need to remove some solder.&lt;br /&gt;
Solder wicks are very useful for this task as its tight copper webbing wicks up any excess solder.&lt;br /&gt;
Place the wick on the solder blob and using the hot soldering iron, press the wick on the solder from above.&lt;br /&gt;
After a while, once the wick is hot enough, the solder will melt and be picked up by the wick.&lt;br /&gt;
Remove the wick and soldering iron simultaneously, otherwise the wick will be soldered to the pad instead, and pulling on the wick in that case can rip the pad off of the PCB.&lt;br /&gt;
&lt;br /&gt;
In the timelapse you might be able to catch, how I soldered the ADC and DAC (U401 &amp;amp; U402 in v3.x).&lt;br /&gt;
Since the pitch is very small and solder bridges are very likely, I didn't even bother trying to avoid them.&lt;br /&gt;
After fixing the IC in place on one leg, I added a lot of solder to all pins and pads in one big blob.&lt;br /&gt;
With the addition of flux, most of the solder was removed using the solder wick, in the hopes that some solder would remain under the legs.&lt;br /&gt;
On first sight it seemed to work, but testing of the board revealed that something did not work.&lt;br /&gt;
Knowing this technique is not 100% reliable, a quick reheat with careful addition of small amounts of solder fixed the issue and the board was fully operational.&lt;br /&gt;
 &lt;br /&gt;
{{#evt:service=youtube|id=E3kZMtjD76c|alignment=right|container=frame|description=Timelapse of IC soldering ([https://www.youtube.com/watch?v=E3kZMtjD76c link to youtube])|dimensions=480}}&lt;br /&gt;
&lt;br /&gt;
=== Hints and Tricks ===&lt;br /&gt;
There are some known points prone to failure during mounting which require increased attention. Following is a (growing) list of those potential pitfalls and some useful hints arising from our mounting experience as well as from user feedback:&lt;br /&gt;
* The marking for pin 1 of U102/U202 (SN74LVC1G3157) is very difficult to recognize. When you place the IC in such a way that you are able to read the printed package marking (e.g. through a magnifying glass or microscope) in a normal orientation, i.e. from left to right, then pin 1 should be at the lower left corner.&lt;br /&gt;
* When soldering the edge-mount SMA connector, make sure to supply enough heat (or power) to the soldering iron tip. On the other hand, do not stay with the tip too long at the connector since an excess of heat may damage the connectors dielectric.&lt;br /&gt;
* Be careful when soldering the u.Fl (miniature coax) connectors. Do not let the solder touch the connector rim! Apply plenty of solder to the Gnd pins to bridge the gap to the lateral pads.&lt;br /&gt;
&lt;br /&gt;
== Testing the board ==&lt;br /&gt;
'''How-To:'''&lt;br /&gt;
# Assemble the MuonPi-PCB as described in this guide&lt;br /&gt;
# [[Raspberry_Pi_Setup#MuonPi_Setup|Software Setup]]&lt;br /&gt;
# [[Hardware_Setup|Hardware Setup]]&lt;br /&gt;
To test your fully assembled board, follow the Software- and Hardware-Setup How-To.&lt;br /&gt;
Once everything is installed and connected your MuonPi is ready to boot.&lt;br /&gt;
Since the Version 2.0 of the muondetector-deamon will set default values for the thresholds and bias-voltage.&lt;br /&gt;
With these defaults the blue Ch1-LED should start flashing irregularly.&lt;br /&gt;
You are now seeing particles pass through your scintillator!&lt;br /&gt;
&amp;lt;!-- Powering the Pi with improper alignment may damage the electronics, so make sure the connector is properly aligned.&lt;br /&gt;
Next step is connecting the signal and bias-voltage cables to the [[preamplifier]] of the [[Silicon_photomultiplier|SiPM]] and your MuonPi-PCB.&lt;br /&gt;
'''Be careful with the UFL connectors as they are very delicate and only apply moderate pressure from above.'''&lt;br /&gt;
The GPS/GNSS antenna can now be screwed to the SMA connector. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=597</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=597"/>
		<updated>2021-01-18T09:48:23Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Gallery of Users' Detectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. This tool is in development phase with more information about it's utilization to come in near future.&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= [[user detectors gallery|Gallery of Users' Detectors]] =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=596</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=596"/>
		<updated>2021-01-18T09:47:20Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Users' Detectors Galery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. This tool is in development phase with more information about it's utilization to come in near future.&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= Gallery of Users' Detectors =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=595</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Main_Page&amp;diff=595"/>
		<updated>2021-01-18T09:45:49Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Admin Area */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The MuonPi Cosmic Detector Project =&lt;br /&gt;
The MuonPi Project is a [https://www.raspberrypi.org/ RaspberryPi]-based system using an inexpensive plastic [[Scintillator|scintillator]] + [[Silicon photomultiplier|SiPM]] photo sensor to detect muons from cosmic air showers with a time-stamping accuracy of several tens of nanoseconds utilizing the [https://www.u-blox.com/en/product/neo-m8-series u-blox NEO-M8N GNSS] module's &amp;quot;timemark&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==== Learn about cosmic radiation ====&lt;br /&gt;
* Get started with [[Cosmic Rays]], especially [[Muon]]s&lt;br /&gt;
&lt;br /&gt;
*[https://www.vox.com/the-highlight/2019/7/16/17690740/cosmic-rays-universe-theory-science Extremely powerful cosmic rays are raining down on us. No one knows where they come from.] But with large-scale experiments, scientists around the world are determined to find out. ''Vox'' Jul 25, 2019&lt;br /&gt;
&lt;br /&gt;
*[https://home.cern/science/physics/cosmic-rays-particles-outer-space Cosmic rays: particles from outer space] Earth is subject to a constant bombardment of subatomic particles that can reach energies far higher than the largest machines. ''CERN''&lt;br /&gt;
&lt;br /&gt;
* [https://www.weltderphysik.de/mediathek/podcast/kosmische-strahlung/ &amp;quot;Kosmische Strahlung&amp;quot;] Podcast (in German) on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/thema/bmbf/astro-undastroteilchenphysik/der-kosmischen-strahlung-auf-der-spur/ &amp;quot;Der kosmischen Strahlung auf der Spur&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
* [https://www.weltderphysik.de/gebiet/universum/news/2017/kosmische-teilchen-mit-extragalaktischem-ursprung/ &amp;quot;Kosmische Teilchen mit extragalaktischem Ursprung&amp;quot;] article (in German)  on [https://www.weltderphysik.de weltderphysik.de]&lt;br /&gt;
&lt;br /&gt;
==== Learn about the detectors ====&lt;br /&gt;
* Basics of [[Scintillator]]s&lt;br /&gt;
* Find out about [[Silicon photomultiplier|Silicon Photomultipliers]]&lt;br /&gt;
* How our [[The Detector|Detectors]] are assembled&lt;br /&gt;
&lt;br /&gt;
= The Hardware =&lt;br /&gt;
&lt;br /&gt;
=== SiPM PCB ===&lt;br /&gt;
The SiPM photo sensor which detects the dim light generated inside the scintillation detector is mounted on a small [[Sipm_board|SiPM board]]. Different numbers of SiPMs and read-out configurations can be realized through it's flexible design.&lt;br /&gt;
&lt;br /&gt;
=== Preamplifier ===&lt;br /&gt;
The [[preamplifier]] is located in close vicinity to the [[sipm_board|SiPM photodetector board]] and amplifies the weak signals for transmission to the [[muonpi_board|MuonPi]] board, where they are further processed and evaluated.&lt;br /&gt;
&lt;br /&gt;
=== The MuonPi-Board ===&lt;br /&gt;
The main signal processing, voltage generation and parameter monitoring and adjustment is done on the Raspberry Pi plug-on [[muonpi_board|MuonPi Board]]. The board's design is open source hardware and exhibits only commercially available off-the-shelf components which can be obtained from several distributors. With some soldering experience, the MuonPi HAT can be assembled utilizing a standard soldering equipment. A how-to guide and useful hints are available in the [[Assembly Guide|Assembly Guide]].&lt;br /&gt;
&lt;br /&gt;
= The Software =&lt;br /&gt;
The MuonPi software collection is entirely open source and [https://github.com/MuonPi available on github]&lt;br /&gt;
It consists of several components:&lt;br /&gt;
* '''muondetector-daemon''' The main control program running as a background system service on the RPi. The daemon configures, controls and supervises the components on the MuonPi HAT board, handles the comunication to the u-Blox chip and to the outside world via MQTT link and direct access socket, monitors system parameters, such as temperature, voltages, curent, rates etc., performs statistics collections, calculations and logging and much more. The daemon can be installed through the standard system software management tools (such as apt) from our [https://archive.muonpi.org package repository] or compiled from the [https://github.com/MuonPi/muondetector github source] and is everything which is needed to operate a MuonPi detector.&lt;br /&gt;
* '''muondetector-gui''' A graphical user interface (GUI) program which can be launched on any computer in the same network as the MuonPi detector in order to monitor and adjust all operation parameters of the detector, if required. The GUI is available for [https://archive.muonpi.org download] as binary package for several platforms (Raspbian, Ubuntu, Windows) or can be compiled from the current [https://github.com/MuonPi/muondetector github master branch].&lt;br /&gt;
* '''muondetector-login''' A small command line helper tool to initially set up the MQTT telemetry link. The program will ask for the supplied MQTT credentials and stores them locally in encrypted form for continuous use.&lt;br /&gt;
* '''muondetector-cluster''' Allows the operation of a multi-detector cluster as an entity. The program is the cluster head or interface towards the server, searches for coincidences within the cluster and sends the combined coincidence events instead of the single event telegrams to the server. This tool is in development phase with more information about it's utilization to come in near future.&lt;br /&gt;
&lt;br /&gt;
= Setup and Operation of the Detector =&lt;br /&gt;
Here you find a collection of HOW-TOs useful to set-up and operate a detector:&lt;br /&gt;
&lt;br /&gt;
*[[The Detector|How to assemble the detector plates]]&lt;br /&gt;
&lt;br /&gt;
*[[Assembly Guide|MuonPi HAT assembly guide]]&lt;br /&gt;
&lt;br /&gt;
*[[Hardware Setup|How to set up the detector hardware]]&lt;br /&gt;
&lt;br /&gt;
*[[Raspberry Pi Setup|How to install and set up the MuonPi software]]&lt;br /&gt;
&lt;br /&gt;
*[[MuonPi - Grafana|How to view your detector data using Grafana]]&lt;br /&gt;
&lt;br /&gt;
*Detector Surveillance through a [[MuonPi Telegram Bot|Telegram Bot]]&lt;br /&gt;
&lt;br /&gt;
The completed setup is fairly insensitive to the location where it will operate.&lt;br /&gt;
Basic requirement is a good GPS signal, low humidity and obviously power and network connectivity.&lt;br /&gt;
A stable temperature for the scintillator and preamp is desirable, as it affects the noise level of the setup.&lt;br /&gt;
Muons will penetrate several meters of granite rock, so placing the detector in the basement leaves the muon measurements unaffected.&lt;br /&gt;
However due to radon collection in basement rooms and potassium decay a slightly higher natural radioactive background can be observed.&lt;br /&gt;
&lt;br /&gt;
In case there are problems with the set-up or operation of the detector, have a look in the [[Troubleshooting]] section.&lt;br /&gt;
&lt;br /&gt;
= Related Articles =&lt;br /&gt;
&lt;br /&gt;
[[News and articles]] about cosmic rays and similar projects.&lt;br /&gt;
&lt;br /&gt;
= Other languages =&lt;br /&gt;
&lt;br /&gt;
* [[Main Page/de]]&lt;br /&gt;
&lt;br /&gt;
= Admin Area = &lt;br /&gt;
&lt;br /&gt;
Useful [[resources]] for admins.&lt;br /&gt;
&lt;br /&gt;
= Users' Detectors Galery =&lt;br /&gt;
&lt;br /&gt;
= About this Wiki =&lt;br /&gt;
* How to edit? [[help for creators]]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings List of config variables]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailing list of new MediaWiki version announcements]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Sandbox page for testing/playing:&lt;br /&gt;
* [[Sandbox]]&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=The_Detector&amp;diff=594</id>
		<title>The Detector</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=The_Detector&amp;diff=594"/>
		<updated>2021-01-15T18:25:44Z</updated>

		<summary type="html">&lt;p&gt;Hgz: /* Assembly Steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The current detector design is based on a plastic scintillator, wrapped in different types of foil, and a Silicon Photomultiplier for the collection of scintillation light. In this article, the assembly of a detector module will be explained. &lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= How the detector works = &lt;br /&gt;
&lt;br /&gt;
Simple working principle based on the scintillator and SiPM page, putting it in context with our project.&lt;br /&gt;
&lt;br /&gt;
= How to build a muon detector =&lt;br /&gt;
&lt;br /&gt;
== Material List ==&lt;br /&gt;
Independent of the size and shape of the scintillator the following materials and tools are used for building a scintillator detector:&lt;br /&gt;
[[File:Detector Assembly 001.jpg|thumb|Fully-wrapped detectors with label]]&lt;br /&gt;
* Kapton stencil &lt;br /&gt;
* Teflon foil&lt;br /&gt;
* Aluminum foil&lt;br /&gt;
* Reflective foil&lt;br /&gt;
* Black tape&lt;br /&gt;
* Pond liner (thick black foil)&lt;br /&gt;
* Optical grease&lt;br /&gt;
* Scintillator&lt;br /&gt;
* Silicon Photomultiplier (SiPM) on PCB chip&lt;br /&gt;
* Preamplifier&lt;br /&gt;
* Scalpel&lt;br /&gt;
* Scissors&lt;br /&gt;
* Tweezer&lt;br /&gt;
&lt;br /&gt;
== Assembly Steps == &lt;br /&gt;
&lt;br /&gt;
# '''Cutting the scintillator:''' In the case for the MuonPi detectors the scintillators are provided as plates of 10x250x250 mm^3. Depending on the [[#Detector geometry|desired geometry]], the scintillators are cut with a circular saw to fit the design. Afterwards, all edges are polished. &lt;br /&gt;
# '''Cutting the Kapton stencil:''' The stencil is used as a template and carrier for cutting the thin Teflon and aluminum foil. It is usually cut in the same base shape as the scintillator but slightly larger to accommodate the edges of the scintillator. The stencil is reusable and only has to be crafted once.     &lt;br /&gt;
# '''Cutting and wrapping the Teflon foil:''' The thin layer of Teflon foil is unrolled and laid out on top of the stencil, removing all wrinkles carefully. Guided by the outlines of the stencil, the Teflon foil is cut using a sharp scalpel. Depending on the desired thickness of the Teflon on the scintillator, this step is repeated several times. Finally, the scintillator is placed with its top face centered on top of the Teflon cut-out and the surplus of Teflon is carefully folded upwards to cover the edges of the scintillator. Now the scintillator can be flipped such that the top faces downwards and the stencil is carefully removed. To cover the other face, this step is repeated.     &lt;br /&gt;
# '''Cutting and wrapping the aluminum foil:''' The aluminum foil, while using the stencil, is prepared and attached to the scintillator in a similar fashion. The foil is fixed with reflective tape.&lt;br /&gt;
# '''Cutting and taping the pond liner:''' A layer of thick pond liner is used to cover both faces of the scintillator. For this, the base shape of the scintillator is used to cut the liner. Using double-sided tape, the liner is glued on both faces. &lt;br /&gt;
# '''Taping the edges:''' Black tape is used to cover all left-over uncovered spots of the scintillator apart from the light-collection faces. Now the scintillator is ready to be coupled with the photo-detector.  &lt;br /&gt;
# '''Attaching the SiPM:''' The SiPM sitting on its PCB chip and equipped with a reflective mask is covered with a small amount of optical grease and is pressed against the light collection surface. While maintaining the pressure, the chip is fixed to the scintillator with black tape. Since the preamplifier and the SiPM are designed modular, the preamplifier chip can be plugged on top of the SiPM chip.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
Detector_Assembly_002.jpg|Kapton stencil and tools&lt;br /&gt;
Detector_Assembly_003.jpg|Teflon foil outlined on stencil&lt;br /&gt;
Detector_Assembly_004.jpg|Prepared aluminum foil ready for assembly&lt;br /&gt;
Detector_Assembly_005.jpg|Both types of foil fixed with reflective tape&lt;br /&gt;
Detector_Assembly_006.jpg|Layer of pond liner added&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We have a '''time lapse video of a full detector assembly run''' on YouTube [https://www.youtube.com/watch?v=7_O-eDJvdJU here].&lt;br /&gt;
&lt;br /&gt;
= Detector Specifications =&lt;br /&gt;
Our detectors come in many different geometries and configurations. &lt;br /&gt;
== Detector Geometry ==&lt;br /&gt;
Several different detector geometries can be build from the raw scintillator plates of type EJ-248M provided by our supplier [https://eljentechnology.com/products/plastic-scintillators Eljen]. The uncut scintillator plates have a dimension of 10x250x250 mm^3. Additionally, we recycle former hexagonal &amp;quot;veto&amp;quot; plastic scintillators from the TAPS detector of the [https://wwwa2.kph.uni-mainz.de/a2detector-system/ A2 detector system]&lt;br /&gt;
=== The Original ===&lt;br /&gt;
The original detector geometry is chosen to maximize the light collection efficiency while having a large area for a high muon count rate. This geometry was determined both experimentally &amp;lt;ref&amp;gt;L. Nies, ''Development of a SiPM-based readout-module for the characterization of various scintillation materials'', (University of Giessen, Bachelor Thesis, August 2017), [https://www.uni-giessen.de/fbz/fb07/fachgebiete/physik/institute/iipi/arbeitsgruppen/ag-brinkmann/forschung/theses/Nies_Lukas_BSc_Thesis_SiPM.pdf link]&amp;lt;/ref&amp;gt; and theoretically &amp;lt;ref&amp;gt;S. Peter, ''Simulation of Cosmic Air Showers and Simulation Studies for the Geometry Optimization of a Scintillation Detector'', (University of Giessen, Bachelor Thesis, September 2019), [https://www.uni-giessen.de/fbz/fb07/fachgebiete/physik/institute/iipi/arbeitsgruppen/ag-brinkmann/forschung/theses/Bachelor_Sven_Peter.pdf link]&amp;lt;/ref&amp;gt; to yield the best performance for a given detector area. &lt;br /&gt;
=== The Original - Half Size ===&lt;br /&gt;
The U-BLOX chip can only assign accurate timestamps to a limited amount of events per second. A high muon flux can lead to a large dead time (time interval in which the detector is &amp;quot;blind&amp;quot; to events). With the Original type detector, we currently (HAT version 3.1) encounter a deadtime of 20% to 30%, depending on the threshold level. In practice, this means that we lose about one-third of all events. From an economic point of view, it makes sense to reduce the detector size to reduce the muon flux to reduce the dead time. Cutting the Original in half will help to make the detector more efficient (tests pending).&lt;br /&gt;
=== The Hexagonal ===&lt;br /&gt;
Reusing the &amp;quot;veto&amp;quot; plastic scintillators from the TAPS detector, we have an excellent small and versatile detector for measuring cosmic muons. Significantly smaller than the standard type, the detector dead time imposes no problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
scintillator_original_geometry.png|Original Geometry&lt;br /&gt;
scintillator_original_half_geometry.png|Original Half Geometry&lt;br /&gt;
scintillator_hex_geometry.png|Hex Geometry&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Detector label ==&lt;br /&gt;
The detectors are labeled for proper documentation after the assembly. On the label, the following information about the detector is persisted:&lt;br /&gt;
* The detector's serial number (SN) which allows us to trace the history of a detector.&lt;br /&gt;
* The scintillator base material&lt;br /&gt;
* The type of the SiPM photosensor&lt;br /&gt;
* How the SiPM sensor is configured. For multiple-SiPM readout, several possible configurations exist, such as parallel, series or hybrid.&lt;br /&gt;
* The operation voltage (reverse bias) at which the detector was tested.&lt;br /&gt;
* Date of assembly and signature of the assembling person&lt;br /&gt;
&lt;br /&gt;
[[File:Detector-label_new.png|thumb|Label for the detectors.]]&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hgz</name></author>
		
	</entry>
</feed>