Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

[Simple RF L4 Receiver - 315MHz Latching Selector Type] Not
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

[Simple RF L4 Receiver - 315MHz Latching Selector Type] Not

by kylekam on Sat Jul 18, 2020 11:34 pm

Hello,

I'm using the "Simple RF L4 Receiver - 315MHz Latching Selector Type" with the "Keyfob 2-Button RF Remote Control - 315MHz" and the receiver does not seem to be responding to the keyfob presses. I've tried raising the receiver coil vertically and pressing the keyfob directly next to the receiver but it doesn't seem to work. I'm making connection through the breadboard from "LampVPath [12Packs] 170 Points Mini Small solderless breadboard for Arduino Proto Shield (6 Colors)". I'm also powering the receiver through the 5v channel of an Arduino Uno. All the parts are brand new.

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by kylekam on Sun Jul 19, 2020 4:47 am

I tested the key fob to see if it was the source of error by checking for interference with a radio and it seems to be emitting properly. So the issue is definitely with the receiver.

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by adafruit_support_carter on Tue Jul 21, 2020 11:12 am

Please post a photo of your actual setup showing how everything is connected.

adafruit_support_carter
 
Posts: 16912
Joined: Tue Nov 29, 2016 2:45 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by kylekam on Tue Jul 21, 2020 8:23 pm

Image
Image

Pins D0, D1, D2, and D3 are going to digital pin 5,4,3 and 2 respectively on the Arduino board.
The +5v is attached to the 5v pin on the Arduino. And GND is connected to the GND of the Arduino.

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by adafruit_support_carter on Tue Jul 21, 2020 9:24 pm

Thanks for the excellent photos. That all looks generally OK. For now, go ahead and remove that other 3 wire connector just in case it is somehow messing with the power.

Can you post the complete code listing for the sketch you are running to try and read the Dx pins from the receiver.

adafruit_support_carter
 
Posts: 16912
Joined: Tue Nov 29, 2016 2:45 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by kylekam on Tue Jul 21, 2020 10:43 pm

Code: Select all | TOGGLE FULL SIZE
#include <Servo.h>

const int LINEARACTUATORPIN = 9; //Linear actuator pin
const int receiver1Pin = 2;
const int receiver2Pin = 3;
const int receiver3Pin = 4;
const int receiver4Pin = 5;

int button1State = 0;
int button2State = 0;
int button3State = 0;
int button4State = 0;

Servo LINEARACTUATOR;

int linearValue = 1100;

void setup() {
  Serial.begin(9600);
  LINEARACTUATOR.attach(LINEARACTUATORPIN, 1050, 2000); // .attach(pin#, min, max)

  pinMode(receiver1Pin, INPUT); //pinMode(pin#, input/output)
  pinMode(receiver2Pin, INPUT);
  pinMode(receiver3Pin, INPUT);
  pinMode(receiver4Pin, INPUT);

  //LINEARACTUATOR.writeMicroseconds(linearValue);
  //LINEARACTUATOR.writeMicroseconds(1500);
}

void loop() {
  int button1State = digitalRead(receiver1Pin);
  int button2State = digitalRead(receiver2Pin);
  int button3State = digitalRead(receiver3Pin);
  int button4State = digitalRead(receiver4Pin);
  Serial.print(button1State);
  Serial.print(button2State);
  Serial.print(button3State);
  Serial.println(button4State);
  delay(1);

  //Moves the linear actuator according to receiver value
  /*
  if(button1State == HIGH) {
    linearValue = 1100;
    LINEARACTUATOR.writeMicroseconds(linearValue);
  }

  else if(button2State == HIGH) {
    linearValue = 1700;
    LINEARACTUATOR.writeMicroseconds(linearValue);
  }
  LINEARACTUATOR.writeMicroseconds(linearValue);
  */
 
}

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by adafruit_support_carter on Wed Jul 22, 2020 10:57 am

Is the red LED on the remote coming on when you press buttons?

Looks like that sketch prints button state once a second. So guessing you aren't seeing the prints change after pressing buttons on the remote?

Let's try another test. The VT pin on the receiver is the "valid transmission" pin. It will go high any time it sees a valid transmission from the remote, doesn't matter what button. Let's use that for a basic check. Wire the VT pin on the receiver to pin 6 on the UNO. Then run the following sketch:
Code: Select all | TOGGLE FULL SIZE
void setup() {
  Serial.begin(9600);
  while (!Serial);
  Serial.println("Remote Receiver Test.");

  pinMode(6, INPUT);
}

void loop() {
  if (digitalRead(6)) {
    Serial.println("VT Detected.");
    delay(100);
  }
}

and then try pressing buttons on the remote. See if you can get it to print "VT Detected."

adafruit_support_carter
 
Posts: 16912
Joined: Tue Nov 29, 2016 2:45 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by kylekam on Wed Jul 22, 2020 7:37 pm

The red led on the key fob is working but I'm not getting anything from the receiver when I press the buttons.

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by adafruit_support_carter on Thu Jul 23, 2020 10:33 am

And you are currently trying the VT pin test from above?

adafruit_support_carter
 
Posts: 16912
Joined: Tue Nov 29, 2016 2:45 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by kylekam on Thu Jul 23, 2020 10:54 am

Yes, and I'm using the code that you posted above.

kylekam
 
Posts: 6
Joined: Sat Jul 18, 2020 11:22 pm

Re: [Simple RF L4 Receiver - 315MHz Latching Selector Type]

by adafruit_support_carter on Thu Jul 23, 2020 11:40 am

OK, let's try a replacement receiver and see what happens. Run this same VT check when you get the new one to make sure it's OK.

Send an email to support@adafruit.com with a link to this thread and your order number and they can send you a new receiver module.

adafruit_support_carter
 
Posts: 16912
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.