Go Down

Topic: RF433 MHz transmitter does not send (Read 1 time) previous topic - next topic

papillon

Hi everybody,

I am trying to get a 433 MHz transmitter to send commands to activate and deactivate RC power outlets.
I am using the RCswitch library with an arduino Uno (http://code.google.com/p/rc-switch/).

The receiver works fine, I can receive signals send via the remote control that came with the power sockets. However, the transmitter does not work yet.

Receiver module:  https://www.sparkfun.com/products/10532
Transmitter module: https://www.sparkfun.com/products/10534

Receiver Code (receive example from the rcswitch library...):

Code: [Select]

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on inerrupt 0 => that is pin #2
}

void loop() {
  if (mySwitch.available()) {
    output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
    mySwitch.resetAvailable();
  }
}


Transmitter Code:

Code: [Select]
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

int led = 11;

void setup() {

  Serial.begin(4800);
 
  Serial.println("Setup");
  // Transmitter is connected to Arduino Pin #10 
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
   mySwitch.setPulseLength(360);
 
  // Optional set protocol (default is 1, will work for most outlets)
  // mySwitch.setProtocol(2);
 
  // Optional set number of transmission repetitions.
   mySwitch.setRepeatTransmit(15);
 
 
 
  pinMode(led, OUTPUT);
}

void loop() {

 
  // STECKDOSE: ELRO, A

  /* Same switch as above, but using binary code */
  mySwitch.send("010001000000010101010001");
  digitalWrite(led, HIGH);
  Serial.println("ON");
  delay(1000);
 
  mySwitch.send("010001000000010101010100");
  digitalWrite(led, LOW);
  Serial.println("OFF");
  delay(1000);

}


Has anybody similar problems with the transmitter? Can anybody help me out?

Any help is greatly appreciated!

Papillon

PaulS

I can't help you, but:
Code: [Select]
  /* Same switch as above, but using binary code */
  mySwitch.send("010001000000010101010001");

That is NOT sending binary data.

i want to use one Arduino hooked up to an Quasar AM transmitter and it has to communicate with an AM Receiver. I want to control LEDs wirelessly using this cheap method, Please help

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy