Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
harsh5chal
Published © GPL3+

8x8 Dot Matrix max7219

In this project I use 8x8 matrix to display text or no. using arduino uno.

BeginnerFull instructions provided1,453
8x8 Dot Matrix max7219

Things used in this project

Story

Read more

Schematics

8x8 matrix led

Code

LCDemoMatrix.ino

C/C++
#include <SoftwareSerial.h>
String value;
int TxD = 11;
int RxD = 10;
int servoposition;
SoftwareSerial bluetooth(TxD, RxD);

void setup() {
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  Serial.begin(9600);       // start serial communication at 9600bps
  bluetooth.begin(9600);
}

void loop() {
  Serial.println(value);
 if (bluetooth.available())
   {
    value = bluetooth.readString();

    if (value == "all LED turn on"){
    digitalWrite(2, HIGH);
    digitalWrite(3, HIGH);  
      }

    if (value == "all LED turn off"){
      digitalWrite(2, LOW); 
      digitalWrite(3, LOW);       
      }

    if (value == "turn on Red LED"){
    digitalWrite(2, HIGH); 
      }

    if (value == "turn on green LED"){
      digitalWrite(3, HIGH);       
      }
      
    if (value == "turn off red LED"){
    digitalWrite(2, LOW); 
      }

    if (value == "turn off green LED"){
      digitalWrite(3, LOW);       
      }

 }

}

Credits

harsh5chal
6 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.