element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Information Display System using WeMOS and MAX7219
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: oksbwn
  • Date Created: 13 May 2017 4:42 PM Date Created
  • Views 497 views
  • Likes 2 likes
  • Comments 0 comments
  • wemos display
  • alberto
  • max7219
  • bikash panda
  • max72
  • weargenius
  • wemos
  • oksbwn
Related
Recommended

Information Display System using WeMOS and MAX7219

oksbwn
oksbwn
13 May 2017

This tutorial is all about making a WiFi based information display system. This system is built around ESP8266 but not the standalone ESP8266 instead WeMOS is used and programmed using Arduino IDE. So In this video, we will check out how to make an information display system like that using Wemos and MAX7219 based dot matrix display modules. The display system fetches data from the local/online server and displays the received. In this system, u can display any data that you want and that's up to you however over here I am using this to display my YouTube subscribers and twitter followers count.

 

 

 

 

Code:

#include <ESP8266WiFi.h> #include <SPI.h> #include <bitBangedSPI.h> #include <MAX7219_Dot_Matrix.h>  const byte chips = 4; //No of MAX7219 Dpt Matrix Display unsigned long lastMoved = 0; unsigned long MOVE_INTERVAL = 100;  // mS int  messageOffset;  MAX7219_Dot_Matrix display (chips, 2);  // Chips / LOAD  char message [90] = "WeArGenius                       "; //String to be displayed  const char* ssid = "weargenius"; // SSID Of the Router const char* password = "omisoksbwn";// Access point Password const char* host = "192.168.0.1"; //Server IP or URL int requestTime=0; int exitT=1;  void updateDisplay () {   display.sendSmooth (message, messageOffset); //Display commands for the Matrix   // next time show one pixel onwards   if (messageOffset++ >= (int) (strlen (message) * 8))     messageOffset = - chips * 8; }  // end of updateDisplay  void setup() {   display.begin (); //Initialize teh displays   Serial.begin(115200);    delay(100);   Serial.println();   Serial.print("Connecting to ");   Serial.println(ssid);   WiFi.begin(ssid, password); // Initiate connection to the Wi-Fi network   while (WiFi.status() != WL_CONNECTED) {     delay(500);     Serial.print(".");   }   Serial.println("");   Serial.println("WiFi connected");     Serial.println("IP address: ");   Serial.println(WiFi.localIP()); //Printout the IP assigned to the module in DHCP   display.setIntensity(15); // Intensity of the Dot Matrix module can be 0-15 }  void loop() {   if(millis()-requestTime>120000){ // Request data from the Srever after every 2 Minutes     requestTime=millis();     Serial.print("connecting to ");     Serial.println(host);          WiFiClient client;     const int httpPort = 80;     if (!client.connect(host, httpPort)) { //Connect to SERVER       Serial.println("connection failed");     }          String url = "/test/index.php"; //Path of the webpage in the server to request     Serial.print("Requesting URL: ");     Serial.println(url);     client.print(String("GET ") + url + " HTTP/1.0\r\n" +         "Host: " + host + "\r\n" +          "Connection: close\r\n\r\n");      while (client.available() == 0) { // check Response from server     if (millis() - requestTime >30000) { // 30 seconds to wait for response before timeout       Serial.println(">>> Client Timeout !");       client.stop();       exitT=0;       break;     }     }     String line="";     while(client.available()){ // Read response from Server       line += client.readStringUntil('\r');     }     line=line.substring(line.indexOf('[')+1,line.indexOf(']')); // Process the response     Serial.println(line);     int i;     for (i=0;i<line.length();i++) // Put response  to char array to display       message[i]=line[i];      if(exitT==1){        exitT=1;       Serial.println("closing connection");       client.stop();     }   }   for(int i=0;i<5000;i++){ // Display the content     if (millis () - lastMoved >= MOVE_INTERVAL){       updateDisplay ();       lastMoved = millis ();     }     delay(1);   } }

MAX7219 Library for WeMOS: http://bit.ly/2oTtoty

Arduino HTTP Call (ESP8266): http://bit.ly/2r8yKBp

Fetch data using XPATH and PHP: http://bit.ly/2pGB0zC

Programming Esp8266 using Arduino IDE: http://bit.ly/2hdARij

Github Repository: http://bit.ly/2r8GFhX

Schematic: http://bit.ly/2pG6ogI

 

More Videos on ESP8266: http://bit.ly/2ijh6qX

Projects Like This: http://bit.ly/2r8x8rr

======================================================

Related VIdeos:

Getting started with ESP8266 : http://bit.ly/2fchgTc

ESP8266 with Raspberry Pi : http://bit.ly/2fchHgb

********************************************************************

Subscribe on YouTube : https://goo.gl/FhfdL7

Guys Subscribe to my channel for latest contents into your inbox.

___________________________________________

Website: http://www.weargenius.in

Twitter: https://twitter.com/geekybikash

YouTube: https://www.youtube.com/weargenius

Instagram: https://www.instagram.com/weargenius/

GIT : https://github.com/oksbwn

Facebook: http://www.facebook.com/geekybikash

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube