¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Serial control/monitoring of meters?

Ian vk2ama
 

Great work Dave, I had doing something like this on my project list for about the last 18 months!.. so it probably never would have happened.....

I did have to add a?? #include "uart.c"? to? oled_control.c to successfully compile with UART enabled but all is working as it should now.

Cheers Ian
vk2ama


Re: #ATU-10 VK3PE build complete. #ATU-10

 

Hi Ellis,

I am interested in an ATU-10 board.?
Which PIC's are used on the board?
Details of price please?
I have built the ATU-100 kit and have VK3PE BOM downloaded.

Just got a QDX so will be ideal for that TRCVR.


Re: Serial control/monitoring of meters?

 

pushed bug fix, and added UART to normal mode, and moved uart to Auto button for WA1RCT mode


ATU-100 Stopped Charging #atu-100

 

I have this variant of ATU-100. I was working all fine for a couple of days and suddenly it decided not to charge anymore. This model doesn't come with any dc power supply, hence I am stuck with the in-build in-batteries.?
Even when it was charging, it used to charge for 10 minutes and would shut down the charging automatically. ( I depend on the red charging light)

I ain't sure what's wrong. Does any else face this issue? I don't want to tear this apart without some responses from you guys.

Thanks


Re: A Few Things I Learned About ATU-10

 

¿ªÔÆÌåÓý

OK Scott,

My post was more in line with getting the 1st unit working.

Glenn

On 22/01/2022 2:03 am, Scott Dupuie wrote:

Glenn,

Thanks for the reply. The problem connecting to the computer has been solved. I did not realize that you must use a USB-A to USB-C cable to connect the tuner to a computer, not a USB-C to USB-C cable. With that realization, I should be able to go back to the original tuner I received and load the relay test program on it. I just haven't done that yet.

I did notice in the tuner that I now have working that one of the enameled wires in the power/SWR bridge was rubbing up against the screw that holds the ground lug in place. If that wire gets shorted to ground it would definitely cause a problem with the forward or reverse reading (I don't know which side of the binocular core is forward and which is reverse). I adjusted the wire on the core to prevent the rubbing on my good tuner but I have not gone back to the old tuner to see if this wire has been compromised. It's something that could definitely happen in transit due to vibrations and rough handling.

Come to think of it, I think I will put some Kaptan tape over the screw head as an additional safety measure on my good tuner.

73,
Scott
AK5SD


Re: Serial control/monitoring of meters?

 

FYI, I found a small defect in my code, caused by the MikroC compiler ignoring case, and in a subroutine with the passed in parameter being "swr", and in the code in some places they reference 'swr' and other places they reference "SWR", and there is a GLOBAL variable? called "SWR".? ?When I converted the code, I accessed the global variable here (even though in C, the scope priority picks the parameter first).
This causes the display to show? "SWR= . 0" (with weird spaces)
I'll fix it shortly.
I'll also add the UART to the NORMAL, (non-WA1RCT) mode, and put the UART output on A7
And I'm moving the UART output pin WA1RCT mode to B1 (Auto button).

I'll try to push this tomorrow.
(FYI, I found this when I tried parsing the output of the uart!)
Dave
WA1RCT


Re: Serial control/monitoring of meters?

 

After taking another look at that schematic, they didn't show the wiring to the fets for the relays for pins 11-18 whereas the ATU-100-ext version does. You can safely ignore my previous comment :)

Vince.

On 01/21/2022 02:24 PM, The Hempsteads wrote:
Hi Vince,
You must have a different chip in your unit. Mine is a PIC 16F1938,
a 28 pin package. the pins labeled TX_req and /Tx_req come from the
register I/O's labeled RA7 and RA6. (pins 9 and 10). This package has
I/O pins for RA0-RA7, RB0-RB7, RC0-RC7. These are used for: 15 pins
for the relays, 2 for the A/D's, 2 for the programming access, and 3 for
the buttons, and the last 2 for Tx_req and /Tx_req. I see nothing else.
Oh do I wish I had available pins for this.
What package do you have?
Dave
--
Michigan VHF Corporation -- nobucks dot net
K8ZW -


Re: Serial control/monitoring of meters?

 

Hi Vince,
? ?You must have a different chip in your unit.? ?Mine is a PIC 16F1938, a 28 pin package.? ?the pins labeled TX_req and /Tx_req come from the register I/O's labeled RA7 and RA6.? (pins 9 and 10).? This package has I/O pins for RA0-RA7, RB0-RB7, RC0-RC7.? These are used for:? 15 pins for the relays, 2 for the A/D's, 2 for the programming access, and 3 for the buttons, and the last 2 for Tx_req and /Tx_req.? I see nothing else.
? ?Oh do I wish I had available pins for this.??
? ?What package do you have?
Dave


Re: Serial control/monitoring of meters?

 

Why not use the actual serial tx and rx, pins 17 and 18, they're open, at least on my schematic.

And yes, github is updated. Thanks!

Vince - K8ZW.

On 01/21/2022 07:58 AM, The Hempsteads wrote:
Pushed.
Again, sorry.

Can you tell me which I/O pin you want to drive with the serial data?
I am thinking of moving (in WA1RCT mode) the serial data from the bypass
button to the auto button, for my purposes, and if so, while I'm in
there I could pick a line for the NORMAL mode. I think it should be
either A6 or A7.

Dave
WA1RCT
--
Michigan VHF Corporation -- nobucks dot net
K8ZW -


Re: Serial control/monitoring of meters?

 

On Fri, Jan 21, 2022 at 02:53 PM, The Hempsteads wrote:
Darn, I think you are right.? I did the commit to master but forgot the push.? I'll do that this morning, and send out a note when it is done.
I got the changes pulled here now, thank you!


Re: A Few Things I Learned About ATU-10

 

Glenn,

Thanks for the reply. The problem connecting to the computer has been solved. I did not realize that you must use a USB-A to USB-C cable to connect the tuner to a computer, not a USB-C to USB-C cable. With that realization, I should be able to go back to the original tuner I received and load the relay test program on it. I just haven't done that yet.

I did notice in the tuner that I now have working that one of the enameled wires in the power/SWR bridge was rubbing up against the screw that holds the ground lug in place. If that wire gets shorted to ground it would definitely cause a problem with the forward or reverse reading (I don't know which side of the binocular core is forward and which is reverse). I adjusted the wire on the core to prevent the rubbing on my good tuner but I have not gone back to the old tuner to see if this wire has been compromised. It's something that could definitely happen in transit due to vibrations and rough handling.

Come to think of it, I think I will put some Kaptan tape over the screw head as an additional safety measure on my good tuner.

73,
Scott
AK5SD


Re: Serial control/monitoring of meters?

 

No worries, happens the best of us.?There is a good reason I knew what?happened :) Especially when you come from other configuration management systems, having to do another thing after you commit is a strange idea.?


Re: Programming & compiling from github source code

 

Hi Tony,
? ?I looked at the ATU-10 device.? It looks to be pretty different and it uses a different PIC processor, so I really don't know anything about that.
My repo is:??
If you pull that repo, and do NOT set the #define for WA1RCT or for UART, then the functionality of my fork should be identical to N7DDC's original, so you could compare those changes (for the MPLAB XC compiler).? Please note that it will look quite a bit different, because I tried to eliminate all the warnings from the compiler, and make it more readable (for example, I added parenthesis to ensure the order of operations was clear, and I added braces to ensure clarity of what code is contained.? I also changed many variable names, so I could find where they came from).
I did NOT change any of the other code or algorithms.? The only code I changed was what was needed for the MPLAB compiler, and I tried to put all those changes in the cross_compiler.h and cross_compiler.c files.??

Dave


Re: Serial control/monitoring of meters?

 

Pushed.
Again, sorry.

Can you tell me which I/O pin you want to drive with the serial data???
I am thinking of moving (in WA1RCT mode) the serial data from the bypass button to the auto button, for my purposes, and if so, while I'm in there I could pick a line for the NORMAL mode.? I think it should be either A6 or A7.??

Dave
WA1RCT


Re: Serial control/monitoring of meters?

 

Darn, I think you are right.? I did the commit to master but forgot the push.? I'll do that this morning, and send out a note when it is done.

sorry about that,
Dave


Re: Soldering RB1 (RB-1) for Auto Tuning? #atu-100

 

Thanks Dave, I will try so! KR Alfred.


Re: Programming & compiling from github source code

 

Dear Dave,

Could you please create the difference against the original sources? I'd like to learn what to do to port the ATU-10 sources to MPLAB X IDE.

Thank you in advance.

Regards,
Tony


Re: A Few Things I Learned About ATU-10

 

Scott, sorry to hear of your problems.??? But it should be possible to get that non working unit to work i imagine without too much trouble.

If the connection to a computer does not bring up a drive then it might be the result of two things:
The PIC16F1454 wasn't factory programmed,
or, the connection from the PIC16F1454 is open circuit.? You could circuit trace the two lines between the USB-C socket on the PCB and the appropriate pins on the PIC.
Re the high SWR reading.
You could check the Forward and Reverse voltages. There are small un marked pads on the PCB between the TUNE switch and the relays. They are forward and reverse voltages. ? Hook up your transceiver as you did when it was showing high SWR (into a 50ohm load) and check the voltages on these two pads, with refernce to ground.? One should have a much higher voltage than the other.
vk3pe


On Fri, Jan 21, 2022 at 03:54 PM, Scott Dupuie wrote:
So, I ordered an ATU-10 from AliExpress and it arrived dead. It would appear to go through the motions of tuning but even with a matched antenna it would result in a high SWR. I also couldn't figure out how to connect it to the computer to run the test software. I connected it the computer but it didn't show up as a drive as expected.


A Few Things I Learned About ATU-10

 

So, I ordered an ATU-10 from AliExpress and it arrived dead. It would appear to go through the motions of tuning but even with a matched antenna it would result in a high SWR. I also couldn't figure out how to connect it to the computer to run the test software. I connected it the computer but it didn't show up as a drive as expected.

After going several rounds with the seller, he finally agreed to send me a second tuner for free. This tuner appeared to tune well and was able to find a match for the test situations I tried. However, I still could't get it to connect to the computer. After debugging that issue for some time, I learned that the tuner cannot connect to a USB-C port on your computer and it cannot charge via USB-C. Apparently, it cannot negotiate a power setting with the USB-C chip set. Your have to connect it to your computer or charger using a USB-A (computer) to USB-C (tuner) cable.

Once I got that figured out, I downloaded the relay test software and ran it. All relays appear to be working. When I went to reinstall the main firmware, the display was corrupted with what appeared to be missing fonts. My computer is a Mac, so on a hunch I connected the tuner to my work laptop, a windows machine, and flashed the tuner again. Voila! It worked. So you can't flash the firmware from a Mac apparently. The Mac filesystem copy is somehow corrupting the hex file or the flash memory.

73,
Scott
AK5SD


Re: Serial control/monitoring of meters?

 

Dave, just like Vince, I also cannot see your latest push to GitHub. The last charges were 23 days ago. Did you commit the changes, but not push??That's what usually happens to me :)?

Thanks, Karl Heinz - K5KHK