Download Print this page

Pin Number - sparkfun ESP8266 Hook-Up Manual

Thing
Hide thumbs Also See for ESP8266:

Advertisement

1/23/2018
A lot of the core Arduino libraries have been re-written to work for the ESP8266, including:
Wire – The ESP8266 should work with any I C sensor you can throw at it – just use the same
There are a few differences:
Pin definition: The ESP2866 doesn't actually have any hardware I C pins – those labeled on the Thing are the default,
but you can actually use any two pins as SDA and SCL. Calling
and SCL, but you can manually set them to any other pin by calling
SPI – The ESP8266 Thing can control an SPI bus using function calls made standard by the
An additional function to set the frequency –
your setup to slow the clock down from its default value. For example,
clock to 1MHz.
The MISO, MOSI, and SCLK SPI pins are hard-coded and can't be moved, they are:
Deep Sleep
The ESP8266 has a pretty decent low-power sleep mode – operating around 70µA. To put the ESP8266 to sleep, use
the
ESP.deepSleep(<microseconds>)
ESP.deepSleep(30000000);
For it to wake itself back up, the ESP8266 requires an external connection between pin 16 and its RST pin. Use the handy "Sleep-
EN" jumper to set this connection up.
Resources and Going Further
An astoundingly awesome community has grown around the ESP8266. We owe them big time for the amazing Arduino addon
they've cooperatively built. For all of your ESP8266 needs, we recommend checking out the
addition to that, here are a few ESP8266-related resources we've found incredibly helpful:
ESP8266 GitHub User Repos
GCC, G++, etc.) to the
ESP8266 Community Wiki
NodeMCU Firmware
based interpreter on the ESP8266 MCU.
Espressif Board Forums
updated software development kit downloads, or other helpful links here.
Espressif GitHub Repos
The ESP8266 Thing is open source hardware! If you need, or just want to look at, the PCB design files, you can find them in
our
ESP8266 Thing Development Board GitHub
https://learn.sparkfun.com/tutorials/esp8266-thing-development-board-hookup-guide/all
ESP8266 Thing Development Board Hookup Guide - learn.sparkfun.com
2

Pin Number

12
13
14 (SCL)
15
function.
// Sleep 30 seconds
– Tons of incredible tools can be found here. From
ESP8266 Arduino GitHub Repo
– Related to the community forum, there's a good amount of information available in this wiki.
and the
NodeMCU Flasher
– Espressif, the manufacturers of the ESP8266, have a forum of their own. You can sometimes find
– Espressif is also somewhat active on GitHub. They host a couple versions of the SDK here.
repository.
2
Wire.begin()
Wire.begin([SDA], [SCL])
SPI.setFrequency([frequency])
SPI Function
MISO
MOSI
SCLK
CS
– NodeMCU is a popular firmware for the ESP8266. It implements a LUA-
Wire API
calls you're used to.
will assume pins 2 and 14 are SDA
.
Arduino SPI
– is added. You may need to call that in
SPI.setFrequency(1000000)
esp8266.com Community
Crosstool
(to compile your own Xtensa
library.
will set the SPI
COPY CODE
Forum. In
24/24

Advertisement

loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel