DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Programming the ESP8266 With the Arduino IDE in 3 Simple Steps

Programming the ESP8266 With the Arduino IDE in 3 Simple Steps

Learn how you can get your ESP8266 up and running ASAP using the Arduino IDE.

Mateo Velez user avatar by
Mateo Velez
·
Nov. 11, 16 · Tutorial
Like (5)
Save
Tweet
Share
251.38K Views

Join the DZone community and get the full member experience.

Join For Free

the esp8266 is a low-cost wifi module built by espressif systems . its popularity has been growing among the hardware community thanks to its nice features and stability, to the point that it can be easily programmed using your arduino ide .

in this post, we'll learn how to program your esp8266 using an uartbee or arduino uno, and the arduino ide.

requirements

  1. an esp8266 module.

  2. an arduino uno , uartbee or any uart to usb device.

  3. jumper wires.

  4. arduino ide version 1.6.6 or higher.

1. wire up!

first, we'll need to identify the pinout of esp8266.

ubidots-esp-pins.png

to set the esp8266 in programming mode you need to connect its wires like this:

esp8266 uartbee arduino uno
rxd txd rx
gpio0 gnd gnd
gpio2 ------- ----------
gnd gnd gnd
vcc 3.3v 3.3v
rst -------- -----------
ch_pd 3.3v 3.3v
txd rxd tx

note: if you are using an arduino uno you will need to set arduino rst to gnd. please be careful with the vcc of the esp8266, it works only with a 3.3v supply.

2. setup the arduino ide

  1. download arduino ide.

  2. open you ide and click on "file -> preferences".

  3. in  "aditional boards manager urls" add this line and click on "ok":

  4. " http://arduino.esp8266.com/stable/package_esp8266com_index.json"

  5. go to "tools -> board -> boards manager" , type "esp8266" and install it.

  6. go again to "tools -> board" and select "generic esp8266 module".

3. flash your code!

now  you're ready to use your esp8266 as a stand-alone module without needing an external micro-controller. check out more esp8266 resources here to learn how to build iot products and projects using this amazing module.

arduino Integrated development environment

Published at DZone with permission of Mateo Velez, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • AWS Cloud Migration: Best Practices and Pitfalls to Avoid
  • Real-Time Stream Processing With Hazelcast and StreamNative
  • An Introduction to Data Mesh
  • How Observability Is Redefining Developer Roles

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: