-->
Page 1 of 2

How to Upload ESP8266 Code to Arduino IDE

PostPosted: Wed Mar 23, 2016 8:05 am
by tzach123
Hi all,
I bought this esp8266 module from sparkFun: https://nurdspace.nl/ESP8266.
I want to connect the module to my rauter, but firstly I want to upload the blink sketch without any problems.
Do I have to do initials instructions before uploading the sketch, except from connecting the module to arduino and download the esp8266 in the board manager?
Just to be sure, this module is called Generic esp8266 module, right?
Thanks :)

Re: How to Upload ESP8266 Code to Arduino IDE

PostPosted: Fri Mar 25, 2016 8:22 am
by Geert
Its called a generic ESP indeed.

This is how it should be wired: see (http://hackaday.com/2015/03/18/how-to-d ... fi-module/)

A switch from GPIO0 to ground (with a pull-up resistor to VCC)
GPIO2 and CH_PD connected to VCC
GPIO15 connected to ground

When your USB-Serial converter uses 5V instead of 3.3V you need to change the voltage

Image

Re: How to Upload ESP8266 Code to Arduino IDE

PostPosted: Fri Apr 08, 2016 2:43 pm
by jcambiasso
Hey, related to this, has anyone tried using Arduino's UNO or MEGA own USB to TTL to upload to the ESP8266? That is, shorting reset to ground to keep the Arduino MCU from working. I'm asking since its the only thing I have at hand right now. Both Mega and Uno have an atmega16U2 to handle the usb conversion.

Thanks in advance.

Re: How to Upload ESP8266 Code to Arduino IDE

PostPosted: Tue Apr 12, 2016 4:12 pm
by Geert
What I did sometimes, when I didn't have a USB to serial converter is detaching the ATMEGA328 on the UNO to use the 'raw' USB to serial converter without an Arduino screaming on the Serial interface. but be careful with getting the chip out and putting it back... See this video: https://startingelectronics.org/tutoria ... placement/