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

2019 ~ What is the simplest homebrew SSB Transceiver that can be built?

4/27/2019 The Future of our Hobby is Here! Forget those simple rigs with homebrew crystal filters, cranky IRF510's and the analog VFO's. SDR is the wave that is building strength just like a Tsunami. With the Soft Rock V6.3 SMD Version + RRPi2 With the Omnia SDR and RPi2 Pete N6QW How Simple & How Cheap can you  build a Homebrew SSB Transceiver? 4/26/2019 --- I just converted my websites from an obsolete Windows Based Server with GoDaddy to their cPanel (Linux). This was a cost issue as a one year renewal of the Windows Server would buy three years on the cPanel. GoDaddy is discouraging the use of what they call the Obsolete Windows System. So I had to migrate and reload the whole pastapete.com, jessystems.com and the n6qw.com sites to the Linux based servers. Some files and links got lost in the translation --so you might not be able to see everything! Essentially I have  to open every link to verify that it works --that may take some time

New Technology for 2020 ~ The Hermes Lite 2.0 SDR Transceiver

  The Hermes Lite 2.0 SDR Transceiver. November 7th, 2020 ~ It's Settled! It is done! The stain of the Trump era is soon to be removed! Thanks to all who voted. The Voice of the People has been heard.  Congratulations to President Elect Biden and Vice President Elect Harris. Pete N6QW November 3rd, 2020 -- IT WAS THE MOUSE   We all know this is Dump Trump  Day. Go out and vote! It was the mouse! Back in 1999 I stupidly was one of the very first to purchase a Ten Tec Pegasus. Never buy the first batch of a new model.  Touted as the world's first computer controlled radio , actually I think the Kachina 505 was really the first. But the Pegasus was fraught with problems including a trip back to the Smokey Mountains. I was using an older Windows 95 machine to control the Pegasus and that may be a co-conspirator. Well after many calls to TT -- finally someone who has some smarts told me: Fix your station ground, Make all leads short and Buy stock in a ferrite bead company. I did all

The Next Project Updated 10/10/2022! The rubber has hit the pavement!

The Next Project... A 2022 Transceiver. 10/10/2022 My Apologies. It is with regret that I will be terminating any further work on this project. My caregiver duties have over time become a greater time sink and it is almost impossible to build something working only 10-15 minutes at a time spread out over a day. I apologize for not getting it from design ideas to complete hardware. Most likely I have built the last transceiver I will ever build. Thanks for riding along. My website https://www.n6qw.com/  has the pdf of the postings and I will leave this blog page as is. 73's Pete N6QW 10/05/2022 Still Alive! Regrettably my caregiver duties have overtaken any free time so not much progress. But I am hopeful yet this week I will cut at least one board. A PSA from N6QW.  Think of it like Mary Jo has a "crink" in her back and unable to get in the backseat of the 57 VW Beetle. A bit of a setback but not forever.  Seems like the hired caregiver had a small emergency and not able