Samo Penic
2022-03-26 c1488c2eb92b70999b8b93b641aaf8db9287201a
commit | author | age
c1488c 1 \documentclass[12pt]{article}
SP 2 \usepackage{graphicx}
3 \begin{document}
4 \section{Camera}
5 \subsection{Model and make}
6
7 Intel Realsense D455
8
9 \subsection{Mechanical specifications}
10 At the rear of the camera there are two M4 holes for mounting additional modules to the camera. The mechanical drawing is not that clear about the hole size, since there is also a mention of M3 at the same drawing. The part of the mechanical drawing regarding the back of the camera is presented in figure \ref{fig:rearmechanical}.
11
12 \begin{figure}[bth]
13     \begin{center}
14 \includegraphics[angle=-90, origin=c, width=0.6\linewidth]{figures/REARmechanical.png}
15     \end{center}
16     \caption{Rear of the Intel RealSense Depth Camera D455. All units in millimeters. Taken from \cite{productFamilyDatasheet}.}\label{fig:rearmechanical}
17 \end{figure}
18
19 The case was drawn with open source 3d cad software FreeCAD version 0.19. The size of the case is approx 2 mm larger as camera back side in both dimensions and is 12 mm thick, allowing enough space for mounting the ESP32 board and nRF24l01 module. The holes for synchronization cables from camera and output sinchronization are of diameter 3 mm. They are positioned in such a way, that they do not pose any mechanical problems for assembly. Improvement would be to put connectors to the case. Which ones?
20
21 \begin{figure}
22     \begin{center}
23         \includegraphics[width=0.6\linewidth]{figures/case_drawing.png}
24     \end{center}
25     \caption{Drawing of the case done in FreeCAD 0.19.}
26 \end{figure}
27
28
29 \subsection{Extension connector pinout}
30
31 For multicamera synchronization, the external senzor connector is placed at the top side wall of the camera. The 9 pin JST connector with manufacturer part number SM09B-SRSS TB(LF)(SN) with 1 mm pitch is used and is show in figure \ref{fig:connector}.
32
33
34 \begin{figure}[htb]
35     \begin{center}
36         \includegraphics[width=0.4\linewidth]{figures/connector.png}
37     \end{center}
38     \caption{Connector for sync signal. Taken from \cite{productFamilyDatasheet}. }\label{fig:connector}
39 \end{figure}
40
41
42 The connector has pinout shown in the data table. According to the \cite{productFamilyDatasheet}, pins 5 and 9 shoud be used for synchronization. From the pinout, pin number 8 could be used to power up electronics. However, no data about electrical characteristics of power supply is given (max current?).
43  
44
45
46 \begin{figure}[htb]
47     \begin{center}
48         \includegraphics[width=0.7\linewidth]{figures/pinout.png}
49     \end{center}
50     \caption{Connector pinout. Taken from \cite{productFamilyDatasheet}.}\label{fig:pinout}
51 \end{figure}
52
53
54 For multi-camera case, one camera could be initialized as master and the rest configured as slave. Alternatively an external signal generator can also be used as the master trigger with all cameras set to slave mode. When applying an external sync pulse, the HW SYNC input requires a 100 microsecond positive pulse at the nominal camera frame rate, 33.33 ms for a 30Hz frame rate for example. Inputs are high impedance, 1.8V CMOS voltage levels.
55
56 However, it is important to make sure to use a high resolution signal generator. The frequency of the signal generator needs to exactly match the sensor frame rate. For example, if the sensor is set up as 30 fps, the real frame rate may be 30.015 fps. You may need to use an oscilloscope to measure the real frame and configure the signal generator to the same frequency.
57
58 For this reason, it may be better to just use one additional camera as master sync signal generator. \cite{whitesheet}
59
60 \section{ESP32 controller}
61
62
63 \begin{figure}[htb]
64     \begin{center}
65         \includegraphics[width=\linewidth]{figures/esppinout.png}
66     \end{center}
67     \caption{ESP32 pinout.}\label{fig:esppinout}
68 \end{figure}
69
70
71 \section{Firmware}
72
73 \subsection{Energy conservation}
74
75 WiFi.mode(WIFI\_OFF);
76 btStop();
77
78 \subsection{Input trigger and interrupt}
79
80 https://lastminuteengineers.com/handling-esp32-gpio-interrupts-tutorial/
81
82 \end{document}
83