Yk04 reciver not working with arduino nano

i have a arduino nano on a soldered on to a circuit board with a Yk04 reciver and when i send click something on the remote nothing happens there is also a led attached that should turn on when i hit the button but its not, heres my code

#include <rm4.h>
static const int knablePin = 8;
static const int PinA = 4;
static const int PinB = 5;
static const int PinC = 6;
static const int PinD = 7  ;
int CheckLedPin = 12;

RM4 remote(PinA, PinB, PinC, PinD);

void setup() {
 // put your setup code here, to run once:
 pinMode(kEnablePin, OUTPUT);
 digitalWrite(kEnablePin, HIGH);
 pinMode(CheckLedPin, OUTPUT);
}

void loop() {
 // put your main code here, to run repeatedly:
 const int button_code = remote.buttonCode();
 Serial.println(button_code);
 if (button_code == 8) {
   digitalWrite(CheckLedPin, HIGH);
 }
}

im supplying 5v to the arduino nano from my computer.

CONNECTIONS:
Yk04 | Arduino nano
gnd -> gnd
Vc -> 5v
D0 -> D4
D1 -> D5
D3 -> D6
D4 -> D7
Vin -> D8

YK04 receiver: GitHub - YuriiSalimov/YK04_Module: [For Arduino] Library for working with a remote control sensors based on the YK04 driver.

Please post a schematic of your circuit.

Also please provide a link to the "Yk04" receiver, few people here really have time to Google the parts that posts mention. Maybe also the "rm4" in the code, not mentioned in the text..

Also please detail any testing (troubleshooting) you have done, or say none if there was none.

I've completed almost 1000 projects starting with not knowing the components. In a surprising large number of cases, I've found that I knew more about them than the designers did. But if you want to be petulant about it, goodbye.

For informed help, please read and follow the instructions in the "How to get the best out of the forum" post.

the post is clearer now hopefully

What troubleshooting have you done?

Just to cover all possible bases, did your project work before you soldered it?

it may because the power source, because the receiver requires 5v and im supplying 5v to the nano and connecting a receiver and led to it. thats really all i got

it did i did it on a bread board before soldering, can crappy soldering be the reason?

If it worked before soldering and it doesn't after soldering, you can see if unsoldering will bring it back to life.

hey im still trying to tackle this and i tried debuging i decided to print out the button_code (in the code above) and it only outputs 14 and does not change when i hit any button does anyone know what that means?

See reply #2.

Also if you want people to comment on new test code you have to post the sketch (do not edit the original post).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.