项目作者: dsdilpreet

项目描述 :
ESP8266 based network connected Character LCD
高级语言: C++
项目地址: git://github.com/dsdilpreet/network-character-lcd.git
创建时间: 2020-01-18T23:03:32Z
项目社区:https://github.com/dsdilpreet/network-character-lcd

开源协议:

下载


Network Character LCD

Make your own network connected standalone LCD module with the help of character LCD and ESP8266 which can then be used in other electronics projects or from anywhere you can send an HTTP request.

Prerequisites

  • ESP8266 Development board
  • An I2C Character LCD
  • Breadboard and few jumper wires
  • Wi-Fi Router for network connectivity
  • Visual Studio Code with Platform IO extension

Hardware Connections

Connect the pin mentioned in first column with second column for that row with help of jumper wires and breadboard.
| ESP Developement board | I2C LCD |
| ——————- | ——————- |
| VIN | VCC |
| GND | GND |
| D1 | SCL |
| D2 | SDA |

Getting Started

Open the project in Visual Studio Code using Platform IO home. Enter your WiFi username and password in main.cpp file. Build the project and it should download all the required dependencies. Connect the ESP8266 Development board and upload the code to it. The LCD should display the IP address when network is successfully connected.

Display text on LCD

Send an HTTP POST request to http://{ip_address_of_esp}/display with content type of application/json.

  1. {
  2. "data": [
  3. {"text": "Line 1", "align":1},
  4. {"text": "This should appear on Line 2 of character lcd."}
  5. ],
  6. "scroll":1
  7. }

Check out this blog post for more details.

Logs

Open serial monitor from bottom Platform IO bar in VS Code to see logs.

Dependencies