|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | ==Setup Arduino IDE (Winodws)==
| + | |
− | To use the ESP8266 board with Arduino IDE, you need to first add the support of the board package to the IDE. We use Windows PC as an example.<br />
| |
− | The ESP8266 used here is the Waveshare [https://www.waveshare.com/product/displays/e-paper-esp8266-driver-board.htm ESP8266 e-Paper Driver Board]<br />
| |
− | *Download the Arduino IDE from [https://www.arduino.cc/en/software/ Arduino website]
| |
− | *Install the Arduino-ESP8266 Support Page:
| |
− | :1. Open the Arduino IDE
| |
− | :2. Go to File->Preferences Menu, open the Settings tab
| |
− | :3. Text http://arduino.esp8266.com/stable/package_esp8266com_index.json into the text box '''Additional Boards Manager URLs''' and click OK
| |
− | :[[File:Epd esp8266 env 1.png]]
| |
− | :4. Go to Tools->Board-> Boards Manager.... find and/or install ESP8266 by ESP8266 Community.
| |
− | :[[File:Epd esp8266 env 2.png]]
| |
− | *After installing, restart the Arduino IDE, and you can find the NodeMCU1.0(ESP-12E Module) options in the Tools->Boards menu of IDE
| |
− | ==Download Demo Codes==
| |
− | *Download the ESP8266 Demo codes [https://www.waveshare.net/w/upload/d/d5/E-Paper_ESP8266_Driver_Board_Code.7z e-Paper ESP8266 Driver Codes] to your PC.
| |
− | *Unzip the demo codes
| |
− | : The demo codes are included in the examples folder.
| |
− | :[[File:Epd esp8266 download 1.png|500px]]
| |
− | *You should copy the esp8266-waveshare-epd folder to the %LOCALAPPDATA%\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries folder which is under the installation directory of IDE.
| |
− | : The path may be different according to the version of Arduino IDE and the ESP8266 libraries, you need to modify it if it is different.
| |
− | : The esp8266-waveshare-epd is saved under the examples directory.
| |
− | *[[File:Epd esp8266 example 1.png|500px]]
| |
− | ==Hardware connection==
| |
− | *Raw panel + ESP8266 Driver Board
| |
− | : If you have the ESP8266 e-Paper Driver board as well as an e-Paper raw panel. You can just connect the e-paper panel to the ESP8266 board
| |
− | : Configure the switch according to the type of display
| |
− | :[[File:Epd esp8266 hardware 1.png|400px]]
| |
− | {|class="wikitable"
| |
− | !Trigger state!!e-Paper
| |
− | |-
| |
− | |A||1.54inch e-Paper, 2.13inch e-Paper, 2.13inch e-Paper (D), 2.9inch e-Paper
| |
− | |-
| |
− | |B||1.54inch e-Paper (B), 1.54inch e-Paper (C)
| |
− | 2.13inch e-Paper (B), 2.13inch e-Paper (C)<br/>
| |
− | 2.7inch e-Paper (B)<br />
| |
− | 2.9inch e-Paper (C), 2.9inch e-Paper (B)<br />
| |
− | 4.2inch e-Paper (B), 4.2inch e-Paper (C)<br >
| |
− | 5.83inch e-Paper (B), 5.83inch e-Paper (C) <br />
| |
− | 7.5inch e-Paper (B), 7.5inch e-Paper (C), 7.5inch HD e-Paper, 7.5inch HD e-Paper (B)<br />
| |
− | |}
| |
− | '''Note: The ACeP e-Paper doesn't support this connecting method.'''
| |
− | *e-Paper Module/HAT + ESP8266 Board
| |
− | : If you have the ESP8266 Board as well as the e-Paper module/HAT which has PCB already, you can wire the displays by 8-pin cable pin
| |
− | {|border=1; style="width:700px;" align="center"
| |
− | |+ Connect to ESP8266 Driver Board
| |
− | |-style="background:#2D6FDF; color:white;" align="center"
| |
− | |e-Paper||ESP8266
| |
− | |-align="center"
| |
− | |Vcc||3.3V
| |
− | |-align="center"
| |
− | |GND||GND
| |
− | |-align="center"
| |
− | |DIN||GPIO13
| |
− | |-align="center"
| |
− | |CLK||GPIO14
| |
− | |-align="center"
| |
− | |CS||GPIO15
| |
− | |-align="center"
| |
− | |DC||GPIO4
| |
− | |-align="center"
| |
− | |RST||GPIO2
| |
− | |-align="center"
| |
− | |BUSY||GPIO5
| |
− | |}
| |
− | ==Run the Demo Codes==
| |
− | *Open the Arduino IDE
| |
− | *Choose File->Examples-> waveshae-e-Paper -> And the project according to the type of display
| |
− | :[[File:Epd esp8266 example 2.png|700px]]
| |
− | *Build and program the ESP8266 board
| |
− | *Open the serial monitor, you can check the debug information when running the demo codes
| |