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 ATTiny85-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 two zeners are to protect the PC USB port, not the AVR chip, as that runs off a 5V supply. They are there with R1 and R3 to limit the USB signals to the PC to nominal level of 3.6v maximum.

R6 and R7 are pullup resistors that keep the control pins (SCL and SDA) of the Si570 at 3.3V. The AVR pulses them low when it communicates.

U3 uses and comes pre-loaded with the Firmware by Fred PE0FKO 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.
  • Problems recognizing USB: Nico ZS1KT reports that a commonly experienced problem, where builders have completed their rigs and they have been working and then suddenly the USB device is no longer recognized, was due to poor solder joint(s) on the socket for the AVR (ATTinyxx) chip. In his case, the ground pin (4) was not well-soldered and the chip could not see a good ground. This often happens because builders are using the same heat setting they use on the sensitive SMT parts. This turns out in many cases to be insufficient to provide a good, permanent solded joint onto the ground plane.

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

Take care to be sure you are using adequate heat in soldering the socket pins. Tis is especially true for the ground pin (pin 4). Tx to Nico ZS1KT for this hint.

Install J3

J3 is reserved for a future use to provide control signals to the new HF_BPF (electronically switched bandpass fiters) kit. Note: J1 through J3 all mount on top of the circuit board with the short pins through the board for soldering the connector in place.
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

AVR Chip Configuration

Install the USB driver software on your PC

If you have not already done so, install the latest USB driver on your PC. This driver is found at Fred Krom's PE0FKO website in a USB driver zip file. The file is located quite a ways down in the web page (hint: do a "Find" on "Installing the PC driver software" to get to the link to the latest PC Driver zip file).

Download the zip file and extract the it to a temporary directory (on the Desktop). Then, plug in the device and it will show "Found new hardware DG8SAQ-I2C". Direct Windows' driver installation wizard to the directory where the software was temporarily stored and finish installing the driver.

Configure the AVR Chip

This step involves downloading an executable program and an associated DLL and running the program to configure the AVR chip to your desired settings.

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.

HF-BPF board