IoT Emoji Sign

by 陳亮 in Circuits > Wireless

14029 Views, 112 Favorites, 0 Comments

IoT Emoji Sign

IMG_7249.jpg

This instructables show how to use an ESP8266 and some NeoPixels to create an IoT Emoji Sign.

Preparation

IMG_7255.jpg
IMG_7254.jpg
IMG_7256.jpg
IMG_7257.jpg

ESP8266 dev board

Any ESP8266 board should be ok. This time I am using WeMos D1 Mini Pro, this is smallest and thinnest dev board I can find. If you want it portable, choose a board with Lipo support.

NeoPixels

This project use Arduino Adafruit_NeoPixel library, any compatibles LED chip is ok, such as WS2812, WS2812B, SK6812, SK6812mini ... etc.

This time I am using 64 LED chips of SK6812mini to make a tiny 8x8 matrix panel. But the soldering work is not the main job of this project, you can use a LED strip to simplify the job or even direct buy a 8x8 NeoPixel LED Matrix ;>

Sign Stand

This time I am using a micro USB metal flexible tube cable as a sign stand.

Optional: 3D Printing & Assembly

IMG_5847.jpg
IMG_5920.jpg
IMG_7041.jpg
IMG_7044.jpg
IMG_5921.jpg
IMG_5922.jpg
IMG_5923.jpg
IMG_5924.jpg
IMG_7054.jpg
IMG_7259.jpg
IMG_7258.jpg
IMG_7260.jpg

If you simply buy a 8x8 NeoPixel LED Matrix, you can skip this steps.

  1. 3D print the case: https://www.thingiverse.com/thing:3553675
  2. Put on SK6812mini chip in Zigzag direction
  3. Soldering work
  4. Use hot glue seal the circuit
  5. Connect power pins and signal pin (SK6812 Din to ESP8266 pin 4 / D2) to ESP8266 dev board
  6. Screw up
  7. Plug the USB cable

Software Preparation

螢幕快照 2019-04-10 下午3.58.58.png
螢幕快照 2019-04-10 下午4.00.58.png

Arduino IDE

If you are not yet install Arduino IDE, please download and install it from the official site:

https://www.arduino.cc/en/main/software

ESP8266 Support

If you are not yet install Arduino ESP8266 support, please follow the steps in "Arduino on ESP8266" section:

https://github.com/esp8266/Arduino

Arduino Libraries

Use Arduino Library install 3 depending libraries:

  • WiFiManager
  • ArduinoWebSockets
  • Adafruit_NeoPixel

Download Source Code

螢幕快照 2019-04-11 上午3.08.35.png

Please download my source code here:

https://github.com/moononournation/IoT-Emoji-Sign

8x8 Emoji

螢幕快照 2019-04-10 下午4.07.14.png

This project require some 8x8 pixels emoji, I google and get a simple set from Justin Cyr tweet:

https://twitter.com/JUSTIN_CYR/status/658031097805...

Then I resized the image and use base64decode.org convert to an base64 encoded string to embed it into the HTML.

You may find the resized image at: src/emojis.png

Simple HTML UI

IMG_7261.png

I have scripted a very simple HTML for selecting the emoji and then transfer the pixels to ESP8266 by Web Socket protocol in binary format.

Then I use html-minifier convert to a long single line string to embed it into Arduino code.

You may find the HTML file at: src/index.html

Arduino Program

螢幕快照 2019-04-11 上午2.49.54.png

  1. Connect the ESP8266 dev board to the computer
  2. Open Arduino IDE
  3. Select correct board at the Tools menu
  4. Press Upload button

Setup & Play!

IoT Emoji Sign

Please see the video demo for the setup and play details.

Here are the summary:

  1. Plug the IoT Emoji Sign
  2. Setup WiFi (first time only)
    1. Use your mobile search and connect to the AP "esp-emoji"
    2. WiFiManager Captive Portal show
    3. Press "Configure WiFi" button
    4. Select your AP
    5. Fill AP password
    6. Press "Save" button
    7. ESP8266 auto restart
  3. ESP8266 auto connect to your AP
  4. Use your mobile browse to "esp-emoji.local"
  5. Pick a Emoji and Play!

Ref.: https://www.instructables.com/id/WiFi-WebSocket-Re...

Happy Signature!

IMG_7179.jpg
IMG_7247.jpg
IMG_7248.jpg

The Emoji set from Justin Cyr tweet is only an simple example, you can prepare your own 8x8 Emoji set and show your signature!