Author Topic: Moteino Mega and ESP8266  (Read 2203 times)

cformigal

  • NewMember
  • *
  • Posts: 2
Moteino Mega and ESP8266
« on: August 25, 2015, 07:08:45 AM »
Hi,

I have a Moteino Mega connected to a ESP8266 WiFi module. The Serial 0 ( 8 and 9 pins) is used to download the sketches and Serial 1 ( 10 and 11 pins) is used to connect the Moteino Mega to the ESP8266 module.

What happens is that I can't place the Software Serial sketch to allow to receive on Serial 0 the receiving data on Serial 1.

The ESP8266 module is working perfectly.

Is there any issue with the Software Serial library / sketch and the Motion Mega ?

Regards,

Carlos


TomWS

  • Hero Member
  • *****
  • Posts: 1930
Re: Moteino Mega and ESP8266
« Reply #1 on: August 25, 2015, 08:13:30 AM »
Hi,

I have a Moteino Mega connected to a ESP8266 WiFi module. The Serial 0 ( 8 and 9 pins) is used to download the sketches and Serial 1 ( 10 and 11 pins) is used to connect the Moteino Mega to the ESP8266 module.

What happens is that I can't place the Software Serial sketch to allow to receive on Serial 0 the receiving data on Serial 1.

The ESP8266 module is working perfectly.

Is there any issue with the Software Serial library / sketch and the Motion Mega ?

Regards,

Carlos
I don't understand why you are trying to use the Software Serial sketch on this setup.  The Mega supports Hardware Serial on both ports.  Serial and Serial1 are the objects to use.

Tom

cformigal

  • NewMember
  • *
  • Posts: 2
Re: Moteino Mega and ESP8266
« Reply #2 on: August 25, 2015, 01:02:31 PM »
Hi Tom,

Thanks a lot for you reply and recommendations.

The Software Serial is very handy to sniff data that comes from the second serial port. I'm trying to have a single FTDI ( USB to Serial ) to download sketches, to debug through serial.print commands and to receive and transmit data from the second serial.

Thanks once more.

Regards,

Carlos


gregcope

  • Full Member
  • ***
  • Posts: 174
  • Country: gb
Re: Moteino Mega and ESP8266
« Reply #3 on: August 25, 2015, 01:15:26 PM »
I am afraid, if I recall correctly, Software Serial does not work on the Atmega1284p of the Moteino Mega.

Use the hardware ones!