A Superhet/Direct Conversion AM receiver for 181.818 kHz using Attiny2313

Downloads
Download the AVRStudio assembly source  vlflo13041105A.asm (html format)
Download the AVRStudio Hex file vlflo13041105A.hex (html format)

Photo of completed receiver. Its pocket sized, but not intended to be used that way because the antenna is a highly directional ferrite loopstick. Its only a matter of luck that there was room for all the components on the board, which is wired point-to-point without a ground plane. A 100 uf power supply decoupling capacitor was added just above the quad op-amp package after this picture was taken.

dual mode

 Overview
This is a description of an experimental AM receiver for VLF. It is crystal controlled to receive 181.818 kHz (more or less) and operates as either a single conversion superhetrodyne or a direct conversion receiver. The bandwidths are expected to be 15 Hz to 3.5 kHz in superhet mode and 15 Hz to 10 kHz in the direct conversion mode. Operation is from a single +5 volt regulator and it can be powered from a 9 volt radio battery or other source of +8V or higher. The reason I built this was to verify some of my assumptions about these components would work together, having had numerous discussions of the SA-612/MK-484 and SA-612 direct conversion receiver concepts over the last year or so with my friend Jeff,  besides that, I want to have a direct conversion receiver on hand for some planned experiments.
So, why 181.818 kHz? Its near the middle of a band of frequencies in which some countries, including the United States, allows unlicensed operation. For the U.S., see Code of Federal Regulations, Title 47, Volume 1, Section 15.217 Operation in the band 160 – 190 kHz. U.S. Government Printing Office, or look for it on the web. This particular frequency is easily derived from some common microcontroller crystal crystals, in this case a 6 Mhz crystal. Of course with the current generation of on-chip clocks, starting with the ATtiny series, crystals aren’t really necessary for some applications.  Other projects using this particular frequency are in the works.


Schematic. Depending up the state of the mode switch on the left, either pin 8 or pin 9 of the AT90S2313 goes high. When pin 8 goes high, it supplies power to the MK-484 (ZN-414 replacement – an integrated IF/AM detector). When pin 9 goes high, it stops the 2N2907 from shunting the direct conversion signal at the output of the SA6-12.
In the superhetrodyne mode, the receiver consists of a ferrite loopstick antenna, a local oscillator, mixer an IF filter and an IF amplifier and AM detector, followed by an audio amplifier.
The loop antenna is a resonant circuit made of a 760 microhenry coil wound on a 5.5 cm long ferrite rod covered with one thickness of 80 grams per square meter printer paper, in parallel with a 1000 pf capacitor.. The ferrite rod was picked up at a surplus store, so I had to experiment a little to find the correct number of turns. I started by winding 100 turn closely spaced in the middle of the ferrite rod, with a tap at 50 turns. I used #30 heavy polythermaleze magnet wire. I measured the inductance between the 50 turn tap and each end of the coil, and measured it a third time for the entire 100 turns, then I calculated an inductance factor for the rod for each of the windings, and then found the average inductance factor. The inductance factor, also referred to as AL (A-sub-L)  in some literature is the factor that, when multiplied by the number of turns squared, is equal to the inductance. Here, I will use the symbol K.
L = K N^2 (inductance equals K times N squared). I’ll leave the algebra to you, but the average K for this ferrite rod came out to 9.405E-8 Henries per turn squared. To resonate at 181.818 kHz with a 100 pf capacitor, the inductance would have to be (1/(2 * Pi * 181E3)^2)/1000E-12 = 766.2 microhenries. The number of turns, N = Sqrt(L/K) = Sqrt (766E-6/94.E-8) = 90 turns. I wound 90 turns and measured the inductance to be 781 microhenries. I took one turn off, and measured again, and the inductance came out to 763 microhenries, and so used that.
181.818 kHz Magnetic fields circulating through the ferrite core induce current in the winding and that generates a voltage across the 1000 pf capacitor. Since the inductance is resonant at 181.818 kHz with the parallel capacitance, the voltage across the resonant circuit is larger at 181.8 kHz that at other frequencies, thus the antenna serves to convert time-varying magnetic fields at the desired frequency to voltage while filtering out other frequencies. The higher the inductive reactance of the inductor to the resistance in series with it and the capacitor, the higher the “Q”, or quality factor, and the higher the voltage generated across the resonant circuit. A large part of the total resistance is skin effect and eddy current effects, both of which  could be minimized by winding several parallel conductors of a smaller diameter, but that is a refinement we can leave until later.
The voltage across the resonant circuit is connected to input pins 1 and 2 on the SA-612 mixer. The incoming signal is mixed with the output of the local oscillator, which is an AT90S2313 microcontroller. The microcontroller sits in a loop and generates one square wave cycle on its output for every 22 clock cycles. Its clock frequency is set at 6 MHz by the 6 MHz crystal connected to its on-chip clock oscillator (AT90S2313 pins 4 and 5). When operating in the direct conversion mode, the AT90S2313 produces 181.818 kHz. The 272.727 kHz output pulses on pin 11 of the AT90S2313 are 5V peak-to-peak and are divided down to 240 mv P-P, the level necessary to drive the local oscillator input of the SA-612, by the 20k and 1 k resistive divider.
The 330 pf capacitor across the output of the voltage divider combines with the approximately 1K output resistance of the divider to make a single pole low pass filter at about 500 kHz. The intent here was to knock the corners off the square wave to reduce the amplitude of the higher level harmonics of the local oscillator, so as to reduce the receiver’s sensitivity to frequencies related to those harmonics.
The SA-612 provides some gain to the input signal and the 181.818 kHz input mixes with the 272.727 kHz local oscillator to create an image of the input signal at 454.45 kHz. Close enough to the ceramic filter’s 455 kHz center frequency.
The output of the SA-612 is 1.5 k Ohms, which, based on some web surfing, I suspected to also be the termination impedance of the surplus store ceramic filter, so pin 4 of the SA-612 is connected directly to the filter’s input. The output of the filter is terminated in 1.5 k Ohms and connected to the input of the MK-484.
The MK-848 is a “remake” of the Ferranti Semiconductor ZN-414 TRF receiver chip. It serves as an intermediate frequency amplifier and AM detector. The connection of the MK-484 is straight from the manufacturer’s data sheet, except I substituted a 1.5 k resistor for a loopstick and resonating capacitor. The 1k output resistor and .047 uf capacitor to ground roll off the high frequency response of the MK-484 at 3.4 kHz. The power for the MK-484 is supplied through the 1 k resistor on its output. Per the manufacturer’s specifications, the maximum voltage at this point is 1.8 volts, so the voltage is regulated by the forward drop of a light emitting diode. This diode has a 120 Ohm internal resistance, so it might have a slightly higher drop than some others. The current to this shunt regulator is supplied through the 3.3 k Ohm resistor, and it is only supplied when pin 8 of the AT90S2313 is high, which corresponds to operation in the superhetrodyne mode. When in the direct conversion mode,  pin 8 of the AT90S2313 is low, so there is no output for the MK-484.
The output of the MK-484 is baseband (audio) and it is coupled to the input of an op-amp connected with a voltage gain of 100X (40 db), with a low frequency cutoff at 15 Hz, and the upper frequency limit being determined by the op-amp’s gain vs frequency plot. The op-amp following this drives the headphone connector and it is set up to have an adjustable gain, according to the setting of the 50 k Ohm volume control, from  X0 to X50. When the wiper of the pot shorts the inverting input to the op-amp’s output, there is virtually no gain from the amplifier. When the wiper is at the end of the pot connected to the 1 k Ohm input resistor, the gain is  approximately 50X.
As might be expected, with a total possible gain of 5,000 (68 db) with an LM324, there is a lot of hissing and popping. I  also tried a TL034 J-Fet op-amp with the same pinouts, and found, unsurprisingly, that a lot of the lower frequency noise went away, especially the “popcorn” type noise. There are other quad op-amps out there, some with even better noise figures. I guess the other key parameters, besides noise performance, to keep an eye on when considering other op-amps is power supply requirements, dynamic range of inputs and the output, and stability with unity gain (as in the case of the audio output stage with minimum gain).
The low pass filter made of the 20k resistor and the 0.47 uf capacitor on the pin 10 of the LM324 serves to couple the DC bias established at the first Op-Amp, and it also serves to roll off the amplifier’s gain at frequencies below 15 Hz.
The signal coupling into the 1k resistor, then to the inverting input is coupled through a 10 uf capacitor. At the mamimum gain setting, this network’s low ferquency corner is 15 Hz, but decends to lower frequencies as the gain is increased.
For more detail: A Superhet/Direct Conversion AM receiver  for 181.818 kHz using Attiny2313

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top