A little doubt about the signal I'm receiving
Posted: Tue Mar 20, 2018 2:31 pm
Hello!
I'm doing some tests with the sketch provided on the following post: https://www.analysir.com/blog/2014/03/1 ... s-arduino/
I have two signals that I received and stored:
Springer AC ON signal:
PHILIPS television ON/OFF signal:
Just looking to these signals, is possible to realize if there's something wrong with my receptor?
I'm not sure, I've written the following sketch to send these signals and it's not working:
I did read a lot of topics here about the right circuits to get a better range for the IR emitter. I'll make this new circuit and try to test transmission again, but would be nice to know if I'm doing the right things so far.
Thanks!
I'm doing some tests with the sketch provided on the following post: https://www.analysir.com/blog/2014/03/1 ... s-arduino/
I have two signals that I received and stored:
Springer AC ON signal:
Code: Select all
{9032, -4476, 580, -572, 556, -600, 556, -576, 576, -1648, 560, -1648, 580, -572, 556, -600, 556, -596, 556, -576, 576, -576, 556, -600, 552, -1648, 556, -600, 556, -600, 556, -572, 552, -600, 556, -600, 556, -596, 556, -1648, 556, -600, 556, -572, 580, -576, 556, -596, 556, -576, 580, -572, 576, -576, 560, -596, 556, -572, 580, -1648, 560, -572, 580, -1648, 556, -1672, 560, -572, 580, -572, 556, -600, 556, -596, 556, -576, 552, -600, 556, -576, 576, -576, 580, -572, 556, -1652, 580, -572, 552, -604, 552, -1652, 580, -1648, 556, -596, 556, -576, 576, -10100, 8980, -4504, 556, -1672, 560, -572, 580, -576, 552, -600, 556, -576, 576, -576, 552, -1652, 580, -576, 576, -1648, 560, -1648, 580, -1648, 556, -596, 560, -572, 580, -1648, 556, -600, 556, -576, 576, -576, 552, -600, 556, -576, 576, -1648, 556, -600, 556, -576, 576, -576, 556, -600, 552, -600, 556, -572, 556, -600, 556, -596, 556, -576, 552, -600, 556, -596, 556, -576, 580, -572, 556, -600, 556, -576, 576, -1648, 556, -1648, 584, -572, 552, -604, 552, -600, 556, -576, 576, -576, 552, -600, 556, -576, 580, -572, 552, -604, 552, -580, 576, -572, 556}
Code: Select all
{2628, -912, 416, -912, 420, -496, 392, -496, 392, -900, 860, -504, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 392, -496, 836, -496, 392, -912, 420, -496, 392, -17524, 2632, -908, 416, -916, 416, -496, 392, -500, 388, -900, 864, -500, 392, -476, 412, -472, 416, -472, 416, -472, 416, -472, 416, -472, 416, -472, 416, -472, 416, -496, 392, -496, 392, -496, 836, -496, 416, -892, 440, -472, 412}
I'm not sure, I've written the following sketch to send these signals and it's not working:
Code: Select all
#include <IRremote.h>
//Ommited the IR arrays.
IRsend irsend;
char PIN_BUTTON = 51;
void sendRAW_Flash(const unsigned int * signalArray, unsigned int signalLength, unsigned char carrierFreq) {
irsend.enableIROut(carrierFreq);
for(unsigned int i = 0; i < signalLength; i++) {
if (i & 1) {
irsend.space(pgm_read_word_near(&signalArray[i]));
} else {
irsend.mark(pgm_read_word_near(&signalArray[i]));
}
}
irsend.space(1);
}
void setup() {
Serial.begin(115200);
pinMode(PIN_BUTTON, INPUT);
}
void loop() {
unsigned int botao1 = digitalRead(PIN_BUTTON);
if (botao1) {
Serial.println("Starting IR transmission");
sendRAW_Flash(AC_irSignal1, sizeof(AC_irSignal1), 38);
delay(5000);
}
}
Thanks!