Go Down

Topic: interruptchain (using 433Mhzforarduino ThermoHygroReceiver AND rf-switch) (Read 620 times) previous topic - next topic

infantilo

Hi,
could anyone help me getting this together?
I'd like to use the ThermoHygroReceiver from <SensorReceiver.h>  (fuzzilogic 433MhzForArduino) and the .enableReceive from the <RCSwitch.h> (rf-switch library) together so i can receive both transmission.
Sadly i could not figure out how to use the <interrupchain.h> to trigger the mySwitch.enableReceive(0) function.

Would be great if anyone could help.
Thanks in advance

PaulS

Quote
I'd like to use the ThermoHygroReceiver from <SensorReceiver.h>

For what? What are you trying to receive data from?

Quote
and the .enableReceive from the <RCSwitch.h> (rf-switch library)

RC or RF? Again, for what? What are you trying to receive data from?

Quote
Sadly i could not figure out how to use the <interrupchain.h> to trigger the mySwitch.enableReceive(0) function.

You need to post some links. and describe what the project is all about. And some code.

infantilo

Thanks for reply!
Project goal: build an homesecurity / burglar alarm system based on:

  • TP-LINK wrt703n wireless router (with openwrt) (with arduino and usb loudspeaker)

  • arduino nano v3.0 (on wrt703n usb)

  • 433mhz transmitter/receiver (on arduino)

  • several door/window contacts, smoke sensor, ir motion detectors

  • sending email on alarm

  • playing audio on motion detection (dog sounds for burglary prevention)

  • receiving data from weatherstation

  • switching devices/light on/off triggered by alerts or web-interface




depends:
Steven Cogswell's SerialCommand.h
fuzzylogics 433MhzFor Arduino library AND/OR rf-switch library

i've ordered the following parts:




the arduinos part:
receive data from the 433mhz receiver, decode it and send the data to the wrt703n on the serial port.
The rf senders all are the old ones that have dipswitches/jumpers for homecode and id.
further the arduino shall send switch commands when receive commands on his serial port.


Problem:
when i use the fuzzylogic's library only, i can use its interrupchain.h like the following:
Code: [Select]

InterruptChain::addInterruptCallback(0, RemoteReceiver::interruptHandler);
InterruptChain::addInterruptCallback(0, NewRemoteReceiver::interruptHandler);
InterruptChain::addInterruptCallback(0, SensorReceiver::interruptHandler);


but as far as i know, this library can't handle my door contact senders (can't test it right now, they are still on the way).
So i'd like to use the rc-switch library function instead.



Go Up