Coder Social home page Coder Social logo

scrolltext-esp8266's Introduction

ScrollTextBox - ESP8266

alt tag

๐Ÿ”ฅ New version 2.0 "easy to use"!

โœ” Simple configuration to function as a web server or client.

โœ” Automatically generates QR codes for the current web address and displays them. -> No more tedious creation of QR code images!

Features:

  • Automatically connects to a known access point
  • If no known access point is found, the ESP automatically creates an AP (configuration mode)
  • With the help of the WiFi manager, a network and the password can then be entered.
  • Either connects to a web server and reads the contents of a text file.
  • OR makes itself a web server to receive a text over a website.
  • This text is then displayed on the 8 x 64 LED matrix
  • Display of several consistent texts in various types of animation
  • Shows information and QR code on a 128 x 64 OLED display
  • Allows program upload "over the air" (OTA) without a USB cable

Material:

Useful:

Why only as a Visual Studio Code / platformIO project?

I struggled a lot with the Arduino IDE and external libraries. If the project is opened again after a while, there are error messages when compiling because the core or the libraries are newer. Most of the questions I read in the YouTube comments concern exactly this problem. That's why I decided in 2018 to only work with Visual Studio Code and PlatformIO. And have never regretted it! All libraries can (but do not have to) be integrated into the project. In addition, the version of the ESP core can be fixed. Such a project can easily be compiled on other computers even years later.

In addition, any other resources such as links or data sheets can be stored in the project. It remains to be mentioned that this is a real IDE and not a better text editor.๐Ÿ˜‰

Arduino sketches can also be imported. With new projects you can continue with .ino files or correctly with .h and .cpp files. Here is one (of many) good overview and how-to for VSC with PlatformIO: https://docs.platformio.org/en/latest/integration/ide/vscode.html

configuration

First of all it has to be determined whether the box should work as a web server or client.

web server

  • advantage:
    • No external web server / hoster required
  • disadvantage:
    • The IP address can change at any time. (DHCP) It is therefore necessary to scan the QR code to access the website
    • When switching on, the standard text is always displayed

web client

  • advantage:
    • Can be reached worldwide at the same address. E.g. MyWebhoster.com/scroll
    • The last text used is reloaded when the device is switched on.
  • disadvantage:
    • Needs a web server (Rasberry Pi, NAS, Hoster) on which PHP can be run and the authorization to generate a text file.

This configuration can be made at this point in the "Wifi_Matrix_OLED.h" file. Comment out the line // or not. C ++ #define IamTheServer // Enabled: act as web server; Disabled: act as client and needs a server

Further required settings if configured as a client:

C ++ const String pathToServer = "myHoster.com/scroll"; // For QR code const char * host = "myHoster.com"; // host address const String url = "/scroll/MeinText.txt"; // Path to the txt file All fixed texts and the animations used can be adapted directly in the program.

Installation

After the configuration has been made and the project has been loaded into the ESP, it continues as follows: Since no WiFi data has yet been saved, the ESP automatically switches to AP mode. A QR code is now displayed with which the settings for the AP are automatically adopted from the smartphone. (iOs and Android) If you are then connected to the AP "Scrollbox" and have the WiFi settings open on the smartphone, the WiFi Manager's website should open automatically. If not, enter the address 192.168.4.1 in the browser. A WLAN can now be selected here and the password entered. If the log-in is correct, the ESP connects to the WiFi and starts displaying texts.

From now on, a QR code is displayed with which you can go directly to the website of the box or the remote host. As simple as that!

Hidden commands:

  • The brightness of the LED can be set with the text "Lumos = 0" to "Lumos = 15". (Without "") This value is saved.
  • The WiFiManager can be reset with the text "WiFiReset". However, this is only necessary for test purposes.
    • Caution: In client mode, the text must be changed immediately after the reset, otherwise a reset will be made every time the system is started. ๐Ÿ˜’

One last thing:

If someone can use this code for their own project, I would be happy to receive a picture of the finished object. The email address is in the code.

scrolltext-esp8266's People

Contributors

diydave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scrolltext-esp8266's Issues

http refused

Dear Dave,

Sorry to bother you but I am trying to build your scroll text using the same setup as you have in your build. I managed to get it working and the matrix display shows the startup animations.

In the serial monitor I can see that the ESP gets an IP address on my local network that I then try in my browser - but it gives a "connection refused" error. Any idea of what I am missing?

Mathias

Serial Monitor Output

*WM: [2] Connecting as wifi client... 
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping 
*WM: [1] Connecting to SAVED AP: wifirup
*WM: [3] Using Password: zxczxczxc
*WM: [3] WiFi station enable 
*WM: [3] enableSTA PERSISTENT ON 
*WM: [1] connectTimeout not set, ESP waitForConnectResult... 
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] AutoConnect: SUCCESS 
*WM: [1] STA IP Address: 192.168.86.26

Pictures

The pictures on Github are too large to display.

can t get serverscript working

Dave, i tried several hosts to get my serverscript working but it will not display the text on the matrix. Online , i can fill in the text i want to send, but it never reaches the matrix . what am i doing wrong, any help please?

Problem with MD_Parola

Unfortunately, I don't get the project compiled because the current sketch versions seem incompatible. Could you please add the version numbers you use in the readme? Of course, a finished binfile wouldn't be bad either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.