1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
|
\documentclass[a4paper,12pt]{article}
\usepackage{geometry}
\usepackage{titling}
\usepackage{titlesec}
\usepackage[english]{babel}
\usepackage[hidelinks]{hyperref}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{ragged2e}
\usepackage{graphicx}
\usepackage{siunitx}
\graphicspath{ {./images/} }
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=8
}
\lstset{style=mystyle}
\titleformat{\section} {\Huge} {} {0em} {}[\titlerule]
\geometry{a4paper,total={170mm,257mm},left=25mm,right=25mm,}
\author{Lucas Standen}
\title{Creating a simple radio receiver, with a volume intensity meter}
\begin{document}
\maketitle
\newpage
\tableofcontents
\newpage
\setlength{\parskip}{1em}
{\setlength{\parindent}{0cm}
\section{System planning}
\subsection{Analysing the problem}
In modern times the need for a radio has obviously fallen, with the rise of TV sets and the internet, generally being a faster method of receiving information, however in some situations, a radio is still preferable. For example if you are hiking, you may be out of range of cellular data, and a TV would require, power and signal which you wont have; in a situation like this a radio is perfect, being a low power device, that can receive important safety information. Similar situations can be drawn for all outdoor use of electronics, weather its a hike, sailing trip, off grid living or something else, a radio can be a valuable tool for keeping up to date on important information.
I believe creating a simple radio receiver will be helpful to those looking for the capabilities of listening while on the go, it can be small and practical as someone who hikes a lot myself, I would enjoy this project, so I can listen to the news, music or a podcast while hiking, without needing to worry about draining my phones battery, which is better saved for emergency situations.
\subsection{Design specification}
The product I would like to build for this project is a simple radio receiver, it should receive signals, demodulate them, amplify them and play them out of a speaker. To add something more interesting to my project, I will add a bar graph display that displays the intensity of the currently playing sound.
The design should focus on simplicity, as less points of failure should result in something reliable. I have in the past, owned a radio for hikes, however it had multiple dials which all clogged with mud, and now it doesn't work; I would much rather have something that is pre tuned to my desired values and left as is.
\section{System design}
\subsection{Subsystem designs}
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. 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 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 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 boost amplifier:] \hfill \\
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 and two resistors. It will have a gain of around 3, to put the volume to a comfortable listening audio.
\item[The audio normalisation filter:] \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. 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 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, it could also be replaced with a headphone jack.
\end{description}
% put diagrams and detailed explanations here
% 3 of these need to show alternatives
\subsubsection{The receiver}
This system will receive data from from the radio waves from an antenna, here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/receiver.png}
\end{center}
To test this system, I can use a signal generator to create an AM wave, then put the output into a large wire, and finally I can compare the outputs of the signal generator, and the output from the inductor and capacitor, and check if they are the same.
\subsubsection{The initial amplifier}
This amplifier's job is to increase the voltage of the input, as the revive will only output at ~1V-3V, which is not enough to trigger my other components, it should have a gain of around 5. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/initial-amplifier.png}
\end{center}
I have used inverting amplifiers throughout this build as they are generally less noisy than non-inverting amplifiers and I can control the input impedance.
To test this system I will put a voltage of around ~1-3V and test if it multiplies the voltage by the desired gain.
\subsubsection{The demodulation system} % can probably show an alternative to this
This system will convert the AM wave to a unmodulated regular wave, it will also use a decoupling capacitor to remove any DC offset that is caused by the previous components. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/AM demodulation.png}
\end{center}
To test this I will put in a modulated sine wave into it and confirm that I receive the original wave as an output.
\subsubsection{The volume boost amplifier} % perhaps show an alternative for here
This is just another op amp, but with different resistor values. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/volume boost amplifier.png}
\end{center}
Like the previous amplifier it can be tested by putting into a wave into it and checking it was multiplied by the correct gain.
\subsubsection{The audio normalisation filter}
This is a filter that will only show the peaks of the output from the previous systems, this will allow the micro controller to properly poll the input for the next subsystem. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/audio peak finder.png}
\end{center}
To test this, I can put a sine wave in as input, and then I will check if I see a sine-like wave with smaller troths.
\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 boost amplifier as an input and will display the amplitude of the output on 4 bits of a bar graph. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/audio intensitity meter.png}
\end{center}
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.
To test this system, I can check which amplitude of signals makes the graph output a higher output on the graph.
\subsubsection{The push pull power amplifier} % can definitely show an alternative for this
This system will massively boost the current of the input, which will make it audible on a speaker. To make the audio sound better, I will use an op amp to remove crossover distortion. Here is its circuit diagram:
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/push pull power amplifier.png}
\end{center}
To test this system, I can measure the current in and the current out, and see how the compare.
\subsection{Full block diagram}
% put a full block diagram here
\begin{center}
\includegraphics[width=\textwidth]{diagrams/blockdiagram.png}
\end{center}
\subsection{Full circuit diagram}
Here is the full set of diagrams all put together, when used like this, my system should function as a radio receiver with audio output.
\begin{center}
\includegraphics[angle=270, scale=0.8]{diagrams/fulldiagram.png}
\end{center}
\section{Subsystem results} % tables, tables and more tables, no need to show the actual testing, the next section is for that
To test my system, I will put values into each subsystem individually, then put it all together, at the end to create my full project.
\subsection{The receiver}
The receiver was tested by putting a signal through a signal generator, that AM modulates the input, and putting that through a large antenna in the room, then using the large inductor as a receiving antenna. I can then use an oscilloscope to compare the inputs, to the outputs.
Here is a table of the inputs Vs the outputs I received. I read these values of an oscilloscope.
\begin{center}
\begin{tabular}{ |c|c| }
\hline
signal in & signal out\\
\hline
0v & 0v \\
1.25v & 1.20v \\
-1.25v & -1.21v \\
0.5v & -0.48v \\
\hline
\end{tabular}
\end{center}
The result show that, there is a little bit of noise, however there is a clear resemblance on the input, so I would say this works. There is also, on average, a drop in voltage, which is most likely signal drop off, this is a very small drop so it is of no significance
\subsection{The initial amplifier}
Like the receiver, this system can be tested by putting in an input signal, that is around -1.5v - 1.5v, as this is my desired input signal. The amplifier should have a gain of -4.7.
\begin{center}
\begin{tabular}{ |c|c| }
\hline
signal in & signal out\\
\hline
0v & 0v \\
0.5v & -2.4v \\
-0.5v & 2.6v \\
1v & -5.2v \\
-1.25v & 7.4v \\
\hline
\end{tabular}
\end{center}
The table, like before, there is a small amount of noise, however it shouldn't have to much effect. The amplifier is an inverting amplifier, so that is why the values flip. The observed gain is -4.8, which means that is a very close to the desired value.
\subsection{The demodulation system}
To test this system, I can input signals in the range -3v - 3v and see if the output is the demodulated output.
This system, should have a response curve that looks something akin to this, note the dips in the signal that match the carrier wave:
\begin{center}
\includegraphics[width=\textwidth]{diagrams/AM-demod.png}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_140141.jpg}
\end{center}
Mine had slightly larger distorted dips in the signal, however it achieved the same thing.
\subsection{The volume boost amplifier}
This amplifier should have a gain of -2.35, however while testing, I realized I had made a mistake, I had used a 1M\si{\ohm} instead of the indented 2M\si{\ohm}. This caused it to have a gain of -4.7. After fixing this mistake, I took these results.
\begin{center}
\begin{tabular}{ |c|c| }
\hline
signal in & signal out\\
\hline
0v & 0v \\
0.5v & -1.2v \\
1v & -2.4 \\
2v & -4.5 \\
-0.5v & 1.4v \\
-1v & 2.4 \\
-2v & 4.6 \\
\hline
\end{tabular}
\end{center}
This shows the expected gain, this subsystem works.
\subsection{The audio normalisation filter and dividing amplifier}
This system needs to lower the input frequency and only output the high points. This system will behave similarly to my AM demodulation system. The desired output, should be close to the following:
\begin{center}
\includegraphics[width=\textwidth]{diagrams/peakfinder.png}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_142936.jpg}
\textit{The scope was rather confused with this one, and was flickering a lot, this is the best photo I was able to get.}
\end{center}
As you can see mine is not as close to the desired output, however it is still close enough that the micro controller will be able to poll the input. A more accurate design could have been made using an op amp.
\subsection{The audio intensity meter}
Testing this system can be achieved by imputing voltages into it, and depending on their amplitude, the different modes of the bar graph should trigger.
When tested it acted like so:
\begin{center}
\begin{tabular}{ |c|c| }
\hline
signal in & bar graph output\\
\hline
0v & 0001 \\
1v & 0001 \\
2v & 0011 \\
3v & 0011 \\
4v & 0111 \\
5v & 1111 \\
\hline
\end{tabular}
\end{center}
This is my desired output. The input signals will be between 0v-5v. A low voltage input, results in only 1 of the LEDs being on and higher voltages result in more LEDs come on.
There were slight fluctuations in this signal, causing the LED's to flash on and of quickly at points, this is most likely caused by the micro controller not being able to poll the inputs quickly enough due to its slow clock speed. It was still consistent enough to get photos and other readings.
\subsection{The push pull power amplifier}
This subsystem should be tested for the current it outputs and, unlike the rest, not the voltage. Using the formula
\begin{center}
\[ P = \frac{V^2}{8R_L} \]
I can calculate the maximum output power. I can then use the known value of Vin, to solve for current.
\[ P = \frac{30^2}{8 \times 12} \]
\[ P = \frac{900}{96} \]
\[ P = 9.38W \]
The maximum input however is not 30v, while in theory the power supply outputs that, the actual value will be closer to 10v at peak, as the volume is almost never at the maximum possible.
\[ P = \frac{10^2}{8 \times 12} \]
\[ P = \frac{100}{96} \]
\[ P = 1.04W \]
This is still far higher than the average voltage as for the most part as the peak is rarely hit, due to lower than maximum volume signals.
\end{center}
\section{Subsystem testing process} % just show the method of testing
\subsection{The receiver}
When testing the receiver, I used two power supply's, one which generated a signal, an another which AM modulated the wave. After tweaking the carrier wave I found that around 5.5Khz was the best point for the receiver I built. I tested my receiver with many input voltages, and I found that it worked well between 50hz - 15Khz.
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/pics/IMG_20250319_141954.jpg}
\end{center}
Using a scope, I measured the input coming directly off the signal generator, and the output, coming from the receiver, and I found it to be functional, although lower amplitude frequencies became a little noisier than the input signal, but this is not something to worry about.
\begin{center}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_134733.jpg}
\end{center}
\subsection{The initial amplifier}
This system could be tested very simply by comparing the input to the output. Note the fact that the yellow trace is at 1V and the blue trace is at 5v.
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/pics/IMG_20250312_135346.jpg}
\end{center}
\subsection{The demodulation system}
To test this system, I put in an input signal, and looked at the output signal. The desired output is a signal that fluctuates up an down, with the same amplitude as the input. As one can see, the this is what my system achieved.
\begin{center}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_140141.jpg}
\end{center}
One should note though, the small fluctuations on the output. The don't effect the signal too much, however on a better demodulation system, this would be a smoother signal.
\subsection{The volume boost amplifier}
This subsystem, like the others in my project, can be tested by comparing input and output signals. I would expect it to have an output around 5 times larger than the input and invert them. This sub system did that perfectly..
\begin{center}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_142351.jpg}
\end{center}
This subsystem needed to make the input signal larger, and stay at the peaks for more time. It is similar to the audio demodulation system. It also needs to stop the signal from ever being negative. As the micro controller doesn't know how to read negative values in its ADC.
\subsection{The audio normalisation filter}
This photo compares the modulated signal to the output signal, as I believe it shows better the effect of making all systems positive.
\begin{center}
\includegraphics[angle=270, width=0.5\textwidth]{diagrams/pics/IMG_20250312_142422.jpg}
\end{center}
\subsection{The audio intensity meter}
To test this system, I put a variety of voltages into it to test if it turns on when desired. I took a photo for each stage.
\begin{center}
Low voltage input
\includegraphics[height=0.25\textheight]{diagrams/pics/mpv-shot0003.jpg}
\end{center}
\begin{center}
Mid voltage input
\includegraphics[height=0.25\textheight]{diagrams/pics/mpv-shot0001.jpg}
\end{center}
\begin{center}
High voltage input
\includegraphics[height=0.25\textheight]{diagrams/pics/mpv-shot0002.jpg}
\end{center}
\begin{center}
Very high voltage input
\includegraphics[height=0.25\textheight]{diagrams/pics/mpv-shot0004.jpg}
\end{center}
\subsection{The push pull power amplifier}
To test this subsystem, I put a multi meter on the input signal, and then one on the output. I then confirmed that the amplitude was boosted. The input was at ~10V AC.
\begin{center}
\includegraphics[width=0.5\textwidth]{diagrams/pics/IMG_20250312_144503.jpg}
\end{center}
Here is 0.09mA being boosted to 15mA. When I was testing this I was using a 100\si{\ohm} resistor in place of the 12\si{\ohm} speaker, this was to avoid the irritation of my peers. This reduced the current boosted by the amplifier.
When accounting for this the adjusted power output calculations look like this
\begin{center}
\[ P = \frac{V^2}{8R_L} \]
\[ P = \frac{10^2}{8 \times 100} \]
\[ P = \frac{100}{800} \]
\[ P = 0.125W \]
\[ P = 125mW \]
Since we measured a current draw of 15mA, we can times this by 10 to get the power draw.
\[ P = (15 \times 10 ^ {-3}) \times 10 \]
\[ P = 150mW\]
This value is within the margin of error for the system to work, and is most likely caused by the resistor I used not being exactly 100\si{\ohm}.
\end{center}
\section{System realisation}
\subsection{Circuit diagram} % repeat of what was shown before
Below is a repeat of my circuit diagram, to compare against later.
\begin{center}
\includegraphics[angle=270, scale=0.8]{diagrams/fulldiagram.png}
\end{center}
\subsection{Circuit realisation} % show the actual thing, describe colour coding, etc. etc.
\subsection{Circuit results} % prove the whole thing works from start to finish
To test my system I put a number of different frequencies through the system, and I confirmed that the output frequency matched the input. The frequencies are passed into an antenna inside the room I was testing, and then is picked up by the receiver, and passes through the entire system. The outputs are measured from the output of the push pull power amp.
I am using a 7Khz carrier wave , as I found this to be the best frequency for the receiver to pick up. This will have been caused by the capacitor and inductor values having a specific frequency that they let through.
\begin{center}
One can calculate the break frequency of the receiver like so.
\[ f _ b = \frac{1}{2 \pi \sqrt{CL}} \]
\[ f _ b = \frac{1}{2 \pi \sqrt{(470 \times 10 ^{-9})(1.1 \times 10 ^{-3})}} \]
\[ f _ b = \frac{1}{2 \pi \sqrt{5.17 \times 10 ^ {-3}}} \]
\[ f _ b = \frac{1}{2 \pi \times (2.2737 \times 10 ^ {-3})} \]
\[ f _ b = \frac{1}{1.14286 \times 10 ^{-4}} \]
\\
\[f _ b = 6999.62hz\]
\[f _ b = 7Khz\]
\end{center}
Here are my results; these results were tested with the 7Khz carrier wave.
\begin{center}
\begin{tabular}{ |c|c| }
\hline
freq in & freq out \\
\hline
50hz & 40hz \\
500hz & 480hz \\
1Khz & 1.01Khz \\
3.2Khz & 3.3Khz \\
5Khz & 4.9Khz \\
6.5Khz & 6.3Khz \\
\hline
\end{tabular}
\textit{All of these values are approximate, as the signals flickered on the oscilloscope, and the signal generator creating these signals were read of the possibly inaccurate dial of the generator.}
\end{center}
These results are around what is expected for the inputs. On the lower frequencies, things were slightly off, due to the filter being used for the AM demodulation. And on the higher end, things were being cut off as we were getting too close to the carrier frequency, which caused parts of the signal to be lost.
\subsection{Circuit testing} % show evidence of the results shown in the results section (lots of photos)
Here is the scope trace of the input at 3.3Khz.
\includegraphics[width=\textwidth]{diagrams/pics/finaloutput.jpg}
As the trace shows, it is negative, a DC offset has been applied. I originally believed, that my amplifiers were causing the signal to be negative as they are inverting, however I have an even amount of them so it wasn't them. I then realised that it had to be a DC offset. I fixed it but putting a capacitor before the input, however I removed this as it was distorting the input signal. It doesn't have any effect on the output as the speaker still moves in the same way.
% did it work, how well, compare to original goal
\section{Evaluation}
\subsection{What went well?}
\subsection{What didn't go well?}
}
\end{document}
|