Skip to main content

February 9, 2024. Quadrature LO (VFO)

Fair and Balanced so back to Digital LO's (VFO). Our last several blog posts have been about rigs that had an Analog  VFO. Obviously at the heart of this piece is the Si5351.

BUT this time I want to share how I turned a single LO output (typically CLK0) into a Quadrature Output meaning the same signal is coming from both CLK0 and CLK2 but they have a 90 Degree Phase Difference.

Yawn this has been done before with an Arduino so what is the Big Deal.  Well I have done it with a Seeed Xiao, RP2040. 

Lets back up in the sewer and ask why have a Quadrature LO signal. You could start way back with the work of Rick Campbell, KK7B and his famous Phasing Receiver (R2) and Phasing Transmitter (T2). Both projects used a multi pole op-amp audio phase shift network and a phased LO for the RF which was not digital. His piece stated it was a 1-500 MHz project. 
 
A basic phasing approach shows the  90 Degree Phased Shifted Audio (op-amps) and the 90 Degree Phase shifted LO (now with a Seeed RP2040). The Combiner to produce SSB can be a Ferrite Core transformer like in the Soft Rock Transceivers
 
 

 
 
 
Thus a today built Quadrature LO would give a frequency readout and with the Si5351 good through 220MHz. 
 
Several years ago, I Kludged together a SDR transceiver that used a Si570 that was controlled by software at 4X the operating frequency and then with a D Flip Flop converted that to a Quadrature Signal. That worked well except the 74HC74 D Flip Flop maxed out at about 100 MHz so that meant the Quadrature magic stopped at 12 Meters. I believe there are some who did a divide by 2 and got quadrature but have not tried that approach.

In our ever get to the chase approach here is the 14.2 MHz output from CLK0 and CLK2 with a phase shift. Now because of a press for time these days, I did not set up the scope to use a XY input and look at the Lissajous Figure which I will do but if the phase shift is a perfect 90 degrees you will see a circle appear on the scope.
   

90 Degrees with Audio Sine Wave, KK7B Board
Well not exactly 90 Degrees but not too far off.


What I said previously about a perfect circle would be absolutely true for a SINE wave.But I did look at an XY plot of the Si5351 and it was not a circle but a lopsided square. Then it hit me the Si5351 is a PLL and the output is more like SQUARE wave. See the link below.
 
 
 

 
  

This matches the 1st line in the graphic from the link publication. 1:1 signal level frequency with a phase shift of Pi/2 (90 Degrees). The frequency was 14.2 MHz
 


A test you can run at home with your DSO and that is clip the Channel 1 and Channel 2 Probes to the calibration port, turn on the XY Plot function and you will see a line at 45 Degrees from the lower left through 0 and proceeding to the upper right. That is the 1st graphic -- 1 to 1 signal, square wave and 0 Degrees of shift.

There was a journey to get here and I will briefly describe that journey. The first trick was to get the Xiao to operate as a standard LO/BFO like the Arduino Nano. I got some great help from Todd K7TFC. 

Caution the transition is not a simple plug in but you must use the Rotary Library from Bill Buxton and the Si5351 from Etherkit (Jason Mildrum NT7S). Pin Identification is not D2 and D3 (encoder) but 28u and 27u. Todd wrote some code so you can have an automatic decoder ring built in and then you can use either form.
 
Then there is W9RAN, Bob Nickels who has a website RAN Technology and he provided "seed" code (not seeed code) for a quadrature test generator using the Arduino. It is a basic sketch that creates the quadrature signals and with a loop counter advances the frequency a fixed amount. Thus looking at the serial monitor you can watch the frequency increment by the fixed amount specified in the sketch.
 
Now armed with the W9RAN code snippet I had two problems. The first is how to convert his code into something that will work with the Seeed Xiao RP2040 (versus Arduino) and two, since W9RAN was clear that turning this into a working quadrature LO was up to you. So how to embed that in the earlier work with the plain vanilla LO/BFO Seeed Xiao RP2040 code was the challenge and gorilla in the room.
 
For the anal retentive BTE the test setup looks like this as mess works best. BTW there is an OLED display on the prototype board --have not been able to get that to play with the RP2040.
 


That is how we got here.

I suspect that the RP Pico with the RP2040 chip might work but have not tried it or have knowledge that it has been done.

73's
Pete N6QW

Popular posts from this blog

January 26, 2024. A simple CW Transceiver/Transmitter

Cruise through the lower part of the ham bands bands and what do you hear? Well, FT-8 and CW. Often you will not hear any SSB stations yet go to the lower part of the bands, and it is a cacophony (I love that word) of bad sounding signals and some high-speed keying. Fast is not so much of the issue as is bad, run together and jerky keying. But none the less our hobby started there.    So, you could crank down your ICOM 7300 and watch the waterfall on CW or you could homebrew a radio. Actually, to do CW right you need more thought up front than you do with a SSB transceiver. Often, I will state that a CW Transceiver is much more difficult to build than a simple SSB rig. I published two articles in QRP Quarterly on CW transceivers and all I got was a yawn so maybe history will repeat itself.  Yawn!   30M CW Transceiver with RIT!   Of interest is that the LO is a Varactor tuned LC oscillator using a NE602. Look closely at the RIT circuit which is only activated on ...

August 30, 2024. A PNP 20M SSB Transceiver

Shown below is the Block Diagram for the 20M PNP SSB Transceiver steered in the  Transmit Mode . The components shown in the dotted block are relay steered so that the block module is single pass and amplifies in a single direction. The Block diagram show steered in Transmit.  Essentially the steering process works so that the IF Module input follows the Balanced Modulator on Transmit and then the input side follows the Receive Mixer on Receive. All done with some relays and a bit of RG174U coax. For those who count things in detail, this block diagram is not unlike what was used for the PSSST Transceiver which can be found on my website . Yes, a warmed over P3ST only using PNP devices. TYGNYBNT. 73's Pete N6QW

March 31, 2024. Happy Easter to those who celebrate this day.

What a great day to Binge on Chocolate and experience the pain of that filling that has been leaking.  I would be in that category with the leaking filling(s) had I not just spent an amount equivalent to one of the fancy new uptown appliance box transceivers on two filling repairs. Well at least I can binge on the Chocolate bunnies without fear of pain. Regrettably everything appears to have jumped in price including the price of parts. Well not so much the parts as the shipping costs.  That notably is seen in the eBay treasures. I spotted a nice heathkit DX-20 for about $50 and the shipping was $65. Likely it is a twofer with part being a way to in effect charge a higher price by inflating the shipping and in part by increased shipping costs. Shipping with insurance across the US was about $150 for this jewel and that was three years ago. 6AM on the Left Coast ~ 20M Easter Sunday! My only hope is the cost of Chocolate Bunnies remains steady although a pound of See's Candies f...