dgrajales
Published © CC BY-SA

P10 LED Panel Matrix Configured Wirelessly

Use a wireless device to connect to your 4x4 or 2x2 LED P10 panel screen remotely and configure the display information.

IntermediateFull instructions provided17,170
P10 LED Panel Matrix Configured Wirelessly

Things used in this project

Hardware components

Arduino UNO Wifi Rev.2
Arduino UNO Wifi Rev.2
use itw WiFi for Screen Data Configuration
×1
P10 white LED screen
×16

Story

Read more

Schematics

Connection Diagram

How to connect the panels.

Connection scheme between Arduino and Screen

arduino Ports connected to the P10 LED display

Code

WiFi configurable P10 LED Screen

Arduino
1. Connect to arduino Wifi
2. Use any web explorer to open: 192.168.1.240/arduino
3. Go to Wifi console.
4. Use the command to update the price: “actualizar/10.23” will show a price of $10.23
/*
  Daniel Grajales Garcia. 1 de abril de 2017.
  BioHacking lab at Hangar
*/
#include <SPI.h>
#include <DMD2.h>
#include <fonts/Arial14.h>
#include <fonts/Droid_Sans_24.h>
#include <UnoWiFiDevEd.h>

#define DISPLAYS_WIDE 4
#define DISPLAYS_HIGH 4

SoftDMD dmd(DISPLAYS_WIDE,DISPLAYS_HIGH);

String valueInts = "00";
String valueCents = "00";
String valueStr = "$"; 
String myValueToDisplay = "x";


// the setup routine runs once when you press reset:
void setup() {
  dmd.setBrightness(250);
  dmd.selectFont(Droid_Sans_24);
//  dmd.selectFont(Arial14);
  dmd.begin();
  dmd.drawString(1, 4, myValueToDisplay);
  // Se inicializa la WiFi
  Wifi.begin();
  Wifi.println("REST server is up");
  myValueToDisplay = String(valueStr) + valueInts + "." + valueCents;
  Wifi.println(myValueToDisplay);

}

void loop() {
  myValueToDisplay = String(valueStr) + valueInts + "." + valueCents;

  dmd.drawString(1, 4, myValueToDisplay);
  if(Wifi.available()){
    String command = Wifi.readStringUntil('/');
    if (command == "actualizar") {
      Wifi.println("comando encontrado...");
      valueInts = Wifi.readStringUntil('.');
      valueCents = Wifi.readStringUntil('/');
      Wifi.println("Status: 200 OK\n");
      Wifi.print("El valor ahora es: ");
      Wifi.print(valueInts);
      Wifi.print(".");
      Wifi.println(valueCents);
      Wifi.print(EOL);    //char terminator
      dmd.begin();      //limpiar la pantalla
    }
  }
  delay(50);
}

Credits

dgrajales

dgrajales

0 projects • 2 followers

Comments