Pages: [1]   Go Down
Author Topic: interruptchain (using 433Mhzforarduino ThermoHygroReceiver AND rf-switch)  (Read 510 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.


« Last Edit: November 09, 2012, 10:32:16 am by infantilo » Logged

Pages: [1]   Go Up
Jump to: