taha_vs
Published © GPL3+

Scrolling Dots

Using Dot Matrix and Bluetooth to make a scrolling display.

IntermediateShowcase (no instructions)4,778
Scrolling Dots

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
dot matrix with max 7219 module
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fritzing

Story

Read more

Custom parts and enclosures

scrolling dots_pcb.jpg

Schematics

scrolling dots_bb.jpg

Code

scrolling_dots.ino

Arduino
/* >> by t.vajed  

MODULE.....UNO/NANO.....MEGA
VCC........+5V..........+5V
GND........GND..........GND
DIN........11...........51
CS (LOAD)..10...........10
CLK........13...........52

rx->2 , tx->3
*/

#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <HCMAX7219.h>
#include "SPI.h"

SoftwareSerial BTSerial(2,3); // RX | TX
char text[400]="READY\0", T[400]="READY\0";
byte Loopcounter;
int Position,i=0;
#define LOAD 10
HCMAX7219 HCMAX7219(LOAD);

void setup(){
  while(EEPROM.read(i)!='\0'){
  i++;
}
  BTSerial.begin(38400);  
}

void loop()
{
  
  // Keep reading from HC-05 and send to Arduino Serial Monitor  
if(BTSerial.available()){
  i=0;
  while (BTSerial.available()){
    text[i++]=(BTSerial.read());
    EEPROM.put(i-1,text[i-1]);
  }
  text[i]='\0';
  EEPROM.put(i,'\0');
}
  /* Clear the output buffer */
  HCMAX7219.Clear();
    for (int j=0; j<=i; j++)
    T[j]=EEPROM.read(j);
  /* SCROLL SOME TEXT 2 TIMES BEFORE MOVING ON */
    for(Position=0; Position <= 8*(i+3); Position++){
      HCMAX7219.printMatrix((T), Position);
      HCMAX7219.Refresh();
      delay(80);
    }
}

Credits

taha_vs

taha_vs

3 projects • 5 followers

Comments