Go Down

Topic: Mega+wifi Serial Configuration (ESP & Mega) (Read 216 times) previous topic - next topic

bigredsmokehouse

I am porting two apps over to a mega with the wifi onboard.  The wifi chip is an ESPRESSEX.  Flashing it has be a zero problem.   I even took a look at the ESP-Link bin.  I got it running fine which is actually pretty nice.

I went back to the espressif binary and all is good.  I can route serial communications from the ESP8266 to the Mega wonderfully.  I want to test from the mega back to the ESP but am struggling how to display it from the ESP.

The serial monitor in the Arduino IDE is for the mega board (please correct me if I am wrong).  What are my options of being able to see serial output (for debugging purposes only) on the ESP board?  Can I putty into it?  What is everyone doing to be able to debug their ESP code?  Looking for ideas :-)

Idahowalker

I use the Arduino IDE to program ESP32's, where I can open the serial monitor and view my log_i printouts, serial.print also works.
Receiving partial information does not help me help you and wastes my time.

Juraj

#2
Sep 17, 2020, 08:04 pm Last Edit: Sep 17, 2020, 08:05 pm by Juraj
https://robotdyn.com/mega-wifi-r3-atmega2560-esp8266-flash-32mb-usb-ttl-ch340g-micro-usb.html
scroll it down.

ask if you need more information.

I recommend the 1,2,3,4 ON, 5,6,7 OFF. and RX/TX to Serial3. don't switch the DIP switches too many times. they fall apart.
with AT firmware 1.7+ in esp8266, you can use my WiFiEspAT library in ATmega

bigredsmokehouse

#3
Sep 23, 2020, 08:59 pm Last Edit: Sep 24, 2020, 01:04 am by bigredsmokehouse
Thank you both.  I got the ESP back up and running.  It is serving pages up nicely.  I must try the RobotDyn board.

As far as the serial output from the ESP goes.  I ended up taking an FTDI Cable FTDI Cable and hooking the black wire to the ground and the white wire to the TX0 on the ESP pins.  Putty worked well to view the serial port on the ESP.

My code works well transmitting data between an ESP/Mega.  I am struggling a little bit with the Serial 3 on the Mega+wifi board.  I do have the dip switch on RX03/TX03.  Do I still need to connect the ESP pins to the Arduino pins?  I am guessing not as that would defeat the purpose of the integrated board.

I am testing with DIPs 1-4 on.  I know it is running as I have both monitors running.

The lack of documentation just drives me nuts.  Can someone tell me a little more detail on the following?

  • CH340 connect to Mega2560 COM3 connect to ESP8266
  • Mega2560+ESP8266



Many thanks to all the wonderful people out here !!


Go Up