Skip to content
Snippets Groups Projects
Commit c0d4cd24 authored by Fredrik Grönlund's avatar Fredrik Grönlund
Browse files

Fixed minor error in background.

Swapped order of ADC and IR component chapters.
parent 77fa9f5d
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,6 @@ Conex suggested usage of an unmanned quadracopter drone, equipped with sensors t ...@@ -23,6 +23,6 @@ Conex suggested usage of an unmanned quadracopter drone, equipped with sensors t
The project is intended to check the feasibility of mapping mine shafts with this method and not to construct a complete product. The project is intended to check the feasibility of mapping mine shafts with this method and not to construct a complete product.
Thus, unit degradation from dust, moisture or other wear inherent to the workspace is disregarded. Thus, unit degradation from dust, moisture or other wear inherent to the workspace is disregarded.
No consideration of falling rocks that could cause the copter to crash will be taken. No consideration of falling rocks that could hit the copter and cause it to crash will be taken.
It has been presented as a possible failure source, and the copter as suggested cannot feasibly dodge rocks. It has been presented as a possible failure source, but the copter as suggested cannot feasibly dodge rocks.
%TODO: Further limitations? %TODO: Further limitations?
\ No newline at end of file
\subsection{ADC} \subsection{ADC}
As the output of the sensors are analogue, the mircroprocessor will require usage of its Output of the IR sensors is an analogue voltage, so the Analog-to-Digital Converter (ADC) peripherals of the MCU will be used.
internal ADC (Analog-to-Digital Converter). The ADC is configured in the basic Single conversion mode, The ADC is configured in the basic Single conversion mode, as the clock speed is vastly greater than the update frequency of the sensors.
as the clock speed is vastly greater than the update frequency of the sensors. ADC conversion is ADC conversion is specified to take at most 15 clock cycles, making it possible to do in blocking mode without impeding operation too much.
specified to take at most 15 clock cycles, so the check will block until conversion is complete.
Voltage is mapped through a lookup table (one for each sensor type), approximated using data from the
corresponding data sheets.
\begin{figure}[H] \begin{figure}[H]
\centering \centering
......
\subsection{IR Sensors} \subsection{IR Sensors}
The IR sensors are intended as redundancy to the sonar. The IR sensors are intended as redundancy to the sonar.
For this task, two different kinds of IR sensors were chosen as redundancy for the sonars. The For this task, two different kinds of IR sensors were chosen as redundancy for the sonars.
long-ranged sensors are meant to cover for the sonar at short range while the short-ranged sensors The long-ranged sensors are meant to cover for the sonar at short range while the short-ranged sensors are meant to cover the remaining distance.
are meant to cover the remaining distance.
\subsubsection{Hardware details}
The long-range sensor chosen for the task is The long-range sensor chosen for the task is
\href{https://www.arrow.com/en/products/gp2y0a710k0f/sharp?wm_g_phyloc=1012273&wm_g_intloc=&gclid=CO%5F1xubhidACFUvqcgodU7cF%2Dw&utm_source=google&utm_medium=cpc&utm_term=sharp+gp2y0a710k0f&utm_campaign=int+%2D+sku+%2D+sharp+%2D+dynamic+inventory}{Sharp GP2Y0A710K0F}. \href{https://www.arrow.com/en/products/gp2y0a710k0f/sharp?wm_g_phyloc=1012273&wm_g_intloc=&gclid=CO%5F1xubhidACFUvqcgodU7cF%2Dw&utm_source=google&utm_medium=cpc&utm_term=sharp+gp2y0a710k0f&utm_campaign=int+%2D+sku+%2D+sharp+%2D+dynamic+inventory}{Sharp GP2Y0A710K0F}.
Its distance measuring range is $\SI{100}{}$ to $\SI{550}{\centi\metre}$. Its distance measuring range is $\SI{100}{}$ to $\SI{550}{\centi\metre}$.
...@@ -20,8 +18,6 @@ ...@@ -20,8 +18,6 @@
It has a distance measuring range of $\SI{20}{}$ to $\SI{150}{\centi\metre}$ with an accuracy of It has a distance measuring range of $\SI{20}{}$ to $\SI{150}{\centi\metre}$ with an accuracy of
$\pm\SI{10}{\centi\metre}$. Output of the sensor is a current, where the voltage varies between $\pm\SI{10}{\centi\metre}$. Output of the sensor is a current, where the voltage varies between
$\approx\SI{0.5}{} - \SI{2.7}{\volt} $, where lower voltage corresponds to longer distance. $\approx\SI{0.5}{} - \SI{2.7}{\volt} $, where lower voltage corresponds to longer distance.
% TODO: Add a picture?
% The voltage curve is demonstrated in Figure \ref{fig:short_ir_voltage}.
Measurements are carried out continuously every $\SI{38.3}{\milli\second}\pm \SI{9.6}{\milli\second}$, Measurements are carried out continuously every $\SI{38.3}{\milli\second}\pm \SI{9.6}{\milli\second}$,
and output is updated after maximum $\SI{5.0}{\milli\second}$.\cite{sheet:ir_short} and output is updated after maximum $\SI{5.0}{\milli\second}$.\cite{sheet:ir_short}
\ No newline at end of file
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
\input{./components/sonar} \input{./components/sonar}
\input{./components/spi} \input{./components/spi}
\input{./components/uwb} \input{./components/uwb}
\input{./components/adc} \label{sec:adc}
\input{./components/ir} \label{sec:IR} \input{./components/ir} \label{sec:IR}
\input{./components/adc} \label{sec:adc}
\input{./components/flightcontroller} \input{./components/flightcontroller}
\input{./components/copterparts} \input{./components/copterparts}
\input{./components/circuitboards} \input{./components/circuitboards}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment