Local Oscillator and Control Introduction
This stage completes the component installation for the isolated USB ground plane and implements:
- the microcontroller and
- the local oscillator functionality.
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
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)
(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
|❏||D1||BZX55C3V3 3.3V zener diode||BZX55C||Axial||The band end of the diode is the hairpin lead - see board layout||Local Oscillator and Control|
|❏||D2||BZX55C3V3 3.3V zener diode||BZX55C||Axial||The band end of the diode is the hairpin lead - see board layout||Local Oscillator and Control|
|❏||magwire||Magnetic Wire, enameled #30||Magnetic||(total of 30 ft. provided in kit)||Local Oscillator and Control|
|❏||SO1||8 pin dip socket||Socket||for ATTiny85||Local Oscillator and Control|
|❏||U01||ATtiny 85-20 PU w/V15.12 Firmware||AVR ATTINY85-20PU||DIP 8||(dimple in upper right)||Local Oscillator and Control|
|❏||U03||Si570 Programmable Oscillator||SiLabs 570||I2C||Local Oscillator and Control|
|❏||U04||LTV-817 Opto-Isolator||LTV 817||DIP-4||(dimple in upper left)||Local Oscillator and Control|
|❏||U05||LTV-817 Opto-Isolator||LTV 817||DIP-4||(dimple in upper left)||Local Oscillator and Control|
|❏||C03||0.01 uF||103||Ceramic||horiz||Local Oscillator and Control|
|❏||C30||0.1 uF||(smt) black stripe||SMT 1206||white pads||Local Oscillator and Control|
|❏||C33||0.1 uF||(smt) black stripe||SMT 1206||white pads||Local Oscillator and Control|
|❏||C35||0.1 uF||(smt) black stripe||SMT 1206||white pads||Local Oscillator and Control|
|❏||R01||68 1/6W 5%||bl-gry-blk-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R02||68 1/6W 5%||bl-gry-blk-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R03||2.2k 1/6W 5%||red-red-red-gld||1/6W||E-W||Local Oscillator and Control|
|❏||R05||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E||Local Oscillator and Control|
|❏||R06||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E||Local Oscillator and Control|
|❏||R07||2.2k 1/6W 5%||red-red-red-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R08||2.2k 1/6W 5%||red-red-red-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R09||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E||chenged from 221||Local Oscillator and Control|
|❏||R12||10 k 1/6W 5%||brn-blk-ora-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R13||10 k 1/6W 5%||brn-blk-ora-gld||1/6W||N-S||Local Oscillator and Control|
|❏||R04||1 M 1/6W 5%||brn-blk-grn-gld||1/6W||E-W||Local Oscillator and Control|
|❏||T01-core||BN-43-2402 (no markings!)||none||Binocular core||Local Oscillator and Control|
|❏||T01||band-specific||misc||change from 3Ttrifilar||Local Oscillator and Control|
Band Specific Items for HF Band
|❏||T01||5.76uH: 2T(bi)T #30(8 (2x4)in) on BN43-2402||xfrmr||change from 3Ttrifilar||Local Oscillator and Control|
Band Specific Items for LF Band
|❏||T01||12.96uH: 3T(bi)T #30(10 (2x5)in) on BN43-2402||xfrmr||change from 3Ttrifilar||Local Oscillator and Control|
Local Oscillator and Control Summary Build Notes
- Install Protective Topside Parts
- Install Bottomside Components
- Wind and Install T1
- Install Topside Ics
- Install Remainder of Topside Components
- Download and Install Required Software
- Configure Si570 for LF Option
- Test the Stage
Local Oscillator and Control Detailed Build Notes
Bottom of the Board
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)>
|❏||R07||2.2k 1/6W 5%||red-red-red-gld||1/6W||N-S|
|❏||R08||2.2k 1/6W 5%||red-red-red-gld||1/6W||N-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.
|❏||U03||Si570 Programmable Oscillator||SiLabs 570||I2C|
|❏||C30||0.1 uF||(smt) black stripe||SMT 1206||white pads|
|❏||C33||0.1 uF||(smt) black stripe||SMT 1206||white pads|
|❏||C35||0.1 uF||(smt) black stripe||SMT 1206||white pads|
Top of the Board
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.
|❏||magwire||Magnetic Wire, enameled #30||Magnetic|
(total of 30 ft. provided in kit)
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.
|❏||SO1||8 pin dip socket||Socket|
|❏||U01||ATtiny 85-20 PU w/V15.12 Firmware||AVR ATTINY85-20PU||DIP 8||(dimple in upper right)|
|❏||U04||LTV-817 Opto-Isolator||LTV 817||DIP-4||(dimple in upper left)|
|❏||U05||LTV-817 Opto-Isolator||LTV 817||DIP-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.
|❏||D1||BZX55C3V3 3.3V zener diode||BZX55C||Axial|
The band end of the diode is the hairpin lead - see board layout
|❏||D2||BZX55C3V3 3.3V zener diode||BZX55C||Axial|
The band end of the diode is the hairpin lead - see board layout
|❏||R01||68 1/6W 5%||bl-gry-blk-gld||1/6W||N-S|
|❏||R02||68 1/6W 5%||bl-gry-blk-gld||1/6W||N-S|
|❏||R03||2.2k 1/6W 5%||red-red-red-gld||1/6W||E-W|
|❏||R05||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E|
|❏||R06||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E|
|❏||R09||2.2k 1/6W 5%||red-red-red-gld||1/6W||W-E|
chenged from 221
|❏||R12||10 k 1/6W 5%||brn-blk-ora-gld||1/6W||N-S|
|❏||R13||10 k 1/6W 5%||brn-blk-ora-gld||1/6W||N-S|
|❏||R04||1 M 1/6W 5%||brn-blk-grn-gld||1/6W||E-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:
- USB driver: (search for "Download Firmware source and .hex files")
- CFGSR program: (search for "Download")
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:
|CFGSR||Configure/Control Ensemble microcontroller||download||(latest version is 2.3)|
|SRDLL||dll for Softrock controllers (resides in same folder as CFGSR)||(now part of CFGSR install file)|
|USB driver(s)||drivers for ATTiny85 USB||download||Zip file with 32 and 64 bit drivers (latest version is 184.108.40.206)*.|
|HDSDR||Simple SDR (RX only) Program (based upon original Winrad)||download|
|Rocky||Simple SDR (RX/TX) Program (see note below)||download|
|(Windows XP) PowerSDR-IQ V1.12.20||Version of FlexRadio's PowerSDR tailored for I/Q Soundcard-based SDRs||download||Has Si570 Control Capability|
|(Windows 7, Vista) PowerSDR-IQ V220.127.116.11||Version of FlexRadio's PowerSDR tailored for I/Q Soundcard-based SDRs||download||Has 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.
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 tabset the minimum device frequency to 3MHz (default 6MHz). Although the Si570 will not run below 3.5MHz, the box only accepts integer values
LO tabneed to change the 'LO:Total' multiply for bands 0 - 3 from the default x4 to x16
ABPF tabneed 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
Bottom of the Board
Local Oscillator and Control Testing
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.
|Current Draw - NO USB||mA||< 8||4.3||_______|
|Current Draw - USB plugged in||mA||< 9||5.3||_______|
Test T1 Windings
Test SetupUsing 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.
|"A" to "B"||ohms||~0||_______|
|"A" to "C"||ohms||~ infinity||_______|
LO Stage Outputs
Here we want to measure the output (4x center frequency for dividers). It is measured WRT (regular) ground (at the R9 hairpion lead).
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:
Then, check out the "Si570" tab. It should look like this:
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.)
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."
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.
Validate Filter Selection Outputs
Start up CFSR again and tune the local oscillator through four frequencies (each being in the middle of one of the bands):
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.
|R12 (for 2 MHz band 0)||Vdc||0||100 mV||_______|
|R12 (for 6 MHz band 1)||Vdc||0||100 mV||_______|
|R12 (for 12 MHz band 2)||Vdc||5||4.92||_______|
|R12 (for 24 MHz band 3)||Vdc||5||4.92||_______|
|R13 (for 2 MHz band 0)||Vdc||0||100 mV||_______|
|R13 (for 6 MHz band 1)||Vdc||5||4.92||_______|
|R13 (for 12 MHz band 2)||Vdc||0||100 mV||_______|
|R13 (for 24 MHz band 3)||Vdc||5||4.92||_______|