Hi guys i have posted in this thread...
http://forum.arduino.cc/index.php?topic=151199.75
but AnalysIR can help me
AnalysIR:
OK
Lets assume it is exactly 100. (Did you restart the Arduino IDE or the PC after making the change?)So I have atached a screenshot of the signal you uploaded and automatically generated the 'C' code to send this signal using IRLib.
Try it out & post back how you get on. Don't forget to post the code you use.
(make sure you only send one signal at a time ....leave at least 15 seconds gap between signals being sent)
/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits
0 : RAW : : : 0
1 : RAW : : : 42
*/
// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit http://www.AnalysIR.com or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency
unsigned int Signal_0_0[] = {4350,4450,500,1700,500,600,500,1650,500,1700,500,550,550,550,500,1700,500,550,550,550,550,1650,500,550,550,550,500,1700,500,1650,550,550,500,1700,500,550,550,550,500,1700,500,1650,500,1700,500,1650,550,1650,500,1650,550,1650,500,1650,550,550,500,600,500,600,500,550,550,550,500,600,500,1650,550,550,500,1700,500,1650,500,1700,500,1650,550,550,500,600,500,550,550,1650,500,600,500,600,500,550,550,550,500,1700,500,1650,550}; //AnalysIR Batch Export - RAW
My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export - RAW
// AnalysIR IR Protocol: RAW, Key:
unsigned int Signal_1_1[] = {4400,4450,500,1650,550,550,500,1700,500,1650,550,550,500,600,500,1650,550,550,500,600,500,1650,550,550,500,600,500,1650,550,1650,500,600,500,1650,550,550,500,1700,500,1650,500,1700,500,1650,500,600,500,1650,550,1650,500,1650,550,550,500,600,500,600,500,550,550,1650,500,600,500,600,500,1650,500,1700,500,1650,500,600,500,600,500,550,550,550,550,550,500,600,500,550,550,550,500,1700,500,1650,550,1650,500,1650,550,1650,500}; //AnalysIR Batch Export - RAW
My_Sender.IRsendRaw::send(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export - RAW
// AnalysIR IR Protocol: RAW, Key:
i have tried this sketch:
/* Example program for from IRLib – an Arduino library for infrared encoding and decoding
* Version 1.3 January 2014
* Copyright 2014 by Chris Young http://cyborg5.com
* Based on original example sketch for IRremote library
* Version 0.11 September, 2009
* Copyright 2009 Ken Shirriff
* http://www.righto.com/
*/
#include <IRLib.h>
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency
unsigned int Signal_0_0[] = {4350,4450,500,1700,500,600,500,1650,500,1700,500,550,550,550,500,1700,500,550,550,550,550,1650,500,550,550,550,500,1700,500,1650,550,550,500,1700,500,550,550,550,500,1700,500,1650,500,1700,500,1650,550,1650,500,1650,550,1650,500,1650,550,550,500,600,500,600,500,550,550,550,500,600,500,1650,550,550,500,1700,500,1650,500,1700,500,1650,550,550,500,600,500,550,550,1650,500,600,500,600,500,550,550,550,500,1700,500,1650,550}; //AnalysIR Batch Export - RAW
unsigned int Signal_1_1[] = {4400,4450,500,1650,550,550,500,1700,500,1650,550,550,500,600,500,1650,550,550,500,600,500,1650,550,550,500,600,500,1650,550,1650,500,600,500,1650,550,550,500,1700,500,1650,500,1700,500,1650,500,600,500,1650,550,1650,500,1650,550,550,500,600,500,600,500,550,550,1650,500,600,500,600,500,1650,500,1700,500,1650,500,600,500,600,500,550,550,550,550,550,500,600,500,550,550,550,500,1700,500,1650,550,1650,500,1650,550,1650,500}; //AnalysIR Batch Export - RAW
IRsend My_Sender;
void setup()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read() != -1) {
//send a code every time a character is received from the serial port
//Sony DVD power A8BCA
My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export - RAW
delay(15000);
My_Sender.IRsendRaw::send(Signal_1_1, sizeof(Signal_1_1)/sizeof(int), khz); //AnalysIR Batch Export - RAW
Serial.println("sended");
}
}
but dosen't work...
IR LED is OK, tried with smartphone camera!
any suggest?
Thank you !