Skip to content

My first embedded project - an LCD display (with I2C module), buzzer and a button connected to a ESP8266 module via a breadboard. A simple websocket server with Express that serves a simple HTML page where the user can send a message that will be printed on the LCD display.

Notifications You must be signed in to change notification settings

raduloov/esp8266-pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp8266-pager

IMG_2746-min IMG_2745-min

server ui server ui timeout

Description

My first embedded project - an LCD display (with I2C module), buzzer and a button connected to a ESP8266 module via a breadboard. A simple websocket server with Express that serves a simple HTML page where the user can send a message that will be printed on the LCD display.

How it works / Features

  • When the ESP8266 module is connected to power, it will connect to a WiFi network. Connecting... and Connected text will be printed on the display.

Note: ssid and password need to be hardcoded in the code.

  • Via the server (currently hosted at ESP8266-Pager) the user can send a message.

Note: Due to the 16x2 size of the display, a 32 character limit is enforced on the input.

  • On sending a message a loading spinner will be rendered on the send button. After receiving and displaying the message, the ESP8266 will send back a response to the server, informing the server that the button should be usable again.
  • A notification sound will be played through the buzzer on a new message.
  • The display will be turned off after 10 seconds. A new message or manually pressing the button on the breadboard will turn the display on for 10 seconds.
  • If a message is not received by the ESP8266 in 5 seconds (probably it's offline), a timeout will occur and an error message will be displayed

Developing

I have used the Arduino IDE to write the C++ code for the ESP8266 module. Required Arduino libraries:

  • ESP Async TCP 2.0.0 by ESP32Async
  • WebSockets 2.6.1 by Markus Sattler
  • LiquidCrystal I2C 1.1.2 by Frank de Brabander

About

My first embedded project - an LCD display (with I2C module), buzzer and a button connected to a ESP8266 module via a breadboard. A simple websocket server with Express that serves a simple HTML page where the user can send a message that will be printed on the LCD display.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published