5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ESP-WROOM-02 : ArduinoIDEでSketch書き込み

Last updated at Posted at 2016-12-25

ESP-WROOM-02の準備

ESP-WROOM-02_回路図.jpg

ブレッドボードだと何回も書き換えしようとすると大変なので..

ESP-WROOM-02_jig.jpg

電流が小さいのでサーボとかブザーとかはまともに動きません.

Arduino IDEの設定

ボードマネージャでArduinoIDEにボードを追加して,"Generic ESP8266 Module" を設定 (https://github.com/esp8266/Arduino)

ESP-WROOM-02_ArduinoIDE.png

書き込み手順

  1. IO0をpulldownして電源ON
  2. Arduino IDEでSketchを書き込み
  3. 一旦電源OFF
  4. IO0をopen(ESP-WROOM-02は内部pullup) or pulpupにして電源ON

ESP8266 Sketch サンプル

Sketchの例 -> Example for Generic ESP8266 module -> ESP8266Wifi -> WifiClient

ssid, password を設定したうえで,hostに適当なWebサーバを設定して, url = "/"; にして確認.

  • BUILTIN_LEDは GPIO1 になっているが,ESP-WROOM-02 では設定すると死ぬので別のportを使うこと

参考

ESP-WROOM-02 Datasheet (ESPRESSIF公式ドキュメント)

ESP-WROOM-02_pin.png

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?