Introduction

Theory of Operation

This stage provides the control interface between the hardware SDR and a PC that is running the appropriate SDR software which can provide I2C (Inter Integrated Circuit) bidirectional control signals over a USB connection. There are two lines in the I2C bus: the clock (SCL) and the date (SDA). For a more in-depth discussion of the I2C protocol, see the formal Specification.

The heart of the control circuit is U3, an ATTiny45-20PU 8 bit AVR Microcontroller (caution! the pdf for this device is over 4MB). The unit is powered off of the PC's USB 5 Vdc bus and provides a 6 bit bi-directional I/O port. It draws less than 10mA. The zener diodes in the schematic help ensure that the USB data lines (D+ and D-) are at 3.3V only.

U3 uses the AVR firmware by DG8SAQ to perform the following functions:

  • Accept control signals via the pins 2 and 3 of the Universal Serial Bus (USB)
  • Translate input signals into I2C control signals (bi-directional SDA and input-only SCL lines) for the Si570 programmable Oscillator
  • Translate output I2C signals from the Si570 back to USB signals to the PC
  • Translate incoming bandswitching commands into appropriate signals to J3 (for control of the new HF-BPF board.
  • Future:  new firmware for U3 is being developed to implement automatic band switching of the new HF-BPF switchable BPF.

Update

Several builders have experienced issues with the voltages on the USB-2 and USB-3 lines and diodes D2 and D3. Following a long series of messages on the Softrock Yahoo Group, Jan G0BBL and Tony KB9YIG have decided to address the issue as follows:

  • Each new kit will be packed with two each of the BZY55 3.3 volt and 3.6 volt zener diodes in place of the two 1N5227B zener diodes for the D2 and D3 locations.
  • Builders are advised to try the 3.6 volts BZY55 zener pair for D2 and D3 first, (marked on the glass body with 3V6), and if they still have USB communications reliability problems then go to the 3.3 volt BZY55 zener pair.

Schematic

This is a subset of the overall schematic. Note: red dot indicates resistor testpoints (hairpin, top, or left-hand lead)
02 USB Control Circuit

Bill of Materials

DesignationValueColor/CodeOrientationCategoryNotes
C060.1uFSMT 1206black marked strip
C070.1uFSMT 1206black marked strip
C080.1uFSMT 1206black marked strip
FL1ferrite filterSMT 1206
FL2ferrite filterSMT 1206
FL3ferrite filterSMT 1206
FL4ferrite filterSMT 1206
FL5ferrite filterSMT 1206
D21N5227B,3.6vN-Sdo not use
D31N5227B,3.6vS-Ndo not use
D2BZY55,3.3vN-SSee "Update" note in Introduction Section, above.
D3BZY55,3.3vS-NSee "Update" note in Introduction Section, above.
D2BZY55,3.6vN-SUse this. See "Update" note in Introduction Section, above.
D3BZY55,3.6vS-NUse this. See "Update" note in Introduction Section, above.
C054.7uF475ceramic
R0168 1/6W S-N
R0368 1/6WS-N
R054.7k 1/6W E-W
R021M 1/6WS-N
R042.2k 1/6WS-N
R061kS-N
R071kS-N
U2ATTiny45-20PUwith socket
J32 pin header
cable1USB4 wire shielded USB cable with USB male on 1 end

Summary Build Notes

  • Install Zener diodes D2 and D3 (top)
  • Install resistors  and C5 ceramic cap (top)
  • Install U2 and socket (top)
  • Install J3 (top)
  • Install and connect USB cable (top)
  • Test the Stage
  • Install SMT capacitors and ferrite filters (bottom)

Detailed Build Notes

In other stages, we prefer to begin with the bottom side of the board. However, in this stage, the thru-holes for the topside coponents are very close together and are just begging to get solder splashed into them if we were to install the SMT components first. Thus, in this stage, we have reversed the bottom-then-top sequence.

Top of the Board

Install Zener Diodes

Several builders have experienced issues with the voltages on the USB-2 and USB-3 lines. Jan G0BBL and Tony KB9YIG have decided to address the issue as follows:

  • Each new kit will be packed with two each of the BZY55 3.3 volt and 3.6 volt zener diodes in place of the two 1N5227B zener diodes for the D2 and D3 locations.
  • Builders are advised to try the 3.6 volts BZY55 zener pair for D2 and D3 first, (marked on the glass body with 3V6), and if they still have USB communications reliability problems then go to the 3.3 volt BZY55 zener pair.

The two zener diodes are mounted hairpin style, with the cathode (banded) lead forming the hairpin.

Zener Diodes' hairpin orientation
DesignationValueColor/CodeOrientationCategoryNotes
D2BZY55,3.6vN-SUse this. See "Update" note in Introduction Section, above.
D3BZY55,3.6vS-NUse this. See "Update" note in Introduction Section, above.

Install Resistors and ceramic capacitor C5

Note: 1/6W resistors are used due to the tight spacing of the resistors on the board.
DesignationValueColor/CodeOrientationCategoryNotes
C054.7uF475ceramic
R0168 1/6W S-N
R021M 1/6WS-N
R0368 1/6WS-N
R042.2k 1/6WS-N
R054.7k 1/6W E-W
R061kS-N
R071kS-N

Install U2 Socket

Install the socket for U2.  Note the orientation on the notch, which should face eastward on the board

Install J3

J3 is reserved for a future use to provide control signals to the new HF_BPF (electronically switched bandpass fiters) kit.
DesignationValueColor/CodeOrientationCategoryNotes
J32 pin header

Install USB Cable

Solder a piece of hookup wire to the cable's shielding (see yellow lead in photo below) to serve as a strain-relief for the cable. Solder the strain-relief into the hole between leads 2 and 3.

Solder the USB cable leads in the order of red, white, green, and black to holes marked, respectively, 1, 2, 3, and 4

After soldering, carefully check (with good lighting and magnification) to ensure:

DesignationValueColor/CodeOrientationCategoryNotes
cable1USB USB Cable Leads 4 wire shielded USB cable with USB male on 1 end.

Following installation of the USB cable, take care in subsequent stages not to overly twist the USB cable and cause broken or bad connections. When moving the board along, it is important to support the cable and turn it with the board to minimize physical twisting and/or strain.
(Tx to Steve G0XAR for this experienced-based hint)

Bottom of the Board

Install SMT Capacitors

DesignationValueColor/CodeOrientationCategoryNotes
C060.1uFSMT 1206black marked strip
C070.1uFSMT 1206black marked strip
C080.1uFSMT 1206black marked strip

Install SMT Ferrite Filters

DesignationValueColor/CodeOrientationCategoryNotes
FL1ferrite filtergreySMT 1206
FL2ferrite filtergreySMT 1206
FL3ferrite filtergreySMT 1206
FL4ferrite filtergreySMT 1206
FL5ferrite filtergreySMT 1206

Plug in U2

Note orientation - pin 1 is designated by the dimple/dot (see below)

DesignationValueColor/CodeOrientationCategoryNotes
U2ATTiny45-20PU with socket

Completed Stage

Topside

(Note: resistors R6 and R7 not shown below - see completed topside picture of next (LO) stage)

Completed Topside View

Bottomside

Completed Bottomside View

Testing

Resistances

Test Setup

Make sure the USB cable is NOT connected to the PC

Test Measurements

TestpointNominal ValueAuthor'sYours
R5 hairpin to ground~∞ Ωstarts ~34 MΩ (increasing to ∞)______Ω
R5 hairpin to USB-22.268 kΩ2.269 kΩ______Ω
R5 hairpin to USB-3~1 MΩ990 kΩ______Ω

Voltages

Test Setup

If the resistance tests are successful, plug in the USB cable to the PC USB port and test the voltages

Voltage Test Measurements

(actual values may be +/- 10% of nominal values)

TestpointNominal ValueAuthor'sYours
R5 hairpin (U2-8) to ground5 Vdc4.96 Vdc________
R1 hairpin (U2-5) to ground60-100 mVdc96 mVdc________
R3 hairpin (U2-7) to ground2.5-3.0 Vdc2.54 Vdc________

USB Polling - Courtesy of JAN G0BBL

Test Setup

Plug in the USB cable to the PC USB port

Test

The USB polling can be checked. Connect a short piece of wire to R3 hairpin and an audio tone should be audible as a S9 Plus signal on a RX in AM Mode tuned to about 1100 KHz in the AM Band (Medium Wave Broadcast band)

Test End

Unplug the USB cable from the PC

Functional Test Setup

The functional testing of this kit assumes you will be using the Rocky SDR program to control your Local Oscillator and set your center frequencies.



The following steps outline how to set up Rocky for this (and later) tests:

The PC is now set up to use Rocky to control the Si570 Local Oscillator.

Test USB


It is very important to follow the procedure below exactly. The USB interface and Rocky can interact in very strange fashion if you do not. Also, do not try to use Rocky's frequency changing mechanism until after the LO stage.

With Rocky setup as above, follow the steps below:

HF-BPF board