Skip to main content

Setting S.Meter to uBITX with CEC Firmware Version 1.074 Beta

Setting S.Meter to uBITX with CEC Firmware Version 1.074 Beta
Version 1.074 will be distributed with uBITX Manager 1.05 within 2 days

This document consists of uBITX's S.Meter setting method, examples displayed on the screen, video and so on. At the bottom of this article is example from Ham radio deluxe.

CEC firmware is based on pure uBITX without hardware modifications. Other types of LCD, S.Meter, etc., can be attached as an option when you want.

1.Introduce and S.Meter example
S.Meter used the design found in Jhon(VK2ETA)'s Code.

20x04 LCD Example

16x02 LCD Example

16x02 Dual LCD Example

Ham Radio Deluxe (CAT Protocol with Signal Meter) Example

2.S.Meter signal connection

When uBITX is shipped and assembled according to manual, one purple line is left. (A7 Pin)

The purple line in the picture below. Input the signal for S.Meter to this line.
There are various ways to get S.Meter signals from uBITX.
What should be noted is that you must have enough current to be able to measure in the Arduino.
If you search for 'ubitx smeter' in intenut, there are a few ways to do it. You can use any method.  You can easily configure one diode and one capacitor for testing.
In the uBITX group there are many good results for AGC and SMeter.

There are many better ways than I used to. For the test, I will post the method of making a simple S.Meter measurement probe(sensor) next.

After connecting S.Meter signal line to A7, it must be set in uBITX Manager. This way we can apply most S.Meter modifications completely to uBITX.

3.Setting S.Meter in uBITX
Execute uBITX Manager

Press the 'Connect'

Press the 'Read from uBITX'

Press the 'Decode =>'
Your uBITX setting appears on the right.

When you scroll down, the User Interface Section appears.

Check 'S.Meter. box'
You must check this box to use S.Meter in uBITX.

The CEC firmware reads the incoming voltage through the A7 Line and determines the level of S.Meter.

The A7 line has a range of 0V to 5V.
There are various hardware modifications to measure S.Meter signals.
Maybe you are already using your own method. because I know quite a few uBITX users are engineer-savvy people.

The problem here is that each person has different preferences for getting a S.Meter signal. As a result, the value that determines the level of the S-Meter varies.

The range of values measured from the A7 signal line is 0 to 254.
(The original ADC range is 0 to 1023, but / 4 is used to reduce memory usage.)
If 2.5 volt is connected to A7, the measured value is 127.

You can enter the level of S.Meter in the space below.
You can optimize for your S.Meter probe (sensor) after a few trial and error.

CEC Firmware 1.074 fixes a bug related to S.Meter and makes some improvements.
Maybe you can apply S.Meter to your uBITX more easily using this method.
It is 'S.Meter Assisatant'

Press the 'S.Meter Assistant'

You can use any method to measure the S.Meter signal. If you are not familiar with hardware like me, see the next post.

S.Meter Assistant, which can help you to optimize your S.Meter.

To optimize S.Meter for uBITX, you need to measure the lowest and highest values of S.Meter.

I find a frequency that can not hear anything to measure the lowest value. Then click the 'Read from uBITX' button (right of Min Value Box).
The measured voltage value on A7 will be displayed. In the figure below, the measured value is '137'.

The largest value must be measured. This is a very strong signal, often called the 'Signal + 20db' value.
I find a frequency that can hear a continuous signal to measure such a signal. (FT8, AM broadcasting, beacon...)

Press the 'Read from uBITX' (right of Max Value Box)

You have found the minimum and maximum values that come in the A7 Line.
Now you can move the bar below to optimize it.

You can also use several samples to make it easier to configure.
Try pressing the Sample1 button to the Sample7 button.

The program will suggest several types using the lowest and highest values you have measured.

I clicked Sample3 to write this article. And I moved some of the bars and fine-tuned them

To check the results, select the 'Enabled Simulation' box on the right.
And change the frequency of uBITX. The signal received from your uBITX will be displayed in uBITX Manager.
You can fine tune it by moving the BARs on the left while viewing this signal.
Note: Simulation can be measured slightly lower than actual use, depending on the capacitance of your S.Meter probe(sensor). Simulation is for reference only.

When all settings are done, press 'OK' button.

The values you set are entered in the Level field of S.Meter.

Press the '<=Encode'

Press the 'Write to uBITX'

Press the 'Write'

Press the 'Reset uBITX' Button
(The 'Reset uBITX' button was the 'Rest'(typo) button at 1.073)

Now you can change the frequency of uBITX and make sure that you like it.
If you do not like it, fine-tune it by repeating the above steps.

When there is no signal

Middle Level

Very strong (+20db)

below Video is a video taken together while posting this article.
(Setting S.Meter in uBITX with CEC Firmware V1.074)

4.Example of displaying S.Meter for each LCD mounted on uBITX

4-1.16x02 LCD (Built-in model for uBITX purchase, I2C 16x02LCD)

4-2. 20x04 (Parallel, I2C)

4-3. 16x02 Dual LCD
  I did not have a spare 16x02 LCD and I used a 20x04 LCD.

5.Signal Meter display in Ham Radio Deluxe
Beginning with CEC Firmeare 1.074, it also transmits the signal meter signal to the CAT communication protocol.

below Video is a video taken together while posting this article.
(Communication test between Ham radio Deluxe and uBITX for S.Meter)

S.Meter test on uBITX with CEC Firmeare, 16x02 LCD
This Video was taken as an example of mounting S.Meter.
This use a 16x02 LCD as i only installed S.Meter Probe without any modification to uBITX. At the beginning of the video, I used Signal Generator to increase the decibel, so uBITX showed all the shapes of S.Meter. Then remove the signal generator and connect the antenna to show the movement of S.Meter. Finally, I used Ham Radio Deluxe to see if the S.Meter passed through the CAT is well visible.

I am still based on pure uBITX without any modification.
You do not need to make any hardware modifications.
You only need to add it to your uBITX when you need an Extended Switch or S.Meter, SDR. then You can activate the function in uBITX Manager.

I have two uBITXs.
One uBITX is assembled according to the wiring presented on the uBITX official homepage without attaching any additional devices.
And the other connected SDR, Extended Switch, and S.Meter. This is also a way to connect the wires without modifying uBITX.
The reason I use this method is because the user base of uBITX is quite varied.

I want uBITX to be a true transceiver, not a toy or educational one.
I know that uBITX users are mostly people with years of engineer experience. That's why uBITX seems to be getting better. (Hardware and Software)
I'm writing firmware based on someone who has not made any modifications to uBITX, but you do not have to. It will be more fun if you follow various modification methods on the Internet. 


  1. Hi Ian.

    Just been experimenting with the PA power mod, and found I possible bug.
    When using the original firmware I was getting 8 Watts at 21 MHz.
    Your version of firmware V1.073, I was only getting 4 Watts at 21 MHz.
    I believe that the wrong PA high pass filter is being selected.
    Could you confirm this for me.

    73 Philip G7JUR

    1. I have now compared the original source with the Version 1.073Beta source and the filter selection was the same.
      I will try the same test tomorrow.
      If the frequency of uBITX is more than 21Mhz, it is correct to pass filter composed of L11, L12, L13.

      Ian KD8CEC

  2. Hi Ian.

    Just loaded V1.074, now working fine at 21 MHz.
    Now getting 8 Watts.

    73 Philip G7JUR

    1. I'm really glad.

      I'm glad that the Mod succeeded in version 1.074, no matter what. Did you perform the mod that farhan posted to the bitx group today? I am surprised that you have tested it first of all.
      I will soon create a new filter and install it on uBITX. If successful, uBITX will become more and more usable.

      I will post about the make of S.Meter sensor that I use.
      Can you also test S.Meter?

      Thank you

      Ian KD8CEC

    2. Yes it is the mod that farhan posted to the bitx group today.
      Now giving me 8 Watts at 28 MHz, and more power on the other bands.

      Thanks Philip.

    3. Great!!!

      What did PA Transistor use? Is it IRF510 that was originally in uBITX?
      The resistor or capacitor can be pulled out from the sample box, but I do not have a PA amplifier so I can not test it right away.

      Ian KD8CEC

    4. Yes still using the IRF510's. All you need is two 220R resistors, and a 470p cap.
      I put a short where R83 was.

      Philip G7JUR

  3. I have not clear how to do the hardware modification for the s-meter reading. Can you explain to me?
    Thank you.

    Paolo IW6BET

    1. Paolo
      I will post soon. I'm working on it now. :)

      Ian KD8CEC

  4. Hi Philip, I need some help being inactive for few days.
    Can you point Farhan's mods for me. I cannot find them on 06-05-18.
    Thanks a lot.


  5. Hello Ian and good morning from KM18VA.
    Just finished the calibration of my s-meter with the 2004 LCD and works great, as expected. The s-meter assistant does a great job, so I can easily trim to my taste.
    The LM386 works great.
    I think that in due time, you should add the Voltmeter function and reading in place of the firmware version at line4,3. Anyway +v is already there at 4,0 and 4,1 ... ha ha ha.
    I am sure it is within your near future plans.
    Cheers Ian,
    73 de Konstantinos, SV1ONW

    1. Konstantinos.

      Perfect! We probably need to read the voltage using two resistors.
      As you have guessed, I want to use uBITX as a QRP transciever with battery.
      I felt that there were quite a lot of people wanting to mark the version I installed.
      perhaps we need to share +v. (So that the version will be erased and the bolt will be displayed over time) ha ha

      Thank you for beta testing

      Ian KD8CEC


Post a Comment

Popular posts from this blog

How to upgrade uBITX Firmware

uBITX is based on Arduino Nano. So uBITX's firmware upgrade method is the same as Arduino.
There are two ways to upgrade the firmware of uBITX.

The first is to compile the source from the Arduino IDE, and the second is to upload the compiled hex file using the Firmware Upgrade Tool.

I'll show you how to upload a compiled hex file as a second method.

1.Connect the uBITX's USB cable to the computer.

2.Run Device Manager on your computer.
  The way to open the Device Manager for each OS Version differs slightly.
  In most Windows, you can easily launch the Device Manager by running.

  On your computer, press the Windows key + R.

 Type devmgmt.msc and press OK Button.

On most operating systems, there will be a serial port named Ports with CH340. If so, the next step is skipped.

If the serial port is not installed as below, you need to install the driver.

Included in uBITX is the Adonano, which uses the CH340 USB To UART part.

Download the latest CH340 driver from the Internet.

CAT Support uBITX Firmware CEC Version 1.06 Release (Added WSPR)

uBITX Firmware CEC Version v1.06 (changed v1.061)

I deployed 1.06 and received feedback from WSPR's beta tester, Philip (G7JUR).
It was a problem that the LPF was not automatically selected according to band selection during WSPR transmission.

I modified it soon and changed uBITX Firmware CEC Version to 1.061.
uBITX Manager also changed Version to 1.01.


I released version 1.06 which added WSPR function to uBITX.
Beta testers have been very helpful when embedding WSPR functionality. WSPR will continue to improve in the future.

By using WSPR before and after QSO, you can check where your uBITX is spreading all over the world.  If uBITX Manager is used to put WSPR information into uBITX, uBITX no longer needs any external device to transmit WSPR.

The uBITX group's excellent tester also shared a way to use CW Beacon using the Autokey feature (Autokey is a memory keyer built into CEC Firmware.) I will…

CAT Support uBITX Firmware CEC Version 1.01 Release(Changed from v1.0)

CAT Support uBITX Firmware CEC Version 1.01  Release (Changed from v1.0)

uBITX Firmware CEC Version 1.06 has been released.
Please click the link below.

This version of the concept is an upgrade without hardware modifications. No hardware modifications are required to use this firmware. Continuous release and testing has been done in the uBITX group. I tried to put only the basic functions that an HF transceiver should have. The features have been upgraded with the advice of people who have great ideas in the uBITX group.
It was a project that started to contribute to the original source in github. The project was intended to fix some simple bugs and request merge to the original source. And I was planning to delete the project. At the beginning of the project there was a bit of discussion about this in the uBITX group.
Since then, I've keeping the original source type to allow code share with any user fork…