USB alternative for debug?

srimbey
Posts: 3
Joined: Wed Nov 07, 2018 10:17 pm

USB alternative for debug?

Postby srimbey » Wed Nov 07, 2018 10:38 pm

Can tx0/rx0 be use to communicate with arduino ide? I want to power the ESP32 from a wall charger and still be able to see debug Serial.print messages in arduino ide. Tried modifying a usb cable to plug into rx0/tx0 but do not see any output on the ide.

I want to get higher power from the wall charger because when power comes from the computer usb(MacBook Pro 13") I sometimes get intermittent errors like brownout and random error messages. However when powered from the wall charger (higher amp rating) all seems to work ok. I'm driving a servo with the esp.

Thanks
Steve

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: USB alternative for debug?

Postby chegewara » Thu Nov 08, 2018 7:04 am

Try google with phrase USB to TTL or just FTDI.

srimbey
Posts: 3
Joined: Wed Nov 07, 2018 10:17 pm

Re: USB alternative for debug?

Postby srimbey » Thu Nov 08, 2018 6:34 pm

I thought that's what I was doing by modifying the end of the usb cable but now see that the part needs to be converted to usb thus the need for FTDI cable.

How to get data out the rx0/tx0 or rx2/tx2 pins?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: USB alternative for debug?

Postby WiFive » Fri Nov 09, 2018 5:18 am


rodmcm
Posts: 65
Joined: Sat Sep 02, 2017 3:31 am

Re: USB alternative for debug?

Postby rodmcm » Tue Nov 20, 2018 6:57 am

The USB connection actually uses TX0 and RXO so you can put another power supply on and use the USB only for logging via Serial.print etc.

You also have two other serial outputs that you can connect to a FTDI unit and look at the output with Putty or similar

Kashyapkoshti
Posts: 20
Joined: Sat Nov 10, 2018 11:14 pm

Re: USB alternative for debug?

Postby Kashyapkoshti » Tue Nov 20, 2018 7:34 am

You can use network port for serial monitor.
You can upload code and get serial data through wifi in esp

Who is online

Users browsing this forum: No registered users and 49 guests