Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: CarstenE on Jan 18, 2019, 12:14 pm

Title: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 12:14 pm
At first my english could be much better, but I'm sorry, it isnt.

If got a problem with the communication between a commerciel software on my computer and an Arduino Mega ( Clone).

My constellation:

 ports of mega:
Serial is connectet  to computer for the debugging messages of the Nextion TFT.
Serial1 is connected to the Nextion Display,
Serial2 is connected to a UNO (RX- RX / TX-TX  reset Pin to Ground) and with USB cable to the computer
Serial3 is connectet to a USB TTL adapter (RX-TX/ TX-RX) stuck in my computer.

the software on my computer transmits and recieves strings to Serial2  and other strings to Serial3.

In this constellation everything works fine.

Now I want to change the UNO to another USB TTL adapter.
I tried different one with multiple chips on.  At least I diceded to take the one with the CH340 wich would be the same as the UNO.
But the communication between the software and the mega does not work.
The adapter works fine (tested with a bridge on RX TX and the Arduino serial monitor).

Now my question:

what could be the difference in the behavior of the UNO (used as adapter) and the USB TTL adapter? Why does the software accept the uno, but not the adapter?

I checked everything twenty times. There must be a little difference I didnt know.
Could it be something with the reset pin on the uno. How can I transmit this behavior to the adapter?


Thanks a lot.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 12:19 pm
I am not sure if I understand everything in your post, but if you want to abuse the Uno as Serial-to-TTL adapter the sketch in ATmega328p must not have Serial.begin
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 12:48 pm
No,

its just the other way.

the hole thing is working with the abused uno.

Now I want to replace the uno with an normal USB TTL converter, to simplify the hardware.

But the software on computer does not 'speak' to it like to the Uno (I see the RX LED blinking). The TTL adapter keeps beeing dark.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 01:26 pm
No,

its just the other way.

the hole thing is working with the abused uno.

Now I want to replace the uno with an normal USB TTL converter, to simplify the hardware.

But the software on computer does not 'speak' to it like to the Uno (I see the RX LED blinking). The TTL adapter keeps beeing dark.
the adapter has CH340? did you install the driver?
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 01:37 pm
Yes. It has CH340. Driver is installed. It seems to work ( I tested it by connecting RX and TX, and send some lines with the Serielmonitor in the Arduino IDE)


The only question is, there must be a little difference in the behavior, so that the software can divide between the uno and the adapter.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Robin2 on Jan 18, 2019, 01:50 pm
The only question is, there must be a little difference in the behavior, so that the software can divide between the uno and the adapter.
With your Uno on Serial2 you connect Rx to Rx but with your USB-TTL on Serial3 you connect Rx to Tx. If you replace the Uno with a USB-TTL adapter it must be connected Rx to Tx like on Serial3

Have you tried the USB-TTL adapter that you want to use on Serial2 in place of the adapter on Serial3?

If that does not solve the problem then you need to draw a simple diagram that clearlt labels all the connections in the working system and in the non-working system. Then post a photo of the diagram - see this  Simple Image Guide (http://forum.arduino.cc/index.php?topic=519037)


...R
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 02:10 pm
I did all the things you suggested.

but it isnt working. The RX Led doesnt show any transmission if the adapter is connected


Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 02:22 pm
See some posts forward.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 02:24 pm
I did all the things you suggested.

but it isnt working. The RX Led doesnt show any transmission if the adapter is connected


and swapping the adapters?
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 02:35 pm
the adapter that is connected to serial2 gets no connection to the computer. I does not matter which one I use. ( I also changed the comports in the Sotware so that the address is correct)
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 02:52 pm
the adapter that is connected to serial2 gets no connection to the computer. I does not matter which one I use. ( I also changed the comports in the Sotware so that the address is correct)
then it could be anything. try to swap the cables, the USB ports, ...
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 03:13 pm
I think I tested every possibility of change. Always the same result.

The software detects that there is no arduino at the choosen com port and does not work.


Funny.



Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 03:22 pm
I think I tested every possibility of change. Always the same result.

The software detects that there is no arduino at the choosen com port and does not work.

Funny.

there is no Arduino. only the USB adapter.

so it is still Serial2 not working with any wire, adapter, cable, USB socket?

Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 03:26 pm
No. the picture shows that it is working, if the adapter is an uno.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Robin2 on Jan 18, 2019, 04:26 pm
Sorry. First time. wrong rotation.
It is still wrong  :)

the adapter that is connected to serial2 gets no connection to the computer. I does not matter which one I use. ( I also changed the comports in the Sotware so that the address is correct)
Have you tried what I suggested - to check if the "new" adapter works with Serial3 ?

Have you tried changing the order in which you connect the USB devices? On Linux the order of connection determines the serial port names on the PC. And don't expect the USB TTL adapter to appear as the same COM port as the Uno.

...R
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 04:54 pm
New picture right orientation.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 05:00 pm




Yes, I checked this. The 'new' adapter works at Serial3.

Yes and I checked all ports and every configuration every time, so that the software would do the right things.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Juraj on Jan 18, 2019, 05:02 pm
Yes, I checked this. The 'new' adapter works at Serial3.

Yes and I checked all ports and every configuration every time, so that the software would do the right things.
on the picture you have ground wire only at Serial 2. how is it in reality?
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: CarstenE on Jan 18, 2019, 05:30 pm
Sorry I forgot this.
Every component has its own connection to ground of the mega.
Title: Re: difference between USB TTL adapter and UNO Clone
Post by: Robin2 on Jan 18, 2019, 07:09 pm
Have you considered that the problem may be within the PC - what software is trying to communicate with the Arduino?

...R