SmartPhone Controlled Led Matrix

SmartPhone Controlled Led Matrix

Hi, My name is Rohan Barnwal and in this project, I have taught you how to control led matrix with your smartphone.

  • 1,236 views
  • 2 comments
  • 8 respects

Components and supplies

Apps and online services

About this project

-:How To Control Led Matrix With SmartPhone:-

Hi everyone, my name is Rohan Barnwal and in this project, I taught that how to control led matrix with your smartphone it's very easy to make you need

1.Led matrix of 8x8 which should be connected with MAX7219 Driver

2.HC-05 Module

3. Arduino Uno Board

4. Smartphone

If you are not able to understand you can understand by watching our video on YouTube:-


How to control led matrix with your smartphone


Code

CodeArduino
#include <LedControl.h>

int DIN = 12;
int CS = 10;
int CLK =  11;


int row=0;
int col=0;
int temp=0;
int data=0;

LedControl lc=LedControl(DIN,CLK,CS,1);

void setup()
{
 lc.shutdown(0,false);       
 lc.setIntensity(0,5);
 lc.clearDisplay(0);
 Serial.begin(9600);
}




void loop()
{ 
   if(Serial.available() > 0)      
   {
      data = Serial.read();// it returns ascii value if we send one in the phone                
      if(data < 96)
      {
       if(temp==0)
       {
        row=data-48;
        temp=1;
       }
       else
       col=data-48;
      }
    
       else if(data=='n')
       {
         lc.setLed(0,row,col,true);
        Serial.println('n');
       Serial.println(row);
       Serial.println(col);
         temp=0;
       }
       else if(data=='f')
       {
         lc.setLed(0,row,col,false);
         Serial.println('f');
         Serial.println(row);
         Serial.println(col);
         temp=0;
       }

       else if(data=='r')
       lc.clearDisplay(0);
    }

    
}

Schematics

Connection
Arduino 8x8 led matrix circuit diagram qtjmsd394n

Comments

Similar projects you might like

Analog Clock with LED Matrix and Arduino

Project tutorial by LAGSILVA

  • 18,234 views
  • 17 comments
  • 66 respects

Amazing Binary Clock using LED Matrix Module

Project in progress by LAGSILVA

  • 12,365 views
  • 13 comments
  • 63 respects

Digital And Binary Clock With Two LED Matrix And RTC

Project tutorial by LAGSILVA

  • 13,788 views
  • 42 comments
  • 47 respects

Simple Clock with LED Matrix

Project tutorial by LAGSILVA

  • 8,491 views
  • 13 comments
  • 25 respects

Tiny Calendar and Clock Featuring Moon Phase in a LED Matrix

Project in progress by LAGSILVA

  • 7,979 views
  • 7 comments
  • 38 respects
Add projectSign up / Login