ESP32 uart doesn't work in Arduino CH340

Also, you actually passed over my suggestion in your reply. You said already, the hardware is fixed. But you can re-create it. If you can't, you should explain why you can't.

...and post #18 remains unanswered

Looking back on the thread, I see that you have never provided an accurate, complete wiring diagram and links or posts to fully identify the components. That is a pretty serious omission.

So far, what a helper has to work with is:

  • mystery hardware
  • mystery software
  • a lot of word salad descriptions of what is going on

That is insufficient for technical problem solving. Except, where the diagnostician is on site.

Guys, I don't want to sound ungrateful, but I think we've diverted the focus of the discussion here.

The only question here is why the CH340 interferes in the operation of esp32, and the 16u2 don't, and not why it was designed like that, or if I could change the circuit/software to another serial port or not.

I can't change serial 0 to another port, I know it will work, but it's not an option. The fact of serial 0 is be used by usb conversor is not the problem, if not, 16u2 won't work too.

Again, I want to understand why the CH340 harms the signal and the 16u2 doesn't, and that's all.

I can freely modify the ch340 circuit and the ESP32 hardware/software according your sugestions, but until this moment the only suggest was change the serial 0. The problem is not with the project, and yes with the interation of ch340 and esp32. 16u2 work perfectly!

So if anyone has a suggestion for testing or modifying the ch340 circuit or the esp32 hw/sw I would be really happy to try it. Regarding the other issues, as layout and firmware, please, I don't want to discuss about them.

Then again, does anyone know why the CH340 interfere in the signal and the 16u2 doesn't? (Impedance, protocol, polarization or any other possibilities?)

If no one has an guess about that, i think that the moderator can close this Topic.

Thank you all for your time and collaboration.

You mean, the asking for details? Bye, good luck with your project. Also when I see this kind of thing, I make sure I won't see any of your posts any more, using the forum controls.

Sorry Aarg, i reread all your answers again, but i don't saw you asking for ANY details or making ANY question, just making a "salada".

If you want to know any detail, please ask me and i will be happy to send you. If you have any circuit or test suggestion, please let me know this and i will do.

But if you don't know why the ch340 doesn't work well with esp32, please, don't pollute the topic.

I just need to know why this ch340 doesn't work with esp32 and only it.

Thank you for your time and suggestions (Horace and cattledog).

Yes Cattledog. HC05 work well with ch340 and 16u2. But the problem is that hc05 is a very old bluetooth module(2010) and support only 2.0 bluetooth, it makes the connection unstable and doesn't support Iphone connection.

So i trying to implement a bluetooth using the ESP32 that support 5.0 bluetooth, and it has the possibility to add an antena to make the transmission better too.

Yes Cattledog. HC05 work well with ch340 and 16u2.

Perhaps the focus should be on the difference in output between the HC05 and the ESP32 and not the input chip.

Can you get a scope on the Tx voltage coming from each module? If the ESP32 Tx voltage is a bit lower than that of the HC05 the two input chips may respond differently.

I think it is very important to try the ESP32 with a level shifter. You really should be giving 5v to the ttl inputs of the Mega/usb converter chip.

Yes, good idea.

Yes, i will take a shot of the TX and RX lines on the oscilloscope to post here.

Does you mean elevate the voltage on the TX line to 5V? I will try a buffer with an amp op. Is a good try.