Local Oscillator and Control Introduction

General

This stage completes the component installation for the isolated USB ground plane and implements:

The microcontroller implements a USB device which can control frequency of the programmable oscillator (Si570) and provides programmatic band-select switching signals to select from among bands 0, 1, 2, and 3. These bands are "super bands" which, depending upon the builder's choice of options, provide coverage of the traditional HF bands or a set of HF bands plus 6m.

It is important to remember that the Local Oscillator does not output at the desired center frequency for your band; it produces an output at a frequency that is:

  • For the HF option, 4 times the desired center frequency
  • For the LF optikon, 16 times the desired center frequency
(go directly to build notes)

Local Oscillator and Control Schematic

(Resistor testpoints (hairpin, top, or left-hand lead), as physically installed on the board, are marked in the schematic with red dots)

(Click for Full Schematic)
Local Oscillator and Controlschematic

(above schematic has clickable areas that can be used for navigation)

(go directly to build notes)

Local Oscillator and Control Bill of Materials

Stage Bill of Materials

(resistor images and color codes courtesy of WIlfried, DL5SWB's R-Color Code program)

CheckDesignationComponentMarkingCategoryOrientationNotesCircuit
D1BZX55C3V3 3.3V zener diodeBZX55C BZX55CAxial The band end of the diode is the hairpin lead - see board layoutLocal Oscillator and Control
D2BZX55C3V3 3.3V zener diodeBZX55C BZX55CAxial The band end of the diode is the hairpin lead - see board layoutLocal Oscillator and Control
magwireMagnetic Wire, enameled #30Magnetic (total of 30 ft. provided in kit)Local Oscillator and Control
SO18 pin dip socketSocket for ATTiny85Local Oscillator and Control
U01ATtiny 85-20 PU w/V15.12 FirmwareAVR ATTINY85-20PU AVR ATTINY85-20PUDIP 8(dimple in upper right)Local Oscillator and Control
U03Si570 Programmable OscillatorSiLabs 570 SiLabs 570I2C Local Oscillator and Control
U04LTV-817 Opto-IsolatorLTV 817 LTV 817DIP-4(dimple in upper left)Local Oscillator and Control
U05LTV-817 Opto-IsolatorLTV 817 LTV 817DIP-4(dimple in upper left)Local Oscillator and Control
C030.01 uF103 103Ceramichoriz Local Oscillator and Control
C300.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads Local Oscillator and Control
C330.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads Local Oscillator and Control
C350.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads Local Oscillator and Control
R0168 1/6W 5%bl-gry-blk-gld bl-gry-blk-gld1/6WN-S Local Oscillator and Control
R0268 1/6W 5%bl-gry-blk-gld bl-gry-blk-gld1/6WN-S Local Oscillator and Control
R032.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WE-W Local Oscillator and Control
R052.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-E Local Oscillator and Control
R062.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-E Local Oscillator and Control
R072.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WN-S Local Oscillator and Control
R082.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WN-S Local Oscillator and Control
R092.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-Echenged from 221Local Oscillator and Control
R1210 k 1/6W 5%brn-blk-ora-gld brn-blk-ora-gld1/6WN-S Local Oscillator and Control
R1310 k 1/6W 5%brn-blk-ora-gld brn-blk-ora-gld1/6WN-S Local Oscillator and Control
R041 M 1/6W 5%brn-blk-grn-gld brn-blk-grn-gld1/6WE-W Local Oscillator and Control
T01-coreBN-43-2402 (no markings!)none noneBinocular core  Local Oscillator and Control
T01band-specificmisc change from 3TtrifilarLocal Oscillator and Control

Band Specific Items for HF Band

CheckDesignationComponentMarkingCategoryOrientationNotesCircuit
T015.76uH: 2T(bi)T #30(8 (2x4)in) on BN43-2402 xfrmr change from 3TtrifilarLocal Oscillator and Control

Band Specific Items for LF Band

CheckDesignationComponentMarkingCategoryOrientationNotesCircuit
T0112.96uH: 3T(bi)T #30(10 (2x5)in) on BN43-2402 xfrmr change from 3TtrifilarLocal Oscillator and Control

Local Oscillator and Control Summary Build Notes

Local Oscillator and Control Detailed Build Notes

Bottom of the Board

Local Oscillator and Control Bottom View

Install Protective Topside Parts

Install these resistors first, so as to protet against solder splashover at pins 4 and 8 off the Si570 (see below)

Install Protective Topside Parts photo
CheckDesignationComponentMarkingCategoryOrientationNotes
R072.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WN-S
R082.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WN-S

Install Bottomside Components

Watch out when installing C35 to avoid solder splashover into the adjacent holes for the T1 primary windings.

Note the orientation photo for the Si570 and install with correct orientation.

Pay close attention to the pins 4 , 7, and 8, as their footprint is quite small relative to the other pads. The very tight space around those pins and the multiple contacts in close proximity can easily lead to frustrating solder bridges.

CheckDesignationComponentMarkingCategoryOrientationNotes
U03Si570 Programmable OscillatorSiLabs 570 SiLabs 570I2C 
C300.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads
C330.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads
C350.1 uF(smt) black stripe (smt) black stripeSMT 1206white pads

Top of the Board

Local Oscillator and Control Top View

Wind and Install T1

You should take two 5" strands of #30 wire and twist them together ("bifilar") so you get around 3 twists to the inch. Using the resultant bifilar strand, thread it through the binocular core for two turns. Remember a turn is a trip that:
(1) starts at a particular hole
(2) goes into that hole and out of the other end
(3) goes into the hole nthat is across from the hole out of which it just exited, and
(4) Comes out of the hole at the opposite end and across from the original entry hole.
Do that series twice with the twisted pair and you have a transformer with two windings (each winding corresponding to one of the two twisted single wires).
Each winding (primary and secondary) is two turns. Since the windings are identical in length and number of turns, you can arbitratily pick either one as the primary, with the remaining winding serving as the secondary winding.
(Hint: use an ohmmeter (or other continuity checker) to identify which wire-ends go together to make the ends of a winding.

ALERT: The pcb layout for the Ensemble RX II has incorrect placement of the ground holes for the windings of T1, the local oscillator isolation transformer. This will be rectified in a later version of the pcb (as of 19 Juy 2012, the original version is documented herein).
If the local oscillator isolation transformer is not connected properly some of the Si570 fundamental and harmonics will be radiated from the USB and other cables.
The principle is that the grounded side of the isolation transformers should go to the same end of the primary and secondary. The two wires that come from the same hole in the binocular core.
The fix for this is documented in a paper by Alan G4ZFQ - please refer to that paper for the important details.

If you are unfamiliar with winding and installing inductors, you may want to refer to the WB5RVZ construction hints for coils (toroidal) and transformers ( toroidal and binocular). Click here for details on identifying toroid cores.

Decoding the trqansformer specifications:

Transformers' windings are specified using the pattern "nnT/wXmmT" or "wXmmT/nnT", where:

  • "nn" is the number of turns in the single winding
  • "mm" is the number of turns in the multiple windings
  • "w" = the number of multiple windings (e.g., 2 = bifilar; 3 = trifilar, etc.)

Thus, e.g., "18T/2x9T bifilar #30" means, using #30 wire, produce a single 18 turn primary winding and two 9-turn secondary windings; "2x9T bifilar/ 18T #30" means, using #30 wire, produce two 9-turn primary windings and a single 18 turn secondary winding.

CheckDesignationComponentMarkingCategoryOrientationNotes
magwireMagnetic Wire, enameled #30Magnetic 
(total of 30 ft. provided in kit)
T01band-specific
BandComponentMarking
HF5.76uH: 2T(bi)T #30(8 (2x4)in) on BN43-2402 (xfrmr)
LF12.96uH: 3T(bi)T #30(10 (2x5)in) on BN43-2402 (xfrmr)
misc 
change from 3Ttrifilar

Install Topside Ics

Double check the orientation on the two optoisolators. They should be oriented so that their "dimple" is in the upper left-hand corner.

CheckDesignationComponentMarkingCategoryOrientationNotes
SO18 pin dip socketSocket 
for ATTiny85
U01ATtiny 85-20 PU w/V15.12 FirmwareAVR ATTINY85-20PU AVR ATTINY85-20PUDIP 8(dimple in upper right)
U04LTV-817 Opto-IsolatorLTV 817 LTV 817DIP-4(dimple in upper left)
U05LTV-817 Opto-IsolatorLTV 817 LTV 817DIP-4(dimple in upper left)

Install Remainder of Topside Components

Careful installing the resistors and diodes clustered near the USB connector area. Builders have been known to insert these into the wrong holes. Review the board layout and the orientation column below to double check the orientation.

The body of each zener is to be located above the silkscreen circles for D1 and D2 on the board with the diodes mounted standing perpendicular to the board in a hairpin fashion. The banded end of each diode is then at the lead of the diode that loops back to the circuit board.

CheckDesignationComponentMarkingCategoryOrientationNotes
D1BZX55C3V3 3.3V zener diodeBZX55C BZX55CAxial 
The band end of the diode is the hairpin lead - see board layout
D2BZX55C3V3 3.3V zener diodeBZX55C BZX55CAxial 
The band end of the diode is the hairpin lead - see board layout
C030.01 uF103 103Ceramichoriz
R0168 1/6W 5%bl-gry-blk-gld bl-gry-blk-gld1/6WN-S
R0268 1/6W 5%bl-gry-blk-gld bl-gry-blk-gld1/6WN-S
R032.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WE-W
R052.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-E
R062.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-E
R092.2k 1/6W 5%red-red-red-gld red-red-red-gld1/6WW-E
chenged from 221
R1210 k 1/6W 5%brn-blk-ora-gld brn-blk-ora-gld1/6WN-S
R1310 k 1/6W 5%brn-blk-ora-gld brn-blk-ora-gld1/6WN-S
R041 M 1/6W 5%brn-blk-grn-gld brn-blk-grn-gld1/6WE-W

Download and Install Required Software

All of the latest versions of essential firmware configuration programs, USB driver and their associated documentation can be obtained from Fred PE0FKO's website:

In order to test (and later, operate) your rig, you must download and install required software (SDR programs and Dynamic Link Libraries, along with hardware drivers. The actual steps and programs may vary, depending upon your computer's windows operating system version (XP, Vista, or Windows 7) and architecture CPU/memory (32 bit or 64 bit).

The following links are provided and, as of 7/8/2010, are current:

SoftwareRole/PurposeDownload LinkNotes
CFGSRConfigure/Control Ensemble microcontrollerdownload(latest version is 2.3)
SRDLLdll for Softrock controllers (resides in same folder as CFGSR)(now part of CFGSR install file)
USB driver(s)drivers for ATTiny85 USBdownloadZip file with 32 and 64 bit drivers (latest version is 1.2.0.1)*.
HDSDRSimple SDR (RX only) Program (based upon original Winrad)download
RockySimple SDR (RX/TX) Program (see note below)download
(Windows XP) PowerSDR-IQ V1.12.20Version of FlexRadio's PowerSDR tailored for I/Q Soundcard-based SDRs downloadHas Si570 Control Capability
(Windows 7, Vista) PowerSDR-IQ V1.19.3.15Version of FlexRadio's PowerSDR tailored for I/Q Soundcard-based SDRs downloadHas Si570 Control Capability (Please see Christos' message 43204 on the Yahoo Reflector)

Note: Rocky latest version is 3.6. Operates fine on Windows XP; in later Windows versions, Rocky will operate, but only recognizes USB soundcards. Has RXTX for CW and PSK31; RX only for SSB.

*Note on installing PE0-FKO's USB Drivers: Fred's website has an excellent step-by-step guide to instaling the USB driver.

Install Driver

The correct procedure is to download the driver and put it in a suitable folder, then plug in the USB lead, Windows should detect new hardware has been found and you need to manually point it to the folder containing the drive. It should then install correctly. Certainly does on Win2000 and XP. On Vista or Windows 7, there used to be some issues with driver signing. There have been messages on the forum describing methods of working around these issues. One such solution is addressed in the author's MOBO4.3 builders notes.

LibUSB - "Unknown Device" Error

Others have experienced the dreaded "Unknown Device" problem upon plugging in the USB cable after having installed the LibUsb driver. This "unknown device" problem (and a remedy for those who are using Logitech cordless mouse and/or various wireless internet connection adaptors) are discussed in message #45071 and Message #47755 on the Yahoo Softrock40 Group

Install/Run CFGSR ("ConFiGureSoftRock")

Once the driver is installed, if you run 'CFGSR' that will either automatically 'open' the firmware, or if not, you need to go to the 'USB' tab and select it from the list displayed in the bottom box. Which way depends on if you have 'CFGSR' set up to auto connect on program start or not.

For further discussions of the software side of SDR and soundcard issues, see Alan G4ZFQ's pages.

Test Local Oscillator

You can use 'CFGSR' to exercise the Si570 using the 'Tune' tab that makes it into a 'VFO'. Just a case of setting the frequency, and the Si570 should output a signal at 4 times the frequency displayed on the main display on the screen. The 'Test' tab can also be used to look at all the various Si570 registers etc, but probably unnecessary as if you can hear or measure the Si570 output frequency, you know it is working.

Configure Si570 for LF Option

For the LF version, it will be essential to change the firmware configuration to successfully operate that version. Tthe default values are only suitable for the 'normal' HF version.

Changes needed are (using CFGSR.exe):

  • Si570 tab

    set the minimum device frequency to 3MHz (default 6MHz). Although the Si570 will not run below 3.5MHz, the box only accepts integer values
  • LO tab

    need to change the 'LO:Total' multiply for bands 0 - 3 from the default x4 to x16
  • ABPF tab

    need to change the filter cross over points to 0.4, 0.8 and 1.6MHz

(TX to Bob G8VOI for the instructions on how to configure the Ensemble RX II Local Oscilklator for LF operation.)

Local Oscillator and Control Completed Stage

(These photos were of an earlier board design. It has changed since the author built the kit upon which these notes are based. The board layout graphics are, however, current.)

Top of the Board

View of Completed Top

Bottom of the Board

View of Completed Bottom

Local Oscillator and Control Testing

Current Draw

Test Setup

Power up the regular circuit side of the board

Measure the current draw on the 12 V power lead (WITHOUT the USB plugged in)

Plug in the USB cable and keep 12V power to the main circuit

Measure the current draw on the 12 V power lead (WITH the USB plugged in). You should get a slightly higher current draw.

Test Measurements

TestpointUnitsNominal ValueAuthor'sYours
Current Draw - NO USBmA< 84.3_______
Current Draw - USB plugged inmA< 95.3_______

Test T1 Windings

Test Setup

Using an ohmmeter, check for continuity between the right-hand pad for C35 (point marked "A") and the USB ground (point marked "B"). You should get continuity (~ 0 ohms). Then, check for continuity (~ 0 ohms) between the right-hand pad of C35 (point marked "A") and the regular ground (point marked "C"). You should NOT get continuity; if you do get continuity, then you have a short in the windings or you have your windings crossed. Test T1 Windings

Test Measurements

TestpointUnitsNominal ValueAuthor'sYours
"A" to "B"ohms~0_______
"A" to "C"ohms~ infinity_______

LO Stage Outputs

Test Setup

Here we want to measure the output (4x center frequency for dividers). It is measured WRT (regular) ground (at the R9 hairpion lead).

Setup

Be sure all software and drivers, etc., have been installed. Connect the USB jack via USB cable to the PC. You should hear the "BoopBoop" sound the PC makes when it recognizes a device (the Ensemble) has been attached to a USB port..

Next, run CFGSR.exe and you should get the following screen:

CFGSR General Tab

Then, check out the "Si570" tab. It should look like this:

CFGSR Si570 tab

Note that the Local Oscillator's outputs are measured with respect to the analog ground plane, NOT with respect to the galvanically isolated USB groundplane. The /QSD EN shunt is a good point for this ground connection.

Using the CFGSR Software (at the "Tune" tab), test scenarios for setting the center frequency (remember, the Si570 produces a signal that is 4 times the desired center frequency).

Measure the output at the hairpin lead of R9.

Below is an example of tuning the Si570 in CFGSR, selecting a center frerquency of 1.53 MHz (with an Si570 output frequency of 4x, or 6.12MHz. (Pay no attention to the lousy oscilloscope behind the curtains - the output is really a square wave, but the scope is a cheap USB scope that doesn't sample HF square waves very well.)

Testing Si570 output

You can place your mouse on the frequency in the center frequency field and turn your mouse wheel. The center frequency will increase or decrease and the LO Output frequency (4x) will increase or decrease at a rate 4 times that of the center frequency.

John, KB6QL, discovered this trick for those with no scope, counter, or HF radio to use in testing LO output:

"Turns out that local oscillator can be tuned for a frequency that is in the FM band. So, as a quick and dirty, I got out my little MP3 player-cum-FM-radio and tuned it to that frequency and let the headset cord/ant drape over the RX. It gave me full quieting. Then I switched the RX to another frequency and the quieting was gone."

Troubleshooting Hints
Si570 Does Not Respond to Control Signals

Soldering on the Si570 is the most usual problem with lack of control, providing the USB is properly recognised.

LO Stage Outputs

Validate Filter Selection Outputs

Test Setup

Start up CFSR again and tune the local oscillator through four frequencies (each being in the middle of one of the bands):

  1. 2MHz
  2. 6MHz
  3. 12MHz
  4. 24MHz

Measure the voltages at "FL SEL 0" (R13 hairpin) and "FL SEL 1" (R12 hairpin) with respect to regular ground

(The high/low values at R12 and R13 are used in the ABPF switching truth table, shown in the Automatic Band Pass Filter stage's introductory paragraphs.

Test Measurements

TestpointUnitsNominal ValueAuthor'sYours
R12 (for 2 MHz band 0)Vdc0100 mV_______
R12 (for 6 MHz band 1)Vdc0100 mV_______
R12 (for 12 MHz band 2)Vdc54.92_______
R12 (for 24 MHz band 3)Vdc54.92_______
R13 (for 2 MHz band 0)Vdc0100 mV_______
R13 (for 6 MHz band 1)Vdc54.92_______
R13 (for 12 MHz band 2)Vdc0100 mV_______
R13 (for 24 MHz band 3)Vdc54.92_______
USB 5V dc to the USB Power Supply 3.3 V dc from USB Power Supply Local Oscillator Output to Quadrature Clock Generator Filter Selection Signals to Auto-Switched BPF