Skip to main content

May 9, 2024. As requested more S Meter details.

I got a couple of requests for detailed info on the S Meter. So here you be.


The As Built Circuit

A builder's group in the G-QRP Club provided me this circuit and it has worked like a charm. This group took my Sudden Transceiver design and moved it to 17M and added the actual S Meter sense circuitry. The Zener Diode is in the loop to limit the Voltage input to the Arduino.
 


The following is the call function in the code for the S Meter. The code below creates the Bar Graph. But there is a lot more besides the moving bar. The adcval also has to be listed as one of the variables.
 
There is no technical reason or knowledge base for the formula. I just noodled my way through the math knowing it had to be a log function and some of the other factors are there, so you get a reasonable bar length to display. 


 void CheckSM(){
          
        adcval = analogRead(A6);  //S meter routine
      
        val= 15*log((adcval-200)/20);   
       
        display.fillRect(58,87, val, 2, YELLOW);
        
        delay(20);
        
               
       }

The 58 and 57 are the starting location (pixel) on the Color TFT screen, The val is the S Meter Value (based on hocus pocus) and the 2 is the height of the Bar and YELLOW is the Bar Color. (Magic Decoder Ring stuff.) 

Here is some of the Code to put the S Meter graphics on the screen complete with Tick marks and markings for S9.

            display.setTextSize(1);
            display.setTextColor(GREEN);
            display.setCursor(6,83);
            display.println("S Meter");
            display.setCursor(118,67);
            display.print("S9");
            display.drawRect(56,79,95,15,RED);
            display.fillRect(57, 86, 93,4, BLACK);
            display.setTextColor(RED);

            for(int i = 0; i < 8; i++) {   //
A Trick to add  "Tick Marks" to the S Meter
          
          display.fillRect(60 + 10* i,80,1,5,WHITE);}

The collecting file for the adcval


int adcval = A6; // Analog Pin A6 for the S Meter function. 
 
You also have to designate in the Pin Mode that A6 is an INPUT.
 
Undoubtedly some genuine "software weenie" has the correct formula. But this does display, and strong signals hit S9.
 
 

This same S Meter Circuit is installed in the Peashooter SSB Transceiver. The Color TFT in that radio is less than 1 inch square.
 

 
The Display from the G-QRP Club Project

You will note the G-QRP guys removed some of my extra Gingerbread on the display and cleaned up the array of info. One cool thing I came up with is simulated LEDs in Green to show what is active. In the G-QRP display I immediately know the lower "B" VFO is active. In my code I had some thoughts about cross band operating so the smaller display of frequencies with small green dots is to show which band you are transmitting on. 

Always Ahead of the Curve!

 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 ...

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...

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