Skip to main content

Installing SWR and RF Power Sensor in uBITX (Released I2C Meter V0.8)

Installing SWR and RF Power Sensor in uBITX

I modified the I2C Type Signal Meter firmware to display SWR when using Nextion LCD in uBITX.
Release I2C Type Signal Meter firmware V0.8, If you want something stable, use V 0.7
(V0.8 is a beta version)

Now if you are using the I2C Type Signal Meter, you do not need to update the uBITX firmware and the Nextion LCD GUI.
You only need to upload the firmware of the I2C Type Signal Meter to V0.8.



I plan to improve the Nextion LCD GUI to take advantage of this feature a bit, but I will keep it compatible with the existing GUI.

1.Creating a Sensor
Any sensor that outputs FWD (Forward) and REV (Reverse) analog can be used.
The voltage from the sensor is recommended to be less than 3 volts.

I have made a simple sensor.
It is a very simple circuit called 'Stockton Bridge'.

I made it in the form of ND6T which is used mostly by Bitx or uBITX users.
http://bitxhacks.blogspot.com/2017/03/nd6ts-forward-and-reverse-power-meter.html

Since there are quite a few PCB pieces, I have imitated the ND6T's SWR Bridge.


Anything that can use 1 ~ 50Mhz is okay with Core.


'Stockton Bridge' I made two for testing. The two are the same, but the Forward and Reverse outputs are opposite.

If you search for 'Stockton Bridge', 'SWR Bridge', or 'SWR Sensor' on the Internet, you can see quite a lot of things you can easily create.

(Be careful of the direction when winding the coil on the core.)


2.Firmware

You can download the firmware file from the link below.
https://github.com/phdlee/dspmeterv1/releases/download/V0.80/CEC_I2C_Meter_V0.8.zip

If you need a source file, please click below.
https://github.com/phdlee/dspmeterv1/releases/tag/V0.80

For more information on how to update your firmware, go to http://www.hamskey.com


3.Connecting to the I2C Type Signal Meter
You only need to connect three additional wires to install it.

Connect FWD (Forward) of Sensor to A2 of I2c Meter.
(Red color line)

Connect REV (Reverse) of Sensor to A3 of I2c Meter.
(Blue color line)

Connect GND (Ground) of Sensor to GND of I2c Meter.
(Black color line)






The picture below shows that I connected the white line for Forward, the yellow line for Reverse, and the black line for Ground.

CAUTION: Do not have long wires as shown below. Multiple noise and various problems may occur. Keep the wires as short as possible, It is recommended to use shielded wires.

I have a few uBITXs and below is a uBITX without a Case for development.


4.How to Use
If it is made simple without any shielding as above, 1.5 or less and 3.0 or more are inaccurate. You can increase the precision by using metal shields between Forward and Reverse when creating the sensor.

But I decided to use it as it is. This is enough for a simple SWR meter on a transceiver.

It works the same way as DSP Signal Meter. Therefore, first check if the DSP Signal Meter is operating normally.

The I2C Meter relays the data between uBITX and Nextion LCD.
When there is no data to relay (as IDLE time), the I2C meter measures the signal and transmits it to Nextion LCD.

The I2C Meter will relay the data and will detect that uBITX is in TX state. At that time, the Forward and Reverse signals are read, converted to SWR, and transmitted to Nextion LCD.


SWR : 1.0 ~ 1.4


SWR : 1.5 ~ 2.4


SWR : 2.5 ~ 3.4


SWR : 3.5 ~ 4.4


SWR : 4.5 ~ 5.4


SWR : 5.4 ~


SWR : infinite


I tested it with MFJ-945 and Diamond SX-600. For SWR 2.5 and above, the two SWR values are displayed quite differently. The sensor I made was more like the one measured on the SX-600

5. Test Video



Thank you for reading
Ian KD8CEC

Comments

  1. Hi,
    How do I change from SWR to FWD?

    Thanks.

    ReplyDelete
    Replies
    1. Flavio

      SWR is the only measurement yet.
      To measure the FWD (RF Power), need to modify the Nextion LCD or uBITX firmware because it requires some option values.
      Maybe if I make the next version, Nextion LCD will set the parameters for power measurement.
      If it does, RF-Power will also be displayed.

      Ian KD8CEC

      Delete
  2. Are you sure the diagram is correct ? The picture above shows the yellow and white SWR and FWD lines connected directly to the second Arduino and not the Raduino. Which one is correct?
    Thanks

    ReplyDelete
  3. I also noticed that, I think it should be connected to the second Arduino.

    ReplyDelete
  4. The video shows clearly that the FWD and SWR lines go to the first (extra) Arduino.
    I've done the mods but when I transmit, the power meter (Nextion) shows full scale deflection with nothing hooked up yet. Only GND, 5V and A7 with capacitor to potenciometer and Nextion connected in series with the extra Arduino.
    When I connect the two A4-A5 wires to the radio's Arduino nothing changes.
    Prior to that, I followed the standalone Signal analizer instructions and the A5 and A4 lines should be wired to the ubitx's Arduino A5-A4 ports as well.

    When I first fired up the ubitx with the new addition(S-meter only) I forgot to connect
    A4 and A5 but everything worked without them.

    What are they for in the first place?

    Am I doing something wrong?

    Thanks

    ReplyDelete
  5. Hi!

    Can't make it work. I was wondering if we all are using the wrong version.
    In the video I see you're using ver 1.2 instead ver 1.097. I measured the
    A4-A5 lines when I press the PTT to see if they are used to tell the I2C meter that it's in TX state but what I get is 5 volts on A4 and 3.3 on A5 during TX or RX no change at all.
    You said above ''The voltage from the sensor is recommended to be less than 3 volts''
    How come A4 is sending continuos 5V to the I2C?
    I may have damaged the A4 on the I2C meter by now.

    Thanks


    ReplyDelete
  6. Thanks for your continued efforts on the firmware! I have not been able to get this to work, the 2nd arduino is reading values ok, measuring amplitudes and talking to the raduino, but SWR indication is not on the meter, and the CW decode function/frequency display isn't working. Band scan etc works fine. I think this might be due to an old/incomplete TJC firmware version. I use a TJC 2.8" non extended on my rig, with latest firmware release I could find. Latest github versions for the 2nd and raduino. See my website mw0uzo co uk for pictures of the rig. Would be great to get this working!

    ReplyDelete
  7. Hi Ian.
    Thanks for the VSWR firmware.
    I have built a VSWR bridge, and fitted it to my uBITx V5.
    Working well, now waiting for some updates to this.
    Regards Philip G7JUR.

    ReplyDelete
  8. Hi Ian...
    Is PWR/SWR functionality available on LCD screen or Nextion only?
    73
    Gerry

    ReplyDelete

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.

uBITX Firmware CEC Version 1.1 Release

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


Version 1.1 includes all additions or improvements from 1.08 to 1.09, 1.093, 1.095, 1.097 

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.