3

I am trying to solve the following scenario: Lilypad USB connected to WIFI through ESP8266 Serial WiFi Module.

http://arduino.cc/en/pmwiki.php?n=Main/ArduinoBoardLilyPadUSB

http://www.seeedstudio.com/wiki/WiFi_Serial_Transceiver_Module

According to the wiki: I should connect to TX RX pins. None of them are present as "selectable pins", because they are built in.

This post Using LilyPad Arduino USB with LilyPad Xbee Shield talks about using SoftwareSerial something that is new to me.

Could anyone explain how should I proceed with the wiring and if possible a sample sketch just to connect the lilypad usb with the WIFI module to my personal WIFI.

Edit:

I found the following tutorial (spanish one but easy to follow...) where they use the Arduino UNO. I tried the example with the software serial and it worked. I saw in that tutorial sometimes the pin RST is needed. So I tried to do the same with the lilypad USB, but still didn't work.

gone
3541 gold badge5 silver badges13 bronze badges
asked Mar 25, 2015 at 8:12

1 Answer 1

1

First, upload the sketch below to your Arduino. Then, try to tie RX (pin 3) and TX (pin 2) of SoftwareSerial together. Open the Serial Monitor and send some text and see if you get it back as a response.

#include <SoftwareSerial.h>
SoftwareSerial Serial1(3, 2);
void setup()
 { Serial.begin(9600);
 Serial1.begin(9600);
 }
void loop()
 {
 if (Serial1.available())
 { char c = Serial1.read() ;
 Serial.print(c);
 }
 if (Serial.available())
 { char c = Serial.read();
 Serial1.print(c);
 }
 }

Once you get a response, then your SoftwareSerial part is working and you can then try to connect to your ESP8266.

answered Nov 9, 2015 at 16:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.