summaryrefslogtreecommitdiff
path: root/electronics/cw2/writeup.tex
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-03-12 11:30:18 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-03-12 11:30:18 +0000
commitfed4285a51b874113c41d9a9e78810640d71e5dc (patch)
tree1ad99a238c1d3b59be90a6a9728bb81930ab1c16 /electronics/cw2/writeup.tex
parent2ac42fa825d403e6285a58e08a62e6d549c86fa1 (diff)
to much work
Diffstat (limited to 'electronics/cw2/writeup.tex')
-rw-r--r--electronics/cw2/writeup.tex80
1 files changed, 57 insertions, 23 deletions
diff --git a/electronics/cw2/writeup.tex b/electronics/cw2/writeup.tex
index 1432b3f..39ea1e2 100644
--- a/electronics/cw2/writeup.tex
+++ b/electronics/cw2/writeup.tex
@@ -72,47 +72,81 @@ The design should focus on simplicity, as less points of failure should result i
To build my project, I will split it into manageable subsections, that can each be tested and evaluated. The subsystems I intend to build are:
\begin {description}
\item[The receiver:] \hfill \\
- This will be the part of my system that detects the weak incoming radio signals from the outside world weak incoming radio signals from the outside world.
+ This will be the part of my system that detects the weak incoming radio signals from the outside world weak incoming radio signals from the outside world. It can be made with a large inductor (coil of wire) and a capacitor for smoothing the output signal.
\item[The initial amplifier:] \hfill \\
- This will boost the small incoming signal to a more reasonable size, to make it easier to process, working with small values may result in signal degradation.
+ This will boost the small incoming signal to a more reasonable size, to make it easier to process, working with small values may result in signal degradation. This can be made with a op amp and 2 resistors, to create a greater than 1 gain.
\item[The demodulation system:] \hfill \\
- This will take the incoming wave, that will be encoded as an AM signal (not FM), and convert it to the audio wave I wish to detect.
+ This will take the incoming wave, that will be encoded as an AM signal (not FM), and convert it to the audio wave I wish to detect. This can be made with a low pass filter with a diode, the low pass filter can act as a peek finder (envelope filter) when paired with the diode.
\item[The volume control amplifier:] \hfill \\
- This will be another amplifier that controls the volume of the signal, before it reaches the audio system.
+ This will be another amplifier that controls the volume of the signal, before it reaches the audio system. This can be made with an op amp a resistor and a potentiometer, it will have a variable gain, allowing it to decrease (less than 1 gain) or increase (greater than 1 gain) the volume of the output.
+
+
+ \item[The audio normalisation filter and dividing amplifier:] \hfill \\
+ This subsystem will consist of a low pass filter, and a amplifier, this will do two things for the next subsystem. It will divide the amplitude of the audio by 3, making the peak value 5V, this is because the micro controller can't process values above 5V. The low pass filter will find the peaks of the incoming signal, this is because the audio input is at too high a frequency for the micro controller to properly poll, this will lower the input to something it can process.
\item[The audio intensity meter:] \hfill \\
- This will consist of a micro controller (Picaxe 18M2 using the WJEC assembler), and a bar graph, and will show me the current volume of my system.
+ This will consist of a micro controller (Picaxe 18M2 using the WJEC assembler), and a bar graph, and will show me the current volume of my system. The Picaxe 18M2 (and the Pic 16F88 that it emulates) contain three analogue to digital converters, using one of these, I will program the chip to act as a bar graph display controller, with outputs dependant on the analogue input signal; the code will need to convert from the binary used internally, to an output where the highest bit and bellow are enabled.
\item[The push pull power amplifier:] \hfill \\
- This will boost the power output of my system, allowing it to drive a small speaker (or perhaps headphones), and output the desired audio.
+ This will boost the power output of my system, allowing it to drive a small speaker (or perhaps headphones), and output the desired audio. This is made using 2 transistors (a PNP and a NPN), paired with an op amp (to remove the cross over distortion).
\item[The speaker:] \hfill \\
- This is the audio output of my system.
+ This is the audio output of my system, it could also be replaced with a headphone jack.
\end{description}
-\subsubsection{The receiver}
-\subsubsection{etc}
-\subsubsection{etc}
-
-\subsection{Subsystem testing}
-\subsubsection{The receiver}
-\subsubsection{etc}
-\subsubsection{etc}
+% put diagrams and detailed explanations here
+% 3 of these need to show alternatives
+\subsubsection{The receiver}
+\subsubsection{The initial amplifier}
+\subsubsection{The demodulation system} % can probably show an alternative to this
+\subsubsection{The volume control amplifier} % perhaps show an alternative for here
+\subsubsection{The audio normalisation filter and dividing amplifier}
+\subsubsection{The audio intensity meter}
+This system will consist of a micro controller and a bar graph, it will use the output of the volume control amplifier as an input and will display the amplitude of the output on 4 bits of a bar graph
+
+The code can be seen here:
+\lstinputlisting[language=C, caption=\textit{using C syntax highlighting to add some colour to the world}]{./final.asm}
+
+The way this code works is in the main loop, the ADC is used to read in an analogue input, then it is processed using the convert label. The convert label will move the execution to the \textit{volow, vomid, vohigh, vovhigh} labels, that each move a corresponding value into PORTB to act as an output. The convert label works by anding the input with specific bits, and then subtracting, to see if the input is high enough to trigger a raise in the volume.
+\subsubsection{The push pull power amplifier} % can definitely show an alternative for this
+\subsubsection{The speaker}
+
+\subsection{Full block diagram}
+% put a full block diagram here
+
+\subsection{Full circuit diagram}
+% put a full design here (glue all the previous designs together)
+
+\subsection{Subsystem testing} % tables, tables and more tables, no need to show the actual testing, the next section is for that
+\subsubsection{The receiver}
+\subsubsection{The initial amplifier}
+\subsubsection{The demodulation system}
+\subsubsection{The volume control amplifier}
+\subsubsection{The audio normalisation filter and dividing amplifier}
+\subsubsection{The audio intensity meter}
+\subsubsection{The push pull power amplifier}
+\subsubsection{The speaker}
\subsection{Subsystem results}
-\subsubsection{The receiver}
-\subsubsection{etc}
-\subsubsection{etc}
+\subsubsection{The receiver} % might be able to cut this, or make it very short
+\subsubsection{The initial amplifier}
+\subsubsection{The demodulation system}
+\subsubsection{The volume control amplifier}
+\subsubsection{The audio normalisation filter and dividing amplifier}
+\subsubsection{The audio intensity meter}
+\subsubsection{The push pull power amplifier}
+\subsubsection{The speaker} % probably can cut this section
\section{System realisation}
-\subsection{Circuit diagram}
-\subsection{Circuit realisation}
-\subsection{Circuit testing}
-\subsection{Circuit results}
+\subsection{Circuit diagram} % repeat of what was shown before
+\subsection{Circuit realisation} % show the actual thing, describe colour coding, etc. etc.
+\subsection{Circuit testing} % show evidence of the results shown in the results section (lots of photos)
+\subsection{Circuit results} % prove the whole thing works from start to finish
-\section{Evaluation}
+% did it work, how well, compare to original goal
+\section{Evaluation}
}
\end{document}