source: firmware/ShutterController/docs/FactShutter.tex@ 17198

Last change on this file since 17198 was 14280, checked in by boccone, 12 years ago
first drfat of the manual
File size: 10.1 KB
Line 
1\documentclass[12pt,a4,twoside]{article}
2
3\usepackage[english]{babel}
4\usepackage{graphicx}
5\usepackage{color}
6\usepackage{cite}
7\usepackage[mathcal]{eucal}
8\usepackage{amsmath}
9\usepackage{footnote}
10\usepackage{multirow}
11\usepackage{eurosym}
12\usepackage{url}
13\usepackage{hyperref}
14% Normal DIN A4 page format
15%
16\setlength{\marginparwidth}{0cm}
17%%\setlength{\evensidemargin}{0cm}
18%\setlength{\textheight}{23cm}
19%\setlength{\textwidth}{17.5cm}
20%%\setlength{\marginparwidth}{-2cm}
21\setlength{\evensidemargin}{0cm}
22\setlength{\oddsidemargin}{0cm}
23%\setlength{\voffset}{-2cm}
24\setlength{\hoffset}{-0.5cm}
25\textheight 20.5cm
26\textwidth 17.0cm
27\oddsidemargin 10pt
28\evensidemargin 10pt
29\setlength{\topmargin}{0.0cm}
30\addtolength{\topmargin}{-30pt}
31\addtolength{\textheight}{60pt}
32%distance between paragraphs
33\setlength{\parindent}{0.0em}
34\setlength{\parskip}{5pt plus 2pt minus 1pt}
35%%%%%%%%%%%%%% To give more room to figures %%%%%%%%%%%%%%%%%%%%%%%
36\setcounter{topnumber}{9}
37\setcounter{bottomnumber}{9}
38\setcounter{totalnumber}{9}
39\renewcommand{\textfraction}{0.0}
40\renewcommand{\topfraction}{1.0}
41\renewcommand{\bottomfraction}{1.0}
42%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43\frenchspacing
44\sloppy
45%%%%%%%%%%%%%%%%%%%%%%%% Page Headings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46\usepackage{fancyhdr}
47\pagestyle{fancy}
48%\rhead{Dr. V. Boccone}
49%\lfoot{\thepage}
50%\rfoot{\thepage}
51\usepackage{lastpage}
52\cfoot{\thepage\ of \pageref{LastPage}}
53
54\makeatletter
55\renewcommand{\@maketitle}{
56\newpage
57 \null
58 \vskip 2em%
59 {\LARGE \bf \@title \par}%
60 {\@author \par}
61 \par} \makeatother
62
63
64
65
66\def\mul{\multicolumn}
67\def\dyfr{\D\frac}
68\def\mysection#1{\section{#1}\label{sec: #1}}
69\def\mysubsection#1{\subsection{#1}\label{subsec: #1}}
70\def\mysubsubsection#1{\subsubsection{#1}\label{subsubsec: #1}}
71\def\mysubsubsubsection#1{\paragraph{#1}\label{subsubsubsec: #1}{~}}
72\setcounter{secnumdepth}{5}
73\def\version{v0.1 Draft}
74
75\begin{document}
76\title{FACT Shutter User Guide - \version}
77\author{V.~Boccone} % Dr.
78\maketitle
79%\vspace*{0 mm}
80%\address{D\'epartement de physique nucl\'eaire et corpusculaire (DPNC),
81% 24, Quai Ernest-Ansermet \\
82%1211 Gen\'eve \\
83%{\rm E-mail: boccone@cern.ch}}
84\vspace*{-54mm}
85\begin{figure}[h]
86\includegraphics[width=40mm]{unigeLogo.jpg}
87\end{figure}
88\vspace*{-28mm}
89{\flushright
90\hfill{\bf FACT Shutter (ab)User Guide - \version}\\
91\hfill{\today}\\
92\hfill{boccone@cern.ch}}
93\vspace*{40 mm}
94
95\section{\label{sec:1} System overview}
96The new remotely controllable shutter system for the FACT telescope is built around two LA23 low voltage 24~V linear actuators from Linak\footnote{Linak AG} driven by two VHN-5019 motor driver which are controlled by an Arduino Ethernet micro controller board.
97
98The two linear actuators are fixed on a modified of the T-shaped cable support plates and on a L-shaped support which is shrewd to the lid. The T and L-shaped supports are made in blue anodized aluminum and are shown in Fig.\ref{figShutterPhoto}.
99
100\begin{figure}[b!]
101\centering
102\includegraphics[width=0.49\textwidth]{shutter_photo1.jpg}
103\includegraphics[width=0.49\textwidth]{shutter_photo2.jpg}
104\caption{\label{figShutterPhoto} {Photograph of the installed shutter motor}}
105\end{figure}
106
107The Arduino is an open-source electronics prototyping platform based on the ATmega AVR micro-controller line. We chose the {\bf Arduino Ethernet} model which mounts a ATmega328 micro-controller with has 32 KB of ROM and 2 KB of SRAM and it already includes a 10 Mbit ethernet interface using a WizNet W5100 chipset.
108
109The Arduino boards feature a bus like structure on the sides where composed by two lines of pass through connectors where Arduino compatible boars (shields) can be plugged in. Arduino shields are normally stackable
110and more shields can be mounted on one controller, provided that their pinout are compatibles.
111\begin{figure}[b!]
112\centering
113\includegraphics[width=1\textwidth]{shutter_sketch.pdf}
114\caption{\label{figShutterSketch} {Sketch of the shutter system}}
115\end{figure}
116
117A sketch of the new shutter system is shown in Fig.\ref{figShutterSketch}. The two motors are connected to an Arduino\cite{arduino} shield which contains two VHN-5019 motor drivers which also enable current sensing. A filter/amplifier shield has been developed to reduce the noise on the position sensor and on the current measurement which is mainly caused by the length of the cables to the telescope (about 35 m).
118
119The firmware can be uploaded in the Arduino through a standard RS232 serial port although an USB to Serial converter adapter is provided with the board. The firmware which is currently uploaded provide a simple web server with two button linked to the opening and closing commands of the shutter.
120
121\subsection{The motor controller shield}
122The motor controller shield is a {\bf Pololu Dual VNH5019 Motor Driver Shield\footnote{\href{http://www.pololu.com/catalog/product/2502}{http://www.pololu.com/catalog/product/2502}}}. The schematic of the shield and the layout of the connection are shown in Fig.\ref{figMotorShield} and Fig.\ref{figMotorShieldUse} respectively.
123\begin{figure}[b!]
124\centering
125\includegraphics[width=0.77\textwidth]{pololu_sch_small.png}
126\caption{\label{figMotorShield} {Diagram of the dual VHN5019 motor driver Arduino shield}}
127\end{figure}
128
129Each of the VHN-5019 is able to control - with few external components - a mid-high power motor using continuous current or Pulse Width Modulation (PWM) and - in addition - grants the possibility of performing the motor current sensing using the A0 ({\bf M1CS} signal) and A1 ({\bf M2CS} signal) Arduino analog inputs by embedding on the chip a current to voltage converter with a current sensing coefficient of 0.14 V/A.
130
131Other then the A0 and A1 Arduino analog inputs the shield uses three additional digital I/O Arduino ports for each motors.
132The {\bf MxINA} and {\bf MxINB} signals, connected to pins 2/3 for motor 1 and pins 7/8 for motor 2, define the status of each motor (on/off) while the {\bf MxPWM} signals, connected to pins 5 and 6 for motor 1 and motor 2 respectively, define the speed.
133
134The motors together with the main motor power supply (24~V) are connected to the front 6-ways connector as indicated in the Fig.\ref{figMotorShieldUse}.
135%In view of an - almost - completely remote operability of the FACT telescope the shutter
136%The new system was adapted as much as possible on the old mechanics....
137%Each lid can move independently by a 55 mm stroke actuator which grant the necessary excursion to reach the $110^{\circ}$ which is required in order no to shadow the camera.
138
139\begin{figure}[t!]
140\centering
141\includegraphics[width=0.6\textwidth]{pololu_use.jpg}
142\caption{\label{figMotorShieldUse} {Connection layout of the dual VHN5019 motor driver Arduino shield}}
143\end{figure}
144\subsection{Amplifier and filter shield}
145The system is completed by a amplifier and filter shield which has the double task of:\begin{itemize}
146\item reducing the noise of the hall sensors accumulated over the 35 m of cables with a low-pass filter \mbox{($\nu_{\rm Low~Cut}=1~$ kHz)};
147\item producing a second low current sensing measurement on pin A4 and A5 by amplifying ($\times 10$) and filtering \mbox{($\nu_{\rm Low~Cut}=1~$ kHz)} the signals on the A0 and A1 pins produced by the VHN-5019 chips.
148\end{itemize}
149The diagram of the filter/amplifier Arduino shield is shown in Fig.\ref{figFilterShield}. The design includes test pins and a set of jumper used for disable the amplification or the filter in case of need.
150\begin{figure}[t!]
151\centering
152\includegraphics[width=1\textwidth]{dpnc303_sch.pdf}
153\caption{\label{figFilterShield} {Diagram of the custom filter/amplifier Arduino shield}}
154\end{figure}
155%In view of low current measurement, two 10x amplifiers followed by each preceded by a low pass 2$^{nd}$ \mbox{($\nu_{cut}=1~$ kHz)} Butterworth filters were included on a custom circuit mounted as an Arduino shield. The diagram of the filter/amplifier Arduino shield is shown in Fig.\ref{figFilterShield}. The input current sensing signal is taken from the A0 and A1 analog Arduino pins while the amplified and filtered output is fed on the A4 and A5 analog pins respectively.
156% The analog signals of the Hall position sensors are also fed a low pass 2$^{nd}$ \mbox{($\nu_{cut}=1~$ kHz)} Butterworth filters and their output is connected to the A2/A3 analog Arduino pins.
157\subsection{Possible upgrades}
158The pin 4 and pin 9 Arduino I/O port were also connected to lemo cable in case - for example - of future wire coupling with other subsystems (i.e. the interlock system)
159\clearpage
160\section{Cabling and connection}
161The LA23 actuators requires 5 electrical connection as shown in Fig.\ref{figLA23connector}:
162\begin{itemize}
163\item$2\times$ AWG20 wires for the powering of the motor;
164\item$3\times$ AWG24 wires for the powering and the output signal of the Hall potentiometer sensor.
165\end{itemize}
166\begin{figure}[h!]
167\centering
168\includegraphics[width=0.5\textwidth]{LA23_connector.jpg}
169\caption{\label{figLA23connector} {Connection diagram for the Linak LA 23 actuator}}
170\end{figure}
171
172The linear actuators are provided by Linak with a custom proprietary cable fitted with sealed connector which contains a total of $8\times$ AWG20/24 wires of which only 5 are used from the LA23 actuators. The maximal cable length is 5~m and the provided cable is not shielded. For this reason we reduced the custom cable length to the minimum (about 70~cm) and we used 35~m of UV-resistent shielded cable instead to reach the control electronics.
173%The patch connector is a
174In view on the PWM operation, the unused wires of the actuator cable were connected to ground with the goal of reducing the noise on the Hall potentiometer and current sensing measurement.
175\begin{figure}[h!]
176\centering
177\includegraphics[width=0.9\textwidth]{LA23_cable.pdf}
178\caption{\label{figLA23cable} {Cable specifications for the Linak actuators}}
179\end{figure}
180
181
182%\section{Diagram of the filter board}
183
184\section{Functional flow block diagram}
185To be completed.
186
187\section{The preliminary web interface}
188A web interface to operate the shutter is available at \href{http://10.0.100.36}{http://10.0.100.36} within the fact internal network. [To be completed]
189
190\begin{thebibliography}{50}
191\small
192\bibitem{arduino} \href{http://www.arduino.cc}{http://www.arduino.cc}
193\end{thebibliography}
194\end{document}
Note: See TracBrowser for help on using the repository browser.