Aurel RX2 433.92Mhz noise filter
hello new here.
i programming noise filter receiver aurel rx2.
i tried take solution ir decoder noise made ??it impossible capture data.
so made small changes result still bad.
i had best results code there still lot of noise
i got for, debug , decoding weather stations, remote switch , etc..
i attach pictures of measured noise , noise signal in red circles.
i advise how improve filtering.
thanks reading.
sorry bad english.
i programming noise filter receiver aurel rx2.
i tried take solution ir decoder noise made ??it impossible capture data.
so made small changes result still bad.
i had best results code there still lot of noise
code: [select]
#define irpin_pin pind
#define irpin 6
#define maxpulse 5000
// our timing resolution should be, larger better
// more 'precise' - large , wont get
// accurate timing
#define resolution 20
// store
uint16_t pulses[300][2]; // pair high , low pulse
uint8_t currentpulse = 0; // index pulses we're storing
uint8_t ledpin = 13;
void setup(void) {
serial.begin(19200);
serial.println("ready decode 433.92mhz!");
}
void loop(void) {
uint16_t highpulse, lowpulse; // temporary storage timing
highpulse = lowpulse = 0; // start out no pulse length
while (irpin_pin & (1 << irpin)) {
// pin still high
highpulse++;
delaymicroseconds(resolution);
digitalwrite(ledpin,high);
if ((highpulse >= maxpulse) && (currentpulse != 0) && (currentpulse <= 299)) {
printpulses();
currentpulse=0;
return;
}
}
pulses[currentpulse][0] = highpulse;
// same above
while (! (irpin_pin & _bv(irpin))) {
// pin still low
lowpulse++;
delaymicroseconds(resolution);
digitalwrite(ledpin,low);
if ((lowpulse >= maxpulse) && (currentpulse != 0) && (currentpulse <= 299)) {
printpulses();
currentpulse=0;
return;
}
}
pulses[currentpulse][1] = lowpulse;
currentpulse++;
}
void printpulses(void) {
serial.println("\n\r\n\rreceived: \n\roff \ton");
for (uint8_t = 0; < currentpulse; i++) {
serial.print(pulses[i][0] * resolution, dec);
serial.print(" usec, ");
serial.print(pulses[i][1] * resolution, dec);
serial.println(" usec");
}
}i got for, debug , decoding weather stations, remote switch , etc..
i attach pictures of measured noise , noise signal in red circles.
i advise how improve filtering.
thanks reading.
sorry bad english.
what exact nature of signal trying extract? pictures don't enough resolution show it.
Arduino Forum > Using Arduino > Sensors > Aurel RX2 433.92Mhz noise filter
arduino
Comments
Post a Comment