LED License Plate Frame Reprogramming – Software success

So, using Ken Sherriff’s IR Arduino Library I was able to whip up some code to successfully reprogram an LED License Plate frame!   It works pretty well and is pretty self explanatory.  Post a comment if you have any questions.

LEDFrameReprogram.pde

//  Automatic LED License Plate Frame Reprogrammer
//  IRremote library by Ken Sherriff

#include <IRremote.h>
IRsend irsend; //setup irlibrary

const int buttonpin = 12;
const int codearraylen = 4;  //how many characters in message

const unsigned long messagecode[codearraylen] = {0xFF40BF,0xFF22DD,0xFF18E7,0xFF7887}; //Message - Codes for P W N D

const unsigned long startcode[4] = {0xFF926D,0xFF12ED,0xFFB04F,0xFF629D}; //Codes for Edit, Enter, Clear, Y
const unsigned long endcode[1] = {0xFF12ED}; // Code for Enter to finish message
const int betweendelay = 100;

void setup()
{
 Serial.begin(9600);
}

void loop() {
 while (digitalRead(buttonpin) == HIGH){
 Serial.println("Running");
 // send initial setup codes - ie: Edit, Enter, Clear, Y
 for (int i = 0; i < 4; i++){
 irsend.sendNEC(startcode[i], 32);
 delay(betweendelay); // delay between individual codes
 }
 // send message codes
 for (int i = 0; i < codearraylen; i++) {
 irsend.sendNEC(messagecode[i], 32);
 delay(betweendelay);
 }
 // send finishing codes - ie: just Enter - might want more here later
 for (int i =0; i < 1; i++){
 irsend.sendNEC(endcode[i], 32);
 delay(betweendelay);
 }
 }
}

I sampled the remote’s buttons using the library’s receive function so I could use the values in the above code. The sampled codes are as follows:

IRLibrary_LED_Frame_Codes.txt

IRLibrary E-Plate Codes

Edit FF926D
Enter FF12ED
Shift FF50AF
CAP FF906F
Clear FFB04F
ON/OFF FF38C7
RUN FFF807

Insert FFD22D
<- FFD02F
-> FF10EF
INV FF28D7
SPD FFE817

A FFBA45
B FFFA05
C FF3AC5
D FF7887
E FF7A85
F FFB847
G FF1AE5
H FF58A7
I FFDA25
J FF9867
K FFD827
L FF9A65
M FF5AA5
N FF18E7
O FFC03F
P FF40BF
Q FFC23D
R FF807F
S FF02FD
T FF827D
U FF42BD
V FF00FF
W FF22DD
X FF609F
Y FF629D
Z FF20DF
! FFE01F
? FFA25D
# FFE21D
$ FFA05F

1 FF0AF5
2 FF8A75
3 FFCA35
4 FF8877
5 FFC837
6 FF48B7
7 FF4AB5
8 FF08F7
9 FFAA55
0 FFEA15

Hardware is consistent with my previous post. All that’s left is figure out how to amp up the IR LED output with a transistor (don’t expect more than a foot of range the way it is).

When I get that working I’ll etch it all onto a PCB.

Stay tuned.

Advertisements
This entry was posted in LED License Plate Frame, Projects, Unfinished. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s