Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:03 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Why does this "diode mixing" on usb/serial not work

Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 05:16pm 20 Mar 2021
Copy link to clipboard 
Print this post

I'm trying to monitor Tx and Rx on an ESP-01 to see why it's not doing what I want.

If I "T" off either Tx on the ESP-01 to Rx on a ch340 usb/serial module at 115200 or Rx on the ESP-01 to Rx on the ch340, I can see what is transmitted in a Teraterm session connected to the ch340.

But if I try to diode-mix them with Bat85 diodes, black strip to the ch340 side, I get nothing, and if I do them one-at-a-time through the diode, I get nothing. 0V connected in each case.


F4      ESP-01
Tx ---o---Rx
      |
      `--|>||--o -- Rx CH340
               |
Rx ---o--|>||--'
      |
      `---Tx

How do I accomplish what I'm trying to do?

(In the meanwhile, I'll just add another CH340 and have one monitor Tx and the other Rx, but it seems like I should be able to mix them with diodes.)
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5089
Posted: 05:24pm 20 Mar 2021
Copy link to clipboard 
Print this post

What are the levels at tx and rx when no data is transferred? 3.3v or 0v?

If 0v then you have the diodes polarity correct, but need to add a 3k3 resistor to ground at the rx pin of the ch340 to make sure the level gets low.

If 3.3v then reverse the diodes and add a 3.3k pullup to 3.3v at the rx pin of the ch34o.

Please note that this only works for half duplex. In full duplex transmit an receive can happen at the same time, and your data will get corrupted.
Edited 2021-03-21 03:26 by Volhout
PicomiteVGA PETSCII ROBOTS
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 06:19pm 20 Mar 2021
Copy link to clipboard 
Print this post

  Volhout said  . . . If 3.3v then reverse the diodes and add a 3.3k pullup to 3.3v at the rx pin of the ch340.


Right, idle high. Thank you. That worked.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025