//Arduino POV Display int _[] = {0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0}; // space int A[] = {0,1,1,1,1, 1,0,1,0,0, 0,1,1,1,1}; int B[] = {1,1,1,1,1, 1,0,1,0,1, 0,1,0,1,0}; int C[] = {0,1,1,1,0, 1,0,0,0,1, 1,0,0,0,1}; int D[] = {1,1,1,1,1, 1,0,0,0,1, 0,1,1,1,0}; int E[] = {1,1,1,1,1, 1,0,1,0,1, 1,0,1,0,1}; int F[] = {1,1,1,1,1, 1,0,1,0,0, 1,0,1,0,0}; int G[] = {0,1,1,1,0, 1,0,1,0,1, 1,0,1,1,0}; int H[] = {1,1,1,1,1, 0,0,1,0,0, 1,1,1,1,1}; int I[] = {1,0,0,0,1, 1,1,1,1,1, 1,0,0,0,1}; int J[] = {1,0,0,0,0, 1,0,0,0,1, 1,1,1,1,1}; int K[] = {1,1,1,1,1, 0,0,1,0,0, 0,1,0,1,1}; int L[] = {1,1,1,1,1, 0,0,0,0,1, 0,0,0,0,1}; int M[] = {1,1,1,1,1, 0,1,1,0,0, 0,1,1,1,1}; int N[] = {0,1,1,1,1, 0,0,1,0,0, 0,0,1,1,1}; int O[] = {0,1,1,1,0, 1,0,0,0,1, 0,1,1,1,0}; int P[] = {1,1,1,1,1, 1,0,1,0,0, 0,1,0,0,0}; int Q[] = {0,1,1,1,1, 1,0,0,1,1, 0,1,1,1,1}; int R[] = {1,1,1,1,1, 1,0,1,0,0, 0,1,0,1,1}; int S[] = {0,1,0,0,1, 1,0,1,0,1, 1,0,0,1,0}; int T[] = {1,0,0,0,0, 1,1,1,1,1, 1,0,0,0,0}; int U[] = {1,1,1,1,1, 0,0,0,0,1, 1,1,1,1,1}; int V[] = {1,1,1,1,0, 0,0,0,0,1, 1,1,1,1,0}; int W[] = {1,1,1,1,0, 0,0,1,1,0, 1,1,1,1,0}; int X[] = {1,1,0,1,1, 0,0,1,0,0, 1,1,0,1,1}; int Y[] = {1,1,0,0,0, 0,1,1,1,1, 1,1,0,0,0}; int Z[] = {1,0,0,1,1, 1,0,1,0,1, 1,1,0,0,1}; int _0[] = {1,1,1,1,1, 1,0,0,0,1, 1,1,1,1,1}; //to display numbers use '_' because identifiers can only start with alphabet or '_' int _1[] = {0,0,0,0,0, 0,0,0,0,0, 1,1,1,1,1}; int _2[] = {1,0,1,1,1, 1,0,1,0,1, 1,1,1,0,1}; int _3[] = {1,0,0,0,1, 1,0,1,0,1, 1,1,1,1,1}; int _4[] = {1,1,1,0,0, 0,0,1,0,0, 1,1,1,1,1}; int _5[] = {1,1,1,0,1, 1,0,1,0,1, 1,0,1,1,1}; int _6[] = {1,1,1,1,1, 1,0,1,0,1, 1,0,1,1,1}; int _7[] = {1,0,0,0,0, 1,0,0,0,0, 1,1,1,1,1}; int _8[] = {1,1,1,1,1, 1,0,1,0,1, 1,1,1,1,1}; int _9[] = {1,1,1,0,1, 1,0,1,0,1, 1,1,1,1,1}; int letterSpace; int dotTime; unsigned long time1; int p; void setup() { // put your setup code here, to run once: pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, INPUT); // defining the space between the letters (ms) letterSpace =600 ; // defining the time dots appear (ms) dotTime = 350; } void printLetter(int letter[]) { int y; // printing the first y row of the letter for (y=2; y<7; y++) { digitalWrite(y, letter[y-2]); } delayMicroseconds(dotTime); // printing the second y row of the letter for (y=2; y<7; y++) { digitalWrite(y, letter[y+3]); } delayMicroseconds(dotTime); // printing the third y row of the letter for (y=2; y<7; y++) { digitalWrite(y, letter[y+8]); } delayMicroseconds(dotTime); // printing the space between the letters for (y=2; y<7; y++) { digitalWrite(y, 0); } delayMicroseconds(letterSpace); } void loop() { time1 = millis(); int p; p=digitalRead(7); // signal from hall effect sensor if(p==0&&time1<=15000) // displays the text in this block for first 15 sec { // you can print your text by modifing here printLetter(_); printLetter(_); printLetter(Y); printLetter(O); printLetter(U); printLetter(R); printLetter(_); printLetter(T); printLetter(E); printLetter(X); printLetter(T); printLetter(_1); // to display numbers use _(number) printLetter(_); printLetter(_); printLetter(_); } if(p==0&&time1>15000) // displays the text in this block for first next 15 sec { // you can print your text by modifing here printLetter(_); printLetter(_); printLetter(Y); printLetter(O); printLetter(U); printLetter(R); printLetter(_); printLetter(T); printLetter(E); printLetter(X); printLetter(T); printLetter(_2); // to display numbers use _(number) printLetter(_); printLetter(_); } }