Go Down

Topic: Ethernet Shield + RF 433 Mhz receiver (Read 3353 times) previous topic - next topic

ramesses

May 21, 2013, 02:33 pm Last Edit: May 24, 2013, 02:41 pm by ramesses Reason: 1
Hi there!
I'm working on weather station - indoor temperature, outdoor temperature and humidity (received from external RF 433 MHz sensor)  and then send all data to ThingSpeak or Xively (Cosm/Pachube).
I'm facing some freezes with Arduino Ethernet Shield and RF 433 Mhz receiver connected on the same Arduino. Everything works well and than suddenly (after 10 mins to few hours) it stop sending data to ThingSpeak :/ I have to restart Arduino to start working again.
I use this receiver connected to digital pin 2:


I suppose there is some interrupt conflict. I read here (http://arduino.cc/en/Reference/AttachInterrupt) that Ethernet Shield uses int.0 and int.1 on the pin 2 and 3. I'm using RemoteSensor - Sensor Receiver from this library https://bitbucket.org/fuzzillogic/433mhzforarduino/wiki/Home and there is also interrupt/communication on pin 3. Unfortunately I'm not able to change the communication pin of RF receiver in the code.
Can anyone please help me find where can I change RF receiver comm pin? Or change Ethernet Shield's comm pins?

Thanks

Arduino Uno, Arduino Uno R3, Arduino Mega 2560 R3

turgo

Hi,  I use the demo ThingSpeak script to log Dallas 1 wire temperatures every 15 seconds.  Almost daily, ThingSpeak stops recieving data.  Perhaps I have the same issue? 

ramesses

Hi turgo!
I was testing my Arduino with Ethernet Shield and DS18B20 sensor only with no problems (tested about 2 days - no freezes). All data were logged to ThingSpeak.
I realized some very short ThingSpeak's downs but Arduino logs again right after it was up. What library do you use? I use this one - http://milesburton.com/Main_Page?title=Dallas_Temperature_Control_Library.

My problem is combination of Ethernet Shield and 433 MHz RF receiver.
Arduino Uno, Arduino Uno R3, Arduino Mega 2560 R3

SurferTim

I don't think D3 is used by the ethernet shield/library. Have you tried bending D3 pin on the ethernet shield so it does not insert into D3 on the Arduino, then connect the receiver to D3 on the Arduino?

Can you provide a link to the 433Mhz receiver? Preferably one with a datasheet.

ramesses

#4
May 24, 2013, 03:06 pm Last Edit: May 24, 2013, 03:20 pm by ramesses Reason: 1
A mistake in my original post - receiver is not connected to D3 but D2 (I corrected it in my post).

The 433Mhz receiver works great if Ethernet Shield is not present. I can see received temp and humidity values in serial monitor.

I saw this table (http://arduino.cc/en/Reference/AttachInterrupt) so I thought Ethernet Shield uses D2 and D3:
Code: [Select]
Board       int.0 int.1 int.2 int.3 int.4 int.5
Uno, Ethernet 2 3
Mega2560 2 3 21 20 19 18
Leonardo 3 2 0 1 7


I figured out how to change the pin used by ThermoHydroReceiver example:
Code: [Select]

void setup() {
  Serial.begin(115200);

  // Init the receiver on interrupt pin 0 (digital pin 2).
  // Set the callback to function "showTempHumi", which is called
  // whenever valid sensor data has been received.
  SensorReceiver::init(0, showTempHumi);
}

SensorReceiver::init(0, showTempHumi);  <- Here change 0 to something else by the table above (depending on your Arduino)

I used the modification on Mega, but no luck. It seems Arduino stop working when RF signal is received while ethernet communication is in progress (sending data to ThingSpeak) = two interrupts in the same time?!
Arduino Uno, Arduino Uno R3, Arduino Mega 2560 R3

jackbell16

Hi everyone !
I'm joining this interesting topic. I want to use my Arduino to open my garage door remotely, with a webserver. I'm facing some problems with decoding the code my remote control, which works at 433 MHz. Which code for Arduino do you suggest me to read the value/code send from my actual remote control ?

mauried

How old is the garage door?
Most garage door openers use rolling code receivers for security.
You will find it very difficult to simulate with a Arduino.
You can do it by using the Arduino to simulate the button pressing of the garage door remote
but this requires the disassembly of the remote.


jackbell16

#7
Jul 13, 2013, 12:43 pm Last Edit: Jul 13, 2013, 03:41 pm by jackbell16 Reason: 1

How old is the garage door?
Most garage door openers use rolling code receivers for security.
You will find it very difficult to simulate with a Arduino.
You can do it by using the Arduino to simulate the button pressing of the garage door remote
but this requires the disassembly of the remote.




Hi,
thank you for your reply. I think the I'm not using a rolling code, but just a fixed code. The board of my garage door is this one:https://www.dropbox.com/s/z82bsc15tj88ubi/Foto%2013-07-13%2009%2028%2051.jpg

The board of the remote control is: https://www.dropbox.com/s/ycofb7f0egs4hfe/Foto%2013-07-13%2012%2038%2040.jpg

kitlog

hi i have a project regarding with temp sensor and humidity... i have DHT11 with its code connected with arduino. and its working properly.. my problem is i have to transmit the measured data using a UHF transceiver to my pc.. what do i need and what to do ?

PaulS

Quote
what do i need and what to do ?

You need to stop hijacking unrelated threads. You need to write some code.

Go Up