Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone interface PIC16f877A or PIC18f4520 or any other PIC microcontroller with wifi ESP8266 Module, need some sample code to send and hit url using TCP connection command.

My hardware part is already completed and works fine i m using PIC16877A with ESP8266 module and I am using PIC mikroC compiler.

share|improve this question
    
Thanks for your help i used that module with arduino easily stuck with some memory issues with PIC – Muhammad Hassaan Bashir Mar 4 at 5:51
    
yes i have sample code.. i have interface pic16f688 with esp8266 also i have control lights. Thank You – Dheeraj May 11 at 7:21

You can program an ESP8266 via AT commands or you could do it the easy way by programing it like you would an Arduino, through the IDE. If you do it through the IDE then the task you are asking about becomes trivial.

  1. Wire the two devices so their serial ports are connected, ensure that Tx and Rx are crossed.

  2. On the ESP8266 look at the supplied example programs and create a program that connects to the WIFI.

  3. Change the code so the ESP8266 receives and sends data down the serial port in accordance with your protocol.
  4. Make you other microprocessor send and receive its data via its serial port.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.