ESP8266-CORE-R Copyrig

Similar documents
ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) Copyright c 2

Arduino UNO IS Report No. Report Medical Information System Laboratory

Arduino の勉強会 平成 23 年 1 月 5 日於 : 鳥取大学


GR-SAKURA-SAのサンプルソフト説明

スライド 1

Microsoft Word - SU1204教本(Driver)原稿.docx

unitech PA500 Enterprise PDA Rev. A

UsersGuide_INR-HG5497c_.doc


unitech PA600 Rugged En PDA - RFID HF - unitech G Ver.1.2

Microsoft Word - SU1203教本(Sens)原稿.docx

R1RW0408D シリーズ

ユーザーズマニュアル(SVCEシリーズ)

Arduino Processing and ) Fig1. Arduino Homepage : h;p://

- 2 Copyright (C) All Rights Reserved.

CPU VS-RC003 RobovieMaker for VS-RC003

MODLINK-2 Arduino&IoT 組立式開発ボード Manual モジュリンク 2 取扱説明書

Arduinoで組込み制御

4

SpeC記述のC記述への変換 (SpecCによるソフトウェア記述の実装記述への変換)

スライド 1

4

PowerPoint プレゼンテーション

Microsoft Word - SU1202教本(Disp)原稿.docx

TLS PC Link TM Users Manual I

TOS7200 CD-ROM DUT PC 1.0X p.15 NEMA Vac/10 A [85-AA-0003] m : CEE7/7 : 250Vac/10 A [85-AA-0005] : GB1002 : 250Vac/10A [ ] 2016

DL1720/DL1740ディジタルオシロスコープユーザーズマニュアル

Android Windows 8 AP 9 AP ios & Android 10 ST 11 ST ios 12 ST Android 13 ST Win & Mac 14 ST ios 15 ST Android

WAGO Profibus /-833及び三菱MELSEC Q02HCPU/QJ71PB92Dのコンフィグレーション

2709CF02-01 この工作例はある程度の電子回路の知識をお持ちの方が対象で 回路図などをご覧に なり自己責任で自作できる方が対象です この工作例についてのサポート 修理 改造などのご相談 お問い合わせは受け付けて おりません また 本書の内容について動作などを保証するものではありません あらか

SR-X526R1 サーバ収容スイッチ ご利用にあたって

Jp

EPSON EHDMC10 ユーザーズガイド

VNSTProductDes3.0-1_jp.pdf

STM32 ファミリ : Arm® Cortex®-Mコア 32bitマイクロコントローラ



Ver. 2 D4 D800 D800E D7100 D7000 D4 UT-1 D7000 UT-1 UT-1 D7100 D7100 D800 UT-1 D800E D800/D800E Jp

Z9900-N-C1-A book

Jp

untitled

NEC Corporation 2008

講習会 Arduino

TM-m30 詳細取扱説明書

UT-1 UT-1 D800 D800E FTP UT-1 WT-5 UT-1 D800 D800E A 1.10 B 1.10 UT UT FTP 062 WT-5 06 ii 024 FTP 069

相続支払い対策ポイント

150423HC相続資産圧縮対策のポイント

ハピタス のコピー.pages

Copyright 2008 All Rights Reserved 2

NEC Corporation 2007

ユーザーズマニュアル(SVCCシリーズ)

untitled

mbed祭りMar2016_プルアップ.key

Fluke 2X5 Fluke 2X5 190 Profibus Fieldbus RS232 RS Fluke 2X5 8 BHT190 AS-i CAN RS232 RS485 Modbus Foundationbus Profibus Ethernet 80 %GOOD10 %

arduino プログラミング課題集 ( Ver /06/01 ) arduino と各種ボードを組み合わせ 制御するためのプログラミングを学 ぼう! 1 入出力ポートの設定と利用方法 (1) 制御( コントロール ) する とは 外部装置( ペリフェラル ) が必要とする信号をマイ

User's Guide

R1RW0416DI シリーズ

1 1 LAN LAN LAN LAN Pre Shared Key: LAN 1. UTP 10BASE-T/100BASE-TX MDI/MDI-X 2 AT-TQ

OAKS16-FullKit

INDEX 1 必要なものを準備しよう 各部の名称を確認しよう 電源を入れよう スイッチで LED を光らせよう BiZduino で Wi-Fi 通信しよう RTC を使ってみよう 参考資料 7 困ったら... 21

チュートリアル XP Embedded 入門編

(Making the electronic circuit with use of micro-processor)

HP Server tc2120 Microsoft Windows 2000 Server SP3 HP P

LAN FTP 1 FTP 047 PC 016 FTP HTTP 024 iphone Camera Control Pro 2 ii

URL AdobeReader Copyright (C) All Rights Reserved.

LANFTP 1 FTP 047 PC 016 FTP HTTP 024 iphone Camera Control Pro 2 ii

Jp

IMI TSC1171 ( TSC1171) IMI YJ-M-002A( ) Zigbee TSC1171 TSC mm TSC1171 I/O A/D D/A 2.54mm 1

TM-m30 詳細取扱説明書

1 138

USBLAN_um_101.PDF

S1C17W12 S1C17W13 (WDT2) (RTCA) 16 (T16) 16PWM (T16B) SQFN7-48pin TQFP12-48pin SQFN7-48pin NMI, NMI/ Hz, / / / // / 1, 3 SPIA 2 / PWM PWM : 2/ (

- 2 Copyright (C) All Rights Reserved.

TM-m30 詳細取扱説明書

MOTIF XF 取扱説明書

DAC121S101/DAC121S101Q 12-Bit Micro Power, RRO Digital-to-Analog Converter (jp)

LPM-CBUSB2

Magic Guard DVR Модель 3

1 2

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM

EQUIUM EQUIUM 1

0.laisa.copyright.B

( ) : 1997

橡EN1165.PDF

MINI2440マニュアル

MAX7319 EV.J

1 2

c120-e pdf

FMUP-204取扱説明書

how-to-decide-a-title

R1RP0416D シリーズ

VM-53PA1取扱説明書


8051 개발보드 메뉴얼

Raspberry Pi ZeroによるIoT入門



i

1 2

Transcription:

ESP8266-CORE-R1 http://www.microfan.jp/ https://store.shopping.yahoo.co.jp/microfan/ https://www.amazon.co.jp/s?merchant=a28nhprkjdc95b 2018 3 Copyright c 2017-2018 MicroFan, All Rights Reserved.

i 1 ESP8266-CORE-R1 1 1.1.................................. 1 1.1.1 ESP8266-CORE-R1.................... 2 1.1.2 32........................ 2 1.1.3......................... 2 1.1.4 WiFi.................... 3 1.2.................................. 3 1.3........................... 4 1.3.1........................ 4 1.3.2 ESP8266-WORKBENCH...... 4 1.3.3 IoT ESP8266-IoT-BASE.................. 5 1.3.4 ESP8266-MOTOR-BASE............ 5 1.3.5 ESP8266-SERVO-BIT............... 6 1.3.6 ESP8266-IR-BIT.............. 6 1.4............................ 7 1.4.1................... 7 1.4.2 PC........................... 7 1.5...................... 8 2 9 2.1.................................. 9 2.2.................................. 10 2.2.1 USB............... 10 2.2.2......................... 10 2.2.3 ESP-WROOM-02................... 11 2.3............................ 12 2.3.1..................... 13 2.3.2 SV1, SV2....................... 13 3 Arduino 15

ii 3.1 Arduino Core............................... 15 3.2 ESP8266 Arduino.............. 15 3.2.1 Arduino IDE.................. 16 3.2.2.................. 16 3.2.3 ESP8266 Core.. 16 3.2.4.................... 17 3.3.......................... 18 3.3.1 BLINK:LED..................... 19 3.3.2 FADE:PWM LED................. 20 3.3.3 WiFi WebServer.......................... 21 4 23 4.1 ESP8266-CORE......................... 23 4.2 BOOT............................ 24 4.2.1 BOOT...................... 24 4.3 NodeMCU................ 25 4.4....................... 25 4.5..................................... 26 4.5.1............................... 26 4.5.2 USB...................... 26 4.5.3.................... 26 4.5.4.............. 27 4.6 CH340................ 27 5 28 5.1............................... 28 5.2........................... 28 5.3.................................. 28 5.4................................ 28 5.5................................... 29

iii 1.1 ESP-WROOM-02............................. 3 1.2.......................... 4 1.3 ESP8266-WORKBENCH......................... 5 1.4 ESP8266-IoT-BASE............................ 5 1.5 ESP8266-MOTOR-BASE......................... 6 1.6 ESP8266-SERVO-BIT....................... 6 1.7 ESP8266-SERVO-BIT....................... 7 2.1 ESP8266-CORE....................... 9 2.2........................... 11 2.3 RST............................... 12 2.4 GMR............................... 13 2.5......................... 13 3.1 Board Manager.................. 17 3.2............................. 18 3.3 ESP8266.............................. 18 3.4 BLINK:LED........................ 19 3.5 FADE:PWM LED..................... 20 3.6 WiFi WebServer.............................. 22 4.1 ESP8266-CORE......................... 23

iv 2.1 ESP8266-CORE....................... 9 4.1................................... 24 4.2 BOOT............................... 25 4.3 SV1................................ 25 4.4 SV2................................ 26

1 1 ESP8266-CORE-R1 1.1 ESP8266-CORE ESP-WROOM-02 WiFi LAN 32 LAN MCU Arduino MCU LAN MCU IoT *1 IoT IoT ESP-WROOM-02 ESP8266-CORE IoT ESP8266-CORE Arduino Arduino LAN *1 Internet of Things

1 ESP8266-CORE-R1 2 1.1.1 ESP8266-CORE-R1 ESP8266-CORE 32 Arduino UNO R3 FLASH RAM WiFi Arduino USB Arduino IDE NodeMCU 600mA 0.25V ESP- WROOM-02 1.1.2 32 ESP8266-CORE ESP-WROOM-02 32 Arduino UNO R3 Flash( ) RAM 1.1.3 ESP8266-CORE / Arduino IDE PlatformIO MicroPyhon NodeMCU 3 Arduino

1 ESP8266-CORE-R1 3 1.1.4 WiFi ESP8266-CORE ESP-WROOM-02 1.1 1.1 ESP-WROOM-02 ESP-WROOM-02 WEB http://espressif.com/en/products/hardware/esp-wroom-02/overview ESP8266-CORE ESP-WROOM-02 WiFi MCU ESP-WROOM-02 ESP-WROOM-02 WiFi ESP8266-CORE Arduino Arduino 1.2 ESP-WROOM-02 WiFi ESP-WROOM-02 ESP8266-CORE 0.25V@600mA 600mA ESP-WROOM-02

1 ESP8266-CORE-R1 4 1.3 ESP8266-CORE 1.3.1 1.2 ESP8266-CORE https://store.shopping.yahoo.co.jp/microfan/breadboard-30.html https://store.shopping.yahoo.co.jp/microfan/breadboard-63.html 1.2 1.3.2 ESP8266-WORKBENCH ESP8266-WORKBENCH OLED LED I2C ESP-WROOM-02 https://store.shopping.yahoo.co.jp/microfan/esp8266-workbench-r1-kit.html

1 ESP8266-CORE-R1 5 1.3 ESP8266-WORKBENCH 1.3.3 IoT ESP8266-IoT-BASE ESP8266-IoT-BASE IoT https://store.shopping.yahoo.co.jp/microfan/esp8266-iot-base-r1-kit.html 1.4 ESP8266-IoT-BASE 1.3.4 ESP8266-MOTOR-BASE ESP8266-MOTOR-BASE ESP8266-CORE DC RC https://store.shopping.yahoo.co.jp/microfan/esp8266-motor-base-r1-kit.html

1 ESP8266-CORE-R1 6 1.5 ESP8266-MOTOR-BASE 1.3.5 ESP8266-SERVO-BIT ESP8266-SERVO-BIT ESP8266-CORE 8 RC https://store.shopping.yahoo.co.jp/microfan/esp8266-servo-bit-r1-kit.html 1.6 ESP8266-SERVO-BIT 1.3.6 ESP8266-IR-BIT ESP8266-IR-BIT ESP8266-CORE

1 ESP8266-CORE-R1 7 https://store.shopping.yahoo.co.jp/microfan/esp8266-ir-bit-r1-kit.html 1.7 ESP8266-SERVO-BIT 1.4 ESP8266-CORE-R1 1.4.1 ESP-WROOM-02 AT LAN Arduino IDE Arduino IDE NodeMCU ESP8266-CORE 1.4.2 PC ESP8266-CORE Arduino IDE Windows 7/10 Windows MacOS Linux *2 *2 WEB MacOS Linux ESP-WROOM-02/ESP8266

1 ESP8266-CORE-R1 8 ESP8266-CORE MacOS Linux Arduino IDE 1.5

9 2 2.1 ESP8266-CORE 4.1 2.1 2.1 ESP8266-CORE ESP8266-CORE Rev.1 1 SV1, SV2 1 8PIN 2 2.1 ESP8266-CORE

2 10 2.2 ESP8266-CORE USB PC PC CH340G *1 4.6 2.2.1 USB ESP8266-CORE PC Arduino IDE [ ] [ ] COM1 ESP8266-CORE PC ESP8266-CORE PC USB Arduino IDE [ ] ESP8266- CORE COMX(X ) ESP8266-CORE COM ESP8266-CORE USB USB PC USB USB USB USB PC PC (microfan_shop@yahoo.co.jp) 2.2.2 ESP-WROOM-02 ESP8266-CORE PC Arduino IDE [ ] [ ] ESP8266-CORE COM *1 Windows 10 PC

2 11 115200bps ESP8266-CORE 2.2 ready 2.2 ESP-WROOM-02 USB 2.2.3 ESP-WROOM-02 AT ESP-WROOM-02 AT+RST AT+GMR 2.3, 2.4 ESP8266- CORE PC AT

2 12 AT+RST OK ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x40100000, len 2408, room 16 tail 8 chksum 0xe5 load 0x3ffe8000, len 776, room 0 tail 8 chksum 0x84 load 0x3ffe8310, len 632, room 0 tail 8 chksum 0xd8 csum 0xd8 2nd boot version : 1.6 SPI Speed : 40MHz SPI Mode : DIO SPI Flash Size & Map: 16Mbit(512KB+512KB) jump to run user1 @ 1000 [*** ***] ready 2.3 RST 2.3 ESP8266-CORE Arduino IDE ESP8266-CORE 2.5

2 13 AT+GMR AT version:1.3.0.0(oct 28 2016 11:29:39) SDK version:2.0.0(6ccde98) compile time:mar 31 2017 14:50:03 OK 2.4 GMR 2.5 2.3.1 ESP8266-CORE GND GND 2.3.2 SV1, SV2 ESP8266-CORE SV1, SV2 SV1, SV2

2 14

15 3 Arduino 3.1 Arduino Core ESP8266-CORE Arduino IDE Arduino Arduino UNO R3 MCU ATmega328P Arduino IDE ATmega328P Arduino UNO MCU Arduino IDE MCU [Core] ATmega328P MCU Core Arduino IDE ESP-WROOM-02 Arduino IDE ESP8266 Core Core WEB https://www.arduino.cc/en/guide/cores Installing additional Arduino Cores ESP8266 Core 3.2 ESP8266 Arduino ESP8266 Core ESP8266 community WEB LGPL *1 https://github.com/esp8266/arduino *1 Core LGPL ESP8266 community

3 Arduino 16 3.2.1 Arduino IDE (2017/11) https://github.com/esp8266/ Arduino Arduino IDE 1.8 Arduino Arduino IDE 1.8.5 1.8.5 Arduino IDE ESP8266 Core Arduino IDE Arduino IDE ESP8266 https://github.com/esp8266/arduino 3.2.2 Arduino IDE Core Arduino IDE [ ] [ ] 3.1 https://github.com/esp8266/arduino [ URL] URL [OK] http://arduino.esp8266.com/stable/package_esp8266com_index.json ESP8266 Core 3.2.3 ESP8266 Core Arduino IDE [ ] [ ] [...] 3.2 [esp8266 by ESP8266 Community] [ ]l ESP8266 [ ] ESP8266 Arduino IDE [

3 Arduino 17 3.1 Board Manager ] [ ] ESP8266 ESP8266 3.2.4 [ ] [ ] [Generic ESP8266 Module] [ ] ESP8266 3.3 [Reset Method:] nodemcu [ :] ESP8266-CORE ( COM1 )

3 Arduino 18 3.2 3.3 ESP8266 3.3 ESP8266 Core Arduino IDE [ ] [ ] ESP8266 ESP8266

3 Arduino 19 ESP8266-CORE WebServer 3.3.1 BLINK:LED hello world LED Arduino IDE [ ] [ ] [01.Basics] Blink ESP8266-CORE LED 16 pinmode(),digitalwrite() 1 13 16 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 13 as an output. pinmode(16, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalwrite(16, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalwrite(16, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } 3.4 BLINK:LED Arduino IDE [ ] [ ] Arduino IDE ESP8266-CORE LED

3 Arduino 20 3.3.2 FADE:PWM LED Arduino IDE [ ] [ ] [01.Basics] Fade ESP8266-CORE LED 16 led 9 16 Arduino analogwrite() 2 PWM 0-255 ESP8266 Arduino 0-1023 1023 analogwriterange() setup() analogwriterange(255) PWM Arduino int led = 16; int brightness = 0; int fadeamount = 5; // the pin that the LED is attached to // how bright the LED is // how many points to fade the LED by // the setup routine runs once when you press reset: void setup() { // declare pin 16 to be an output: pinmode(led, OUTPUT); } analogwriterange(255) ; // for ESP8266 // the loop routine runs over and over again forever: void loop() { // set the brightness of pin 16: analogwrite(led, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeamount; // reverse the direction of the fading at the ends of the fade: if (brightness == 0 brightness == 255) { fadeamount = -fadeamount ; } // wait for 30 milliseconds to see the dimming effect delay(30); } 3.5 FADE:PWM LED

3 Arduino 21 3.3.1 ESP8266-CORE LED 3.3.3 WiFi WebServer ESP8266 Arduino Core Web ESP-WROOM-02 WiFi ESP-WROOM-02 Web ESP-WROOM-02 ESP-WROOM-02 SSID ESP8266 3.3.1 ESP8266-CORE Arduino IDE ESP-WROOM-02 WebServer ESP-WROOM-02 SSID:ESP8266 WiFi WEB WebServer [Hello MicroFan!] WEB

3 Arduino 22 #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> const char ssid[] = "ESP8266"; ESP8266WebServer server(80); void handleroot() { String msg = "<html><head><title>esp8266 WebSerber</title>" "</head><body><h1>hello MicroFan!</h1>" ; } server.send(200, "text/html", msg + "<hr>" "<h1>" + millis() + "</h1></body></html>"); void setup() { WiFi.softAP(ssid); // server.on("/", handleroot); server.begin(); } Serial.begin(115200); Serial.println(); Serial.print("WebServer IP address: "); Serial.println(WiFi.softAPIP()); void loop() { server.handleclient(); } 3.6 WiFi WebServer

23 4 4.1 ESP8266-CORE ESP8266-CORE 4.1 4.1 4.1 ESP8266-CORE

4 24 4.1 ESP8266-CORE Rev.1 1 IC IC1 ESP-WROOM-02 1 IC2 CH340C 1 IC3 AP2112K-3.3 1 Q1 UMH3N 1 D1 SS34 1 LED1, LED2 2 R1-R4 10K 4 R5, R8 470 2 R6, R7 1K 2 C1, C6 22 F 2 C2, C4 0.1 F 2 C3 1nF 1 C5 10 F 1 SW1, SW2 2 2 USB CN1 micro 1 SV1, SV2 8pin 2 4.2 BOOT ESP-WROOM-02(ESP8266) 2 Flash Boot Mode UART Download Mode Flash Boot Mode ESP-WROOM-02 UART Flash Boot Mode ESP-WROOM-02 Arduino IDE NodeMCU firmware 4.2.1 BOOT Flash Boot Mode UART Download Mode ESP-WROOM-02 3 GPIO(D0) GPIO0(D0) ESP8266-CORE SW1(LOAD) SW1(LOAD) GPIO0(D) H L

4 25 4.2 BOOT Flash Boot Mode UART Download Mode GPIO15(D15) L L GPIO2(D2) H H GPIO0(D0) H L 4.3 NodeMCU ESP8266-CORE NodeMCU Arduino IDE Reset Method nodemcu Arduino IDE ESP8266-CORE 4.4 ESP8266-CORE ESP-WROOM-02 SV1, SV2, SV4, SV5 SV1,4 4.3 SV2,5 4.4 SPI 4.3 SV1 1 3.3V 2 D14 SCK 3 D12 MI 4 D13 MO 5 D15 6 D2 7 D0 SW1 8 GND

4 26 4.4 SV2 1 D4 SDA 2 D3 RX 3 D1 TX 4 D5 SCL 5 RESET SW2 6 AD 7 D16 LED1 8 5V 4.5 4.5.1 ESP8266-CORE USB PC ESP8266-CORE USB SV2 5V USB 5V ESP8266-CORE USB SV2 5V 5V 4.5.2 USB PC USB USB2 500mA USB3 900mA ESP8266-CORE SV2 5V USB 3A USB AC USB ESP8266-CORE 5V3A USB RC LED 4.5.3 ESP8266-CORE AP2112K-3.3 6.5V USB AC 5V 6.5V

4 27 4.5.4 ESP-WROOM-02 200mA ESP8266-CORE AP2112K-3.3 3.3V 600mA *1 ESP-WROOM-02 AP2112K-3.3 0.25V 0.6V USB 5V 4.6 CH340 ESP8266-CORE USB CH340 *2 ESP8266-CORE USB PC PC CH340 CH340 WEB http://www.wch.cn/product/ch340.html CH340 http://www.wch.cn/download/ch341ser_zip.html *1 USB USB2 500mA USB3 900mA *2 CH340 http://www.wch.cn/

28 5 5.1 microfan_shop@yahoo.co.jp 5.2 Yahoo! WEB https://store.shopping.yahoo.co.jp/microfan/ WEB https://www.amazon.co.jp/s?merchant=a28nhprkjdc95b 5.3 WEB http://www.microfan.jp/ 5.4 E-Mail: microfan_shop@yahoo.co.jp TEL: 092-938-0450

5 29 5.5 811-2316 2-2-22-503