Used IRRecvDemo to get the RC6 codes for the Philips DVP3142
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
* Developed for Art Installation "Thor"
|
* Developed for Art Installation "Thor"
|
||||||
* Code written by Joe Foley <foley@ru.is>
|
* Code written by Joe Foley <foley@ru.is>
|
||||||
* on 2013-09-08
|
* on 2013-09-08
|
||||||
* !!!WARNING: THIS CODE DOES NOT WORK!!!
|
*
|
||||||
*
|
*
|
||||||
* Requires libraries:
|
* Requires libraries:
|
||||||
* Arduino-IRremote https://github.com/shirriff/Arduino-IRremote
|
* Arduino-IRremote https://github.com/shirriff/Arduino-IRremote
|
||||||
* Instructions http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html
|
* Instructions http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html
|
||||||
*
|
*
|
||||||
* IR Remote codes
|
* IR Remote codes from IRrecvDemo
|
||||||
* http://lirc.sourceforge.net/remotes/philips/DVP-5982
|
*
|
||||||
*
|
*
|
||||||
* Details on the Philips RC6 coding
|
* Details on the Philips RC6 coding
|
||||||
* http://www.pcbheaven.com/userpages/The_Philips_RC6_Protocol/
|
* http://www.pcbheaven.com/userpages/The_Philips_RC6_Protocol/
|
||||||
@@ -26,7 +26,7 @@ int pinLED=13; // The heartbeat LED on the board
|
|||||||
|
|
||||||
int heartbeat=0;
|
int heartbeat=0;
|
||||||
int secs;
|
int secs;
|
||||||
int playtime= 6*60+9; // set here ypur DVD title playtime in sec leave a little extra
|
int playtime= 10; // set here ypur DVD title playtime in sec leave a little extra
|
||||||
//int playtime= 10; // testing
|
//int playtime= 10; // testing
|
||||||
|
|
||||||
IRsend irsend;
|
IRsend irsend;
|
||||||
@@ -39,7 +39,6 @@ void setup() {
|
|||||||
Serial.println("Panasonic DVD DVP-3142/12 Synchronizer $Rev$");
|
Serial.println("Panasonic DVD DVP-3142/12 Synchronizer $Rev$");
|
||||||
Serial.println("For installation \"Thor\"");
|
Serial.println("For installation \"Thor\"");
|
||||||
Serial.println("Code by Joe Foley <foley@ru.is>");
|
Serial.println("Code by Joe Foley <foley@ru.is>");
|
||||||
Serial.println("!!!WARNING: THIS CODE DOES NOT WORK!!!");
|
|
||||||
Serial.println("$URL$");
|
Serial.println("$URL$");
|
||||||
Serial.println("$Id$");
|
Serial.println("$Id$");
|
||||||
Serial.print("Playtime: ");
|
Serial.print("Playtime: ");
|
||||||
@@ -63,9 +62,11 @@ void setup() {
|
|||||||
void loop() {
|
void loop() {
|
||||||
Serial.println("Sync");
|
Serial.println("Sync");
|
||||||
send_previous();
|
send_previous();
|
||||||
waitsec(2);
|
//waitsec(2);
|
||||||
|
// Don't send play because previous automatically starts it
|
||||||
|
// If we hit play it will merely pause it.
|
||||||
|
//send_play();
|
||||||
|
|
||||||
send_play();
|
|
||||||
for(int t = 0; t < playtime; t++) {
|
for(int t = 0; t < playtime; t++) {
|
||||||
// This will not give us perfect 1 second timing
|
// This will not give us perfect 1 second timing
|
||||||
// but it is good enough for most video applications
|
// but it is good enough for most video applications
|
||||||
@@ -107,26 +108,26 @@ void waitsec(int sec) {
|
|||||||
void send_stop() {
|
void send_stop() {
|
||||||
// First comes the pre-data bits, then the command code
|
// First comes the pre-data bits, then the command code
|
||||||
Serial.println(" stop");
|
Serial.println(" stop");
|
||||||
irsend.sendNEC(0xA25D28D7,32);
|
irsend.sendNEC(0x10431,20);
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
void send_play() {
|
void send_play() {
|
||||||
// First comes the pre-data bits, then the command code
|
// First comes the pre-data bits, then the command code
|
||||||
Serial.println(" play");
|
Serial.println(" play");
|
||||||
irsend.sendNEC(0xA25DA857,32);
|
irsend.sendRC6(0x1042C,20);
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
void send_pause() {
|
void send_pause() {
|
||||||
// First comes the pre-data bits, then the command code
|
// First comes the pre-data bits, then the command code
|
||||||
Serial.println(" pause");
|
Serial.println(" pause");
|
||||||
irsend.sendRC6(0xEFD3, 16);
|
irsend.sendRC6(0x1042C,20);
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
void send_previous() {
|
void send_previous() {
|
||||||
// First comes the pre-data bits, then the command code
|
// First comes the pre-data bits, then the command code
|
||||||
Serial.println(" previous");
|
Serial.println(" previous");
|
||||||
irsend.sendNEC(0xA25DC43B, 32);
|
irsend.sendRC6(0x10421, 20);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user