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

Last change on this file since 14273 was 14273, checked in by boccone, 13 years ago
ShutterControlled, added tech details
File size: 8.2 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 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 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 already includes a 10 Mbit ethernet interface (WizNet W5100 chipset).
99
100The 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
101and more shields can be mounted on one controller, provided that their pinout are compatibles.
102\begin{figure}[b!]
103\centering
104\includegraphics[width=1\textwidth]{shutter_sketch.pdf}
105\caption{\label{figShutterSketch} {Sketch of the shutter system}}
106\end{figure}
107
108A 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).
109
110The 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.
111
112\subsection{The motor controller shield}
113The 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.
114\begin{figure}[b!]
115\centering
116\includegraphics[width=0.77\textwidth]{pololu_sch_small.png}
117\caption{\label{figMotorShield} {Diagram of the dual VHN5019 motor driver Arduino shield}}
118\end{figure}
119
120Each 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.
121
122Other then the A0 and A1 Arduino analog inputs the shield uses three additional digital I/O Arduino ports for each motors.
123The {\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.
124
125The 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}.
126%In view of an - almost - completely remote operability of the FACT telescope the shutter
127%The new system was adapted as much as possible on the old mechanics....
128%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.
129
130\begin{figure}[t!]
131\centering
132\includegraphics[width=0.6\textwidth]{pololu_use.jpg}
133\caption{\label{figMotorShieldUse} {Connection layout of the dual VHN5019 motor driver Arduino shield}}
134\end{figure}
135\subsection{Amplifier and filter shield}
136The system is completed by a amplifier and filter shield which has the double task of:\begin{itemize}
137\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)};
138\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.
139\end{itemize}
140The 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.
141\begin{figure}[t!]
142\centering
143\includegraphics[width=1\textwidth]{dpnc303_sch.pdf}
144\caption{\label{figFilterShield} {Diagram of the custom filter/amplifier Arduino shield}}
145\end{figure}
146%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.
147% 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.
148\subsection{Possible upgrades}
149The 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)
150
151\section{Appearance}
152
153%\section{Diagram of the filter board}
154
155%\section{Logic Block of the firmware}
156
157%\section{The preliminary web interface}
158\begin{thebibliography}{50}
159\small
160\bibitem{arduino} \href{http://www.arduino.cc}{http://www.arduino.cc}
161\end{thebibliography}
162\end{document}
Note: See TracBrowser for help on using the repository browser.