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.

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

Comments

  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

    ReplyDelete
    Replies
    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

      Delete
  2. Hi Ian.

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

    73 Philip G7JUR

    ReplyDelete
    Replies
    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

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

      Delete
    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

      Delete
    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

      Delete
  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

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

      Ian KD8CEC

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

    ReplyDelete
    Replies
    1. https://groups.io/g/BITX20/topic/boosting_the_power_on_28_mhz/18452045?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,18452045

      Delete
  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

    ReplyDelete
    Replies
    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

      Delete

Post a Comment

Popular posts from this blog

uBITX with Nextion LCD (CEC Firmware) - Installation and Introduction

uBITX with Nextion LCD (CEC Firmware) - Installation and Introduction uBITX CEC Firmware supports various LCD since Version 1.08 (16x02 Parallel, 20x04 Parallel, 16x02  I2C, 20x04 I2C, 16x02 Dual LCD with I2C).
Supports Nextion LCD (Graphic LCD) from Version 1.09, Version 1.09x is primarily aimed at Nextion LCD support. Also 1.09x will continue to be Beta version. If you want a stable version, please use 1.08 or 1.1 version to be released in the future.

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.

uBITX Firmware CEC Version 1.08 Release

uBITX Firmware CEC Version 1.08 Release
Version 1.08 is the first major release since 1.061, I will release it after a 50-day beta test