This hack allows you to display messages to a standard Amplus LED Message Display from Clas Ohlsson. The display is controlled by a remote control and via a RJ14 cable plugged into the screen. Serial data is transmitted from cable to the screen. The LED Message display expects the message you pass to it to be encrypted with a check sum. With the help of Rasmus blog post I could generate this checksum in Arduino. I turned his Perl code into Arduino code that you can see below.

-
String letters = " !’#$%&’()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[/]^_`abcdefghijklmnopqrstuvwxyz{|}~";
-
-
int newstr = 32 + letters.indexOf(thisString);
-
-
return newstr;
-
}
-
-
-
byte checksum = 0×74;
-
int i;
-
-
for(i = 0;i < inputString.length();i++) {
-
int asciiChar = stringToInt(currentChar);
-
checksum = checksum ^ asciiChar;
-
}
-
-
hexStr.toUpperCase();
-
-
return message;
-
-
}
-
-
Serial.print(mess);







