¿ªÔÆÌåÓý

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

ATU-10 operates incorrectly #ATU-10

 

Hi everyone,

?

I¡¯m new to this forum. A couple of month ago I¡®ve purchased an ATU-10 via Aliexpress which doesn¡®t work properly. The seller (Hisonauto) doens¡¯t care about. So I¡¯m looking for support in this forum. Problem:

?

The tuner (firmware 1.4) tries to tune in an endless loop without coming to a result or it tunes with a nonsense result, e. g. SWR 8...9 on my dummyload (SWR 1.1) or on my antenna I usually use at home (T2FD, SWR < 2). Sometimes it merely does nothing.

Also indicated power is faulty: Driven by my qrp-TRX mchf (Setting 5 W -> real 4 W checked with a Diamond SX-200) it displayed 2...3 W. It would be possible to provide a video showing this behaviour.

?

Several tests with comparable result within range of 3.5 to 21 MHz as well with independent tests with comparabel results by a friend OM.

?

I tried previous firmware1.3 with the same faulty result.

?

So what could I do next? Is there anyone who could provide support to fix the problem?

?

Thanks in advance, 73 de nr Bonn, Germany (JO30MS)

?


Re: 20x4 display

 

PERFECT!!! Your message came just in time, I was just about to rewrite the 1602 routines!

Thanks!
Vince.

On 03/12/2022 11:36 AM, David M0TGC wrote:
In the vsn 3.2 firmware in the file oled_control.c and in the routine
led_wr_str there is a line:

led_send(8 + col*4);

replace that line with the following:

if (col==0) i=0x08;
if (col==1) i=0x0C;
if (col==2) {i=0x09; row+=4;}
if (col==3) {i=0x0D; row+=4;}
led_send(i);

It works for me! Of course by "col" David N7DDC actually means row and
vice versa.




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


Re: 20x4 display

 

In the vsn 3.2 firmware in the file oled_control.c and in the routine led_wr_str there is a line:

led_send(8 + col*4);

replace that line with the following:

? ? ?if (col==0) i=0x08;
? ? ?if (col==1) i=0x0C;
? ? ?if (col==2) {i=0x09; row+=4;}
? ? ?if (col==3) {i=0x0D; row+=4;}
? ? ?led_send(i);

It works for me!? Of course by "col" David N7DDC actually means row and vice versa.

?

?


20x4 display

 

I have a 20x4 display that I want to put some extra stuff in the last two lines. I've been fighting with this thing most of the evening and can't get anything on lines 3 and 4. What am I missing?

Thanks!
Vince - K8ZW.
--
Michigan VHF Corporation -- nobucks dot net
K8ZW -


Re: I2C question #atu-100

 

That is a good idea.? RA6 and 7 not in use in my setup.? Using interrupts would be tricky as the I2C handling is done by bit banging and interrupts would interfere with the timing.

Thanks


Re: I2C question #atu-100

 

Another way to do it is to take either RA6 or RA7 (not sure what they're supposed to do) and use one for notifications.

Configure both (one on the pic, one on the pi) to be inputs. Poll them during your idle time, such as the button press loop on the pic. If either has a message for the other, configure it as an output and set it high. The other sees it and goes to receive I2C mode. Once the sender sends the message, it clears that pin and sets it back to input.

Or possibly use an interrupt and read during the handler - but I haven't given that much thought.

Vince - K8ZW.

On 03/06/2022 03:49 AM, David M0TGC wrote:
My idea is to have the ATU send the PI an I2C message saying "got
anything for me" and then listen for a reply for a short while. This
would be done from the "waiting for button press loop" in the ATU.
I have got the PI accepting messages but the return messages are proving
difficult. I think it is timing and/or the vagaries of I2C on the PI.
There is some sort of issue with the PI as a slave I think.
--
Michigan VHF Corporation -- nobucks dot net
K8ZW -


Re: I2C adress of OLED #ATU-10 #atu-100

 

It helped me. I had already figured the bits were shifted and bit 1 was now a zero but didn't know why. Now I do!

Thanks!!
Vince - K8ZW.

On 03/06/2022 10:03 AM, David M0TGC wrote:
The address "issue" is actually quite simple. I2C addresses are
comprised of 7 bits and in use are followed by a read/write bit which is
0 for write and 1 for read. As the firmware only writes and never
reads, the designer chose to add the write bit into the address. So if
your display address is hex 27 for example, this is 0010 0111 in binary,
add a zero for the write bit and the address becomes 0100 1110 which is
hex 4E, bingo. Another example hex 3c (0011 1100) becomes hex 78 (0111
1000).

Hope this helps.
--
Michigan VHF Corporation -- nobucks dot net
K8ZW -


Re: I2C adress of OLED #ATU-10 #atu-100

 

The address "issue" is actually quite simple.? I2C addresses are comprised of 7 bits and in use are followed by a read/write bit which is 0 for write and 1 for read.? As the firmware only writes and never reads, the designer chose to add the write bit into the address.? So if your display address is hex 27 for example, this is 0010 0111 in binary, add a zero for the write bit and the address becomes 0100 1110 which is hex 4E, bingo.? Another example hex 3c (0011 1100) becomes hex 78 (0111 1000).?

Hope this helps.


Re: I2C question #atu-100

 

My idea is to have the ATU send the PI an I2C message saying "got anything for me" and then listen for a reply for a short while.? This would be done from the "waiting for button press loop" in the ATU.
I have got the PI accepting messages but the return messages are proving difficult.? I think it is timing and/or the vagaries of I2C on the PI.? There is some sort of issue with the PI as a slave I think.


Re: I2C question #atu-100

 

How about this: have the Pi send a break (a long pulse on the serial line) to get the ATU's attention.? Then the ATU can send a "go ahead" to the Pi and start listening for serial data.? That way, the only thing the ATU has to poll for is a break, which is like a button press.

Steve
KD2USS


Re: ATU-10: an alternative PCB layout?

 

Hello!

As I said earlier (or elswhere) - I work with microC for PIC, so this is my GitHub
Just made initial changes to David's v1.4 code (using kindly provided samples of his so called "symmetric" ATU sources).


Re: I2C question #atu-100

 

I haven't used I2C, but in my fork of the code (WA1RCT), which should build either under MikroC or the MPELAB toolchain, I've used 1 of the PIC output pins to bit-bang data out serially, as a uart, to a raspberry pi.

I think it should not be hard to SEND data, but I'm curious how you plan to listen for incoming data from the Pi.? Will you have an I2C chip that buffers the data, so you don't need to continually poll the lines for incoming messages from the Pi?? What was your plan there?? If you have a way, I'd like to also receive data from my Pi for control.

Dave
WA1RCT


Re: ATU-10: an alternative PCB layout?

 

Hello Tony,

Sounds great and awaiting your results.

73 Kees K5BCQ?


Re: ATU-10: an alternative PCB layout?

 

Dear Kees,
Yes, I expect the 40 dBm maximum input level, and to fit it into AD8361's 0,4 Vrms allowed signal I plan to wind 10 turns, then I've arranged a Pi matching attenuator (56,2 Ohm shunt in, 287 Ohm series, 787 Ohm shunt out) of ~15 dB. That attenuator also helps to alleviate the disbalance caused by +/-20% allowance of chip's input impedance (nominally equal to 225 Ohm).

Warm regards,
Tony


I2C question #atu-100

 

The firmware in the ATU100 (vsn 3.2) uses I2C to drive the lcd/oled display.? I want to modify the code to allow the PIC to communicate with a Raspberry PI to allow pre-set tuning.? I need a I2C read routine (Soft_I2C_Read) but I can't use the MikroC built in library.

Anyone done anything like this?


Re: Bad chinese toriods

 

A few years back, I purchased some T37-2 toroids from a random seller on ebay. When I first bought them, I made a series tuned circuit for ~7MHz in series with a 50 ohm resistor. It read significantly more than 50 ohms at resonance with my old MFJ 269.

When I got my FA-VA5 antenna analyzer, it provides a relative indication of Q on a spot frequency. I compared a bunch of toroids, and even made an air wound inductor. The random ebay T37-2 had a Q of around 5. The rest of the inductors read well over 100, and the airwound coil was over 250.

Good article on Q by Wes Hayward


Bad chinese toriods

 

I purchased a couple of AliExpress ATU-100 kits in the past. My first one worked okay, but worked a lot better after updating the diodes. The second one remained unbuilt for a future project. In the meantime, I wanted to make some traps for an end-fed project so I raided the kit for some red T68-2 red toroids. Damned if I could not get the resulting traps to resonate anywhere in the ham bands. It was a pretty standard configuration - 26 turns and a 33pf cap. Then I located a few more that I bought separately on eBay. I re-wound the toroid and soldered in the capacitor and boom, I had my resonant trap.

The moral of the story - all red toroids are not created equal. I'd like to figure out what they sent me, but they'll probably end up in the trash (where they belong).?


Re: ATU-10: an alternative PCB layout?

 
Edited

Hello ZAO,

If you assume a 50ohm system and max input of 10W (40dBm) and the max input of the AD8361 is 0.4Vrms (5dBm) that implies a coupling ratio and voltage divider attenuation of -35dBm ? What values are you using for the turns ratio and voltage divider ?? The coupling ratio effect of 10 turns would be 20 log 0,1 or -20dB.

73 Kees K5BCQ


Re: I2C adress of OLED #ATU-10 #atu-100

 

The issues are caused because the nature of the design.? N7DDC did a great job on this design and made it open source including the code.? There are dozens of small companies selling "their" version of the design with no forward support.? The problem comes when the owner decides to upgrade to the latest firmware and downloads it from Github.? Along with updating the firmware, the download changes the display parameters back to the original ones which don't work on supplied display.? Get the manual at the link below and change the modifiers to match your configuration and you will be fine.


On Wed, Feb 23, 2022 at 12:45 PM, Max wrote:
?
A buyer should not have to reprogram a so called pre-programmed part! It should be ready to go. Isn't that why we buy kits with the processor pre-programmed? With all the different processors being used now days, It would be expensive to have programmers for all of them.
?
Max KG4PID
?
On Wednesday, February 23, 2022, 08:55:24 AM CST, Rolf Schroeder <rolf@...> wrote:
?
?

Hi,

two things were wrong: display type and adress - obviously the display cannot show anything if you looking at the wrong adress and afterwards try to talk to it in a foreign language :-)
Thanks again for your hints. This reveals of course one thing: without a pickit3 you would consider the kit to be defect although it wasn't and you sometimes need to dig into the details.
Vy 73 de
Rolf, DL8BAG


Re: ATU-10 v1.2 board programmed, but no oled display

 

The hex code listed on Git hub is display specific.? I have attached the hex file for Ver 3,2 for QRP using the 0.96" square 4-line display.