Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RC control test #164

Open
SaiSurya9999 opened this issue Mar 13, 2019 · 48 comments
Open

RC control test #164

SaiSurya9999 opened this issue Mar 13, 2019 · 48 comments

Comments

@SaiSurya9999
Copy link

I am unable to find the point to which i have to solder my audrino pins could you please help me to find to what points i should connect my forward backward left right in remote...??
WhatsApp Image 2019-03-13 at 8 30 17 PM
WhatsApp Image 2019-03-13 at 8 30 17 PM (1)

@SaiSurya9999
Copy link
Author

Please respond ASAP I have uploaded HD photos of my transmitter chip just need to know which points should we connect or solder for forward, backward, left , right functions..??
Thank you*

@VishalWrench
Copy link

VishalWrench commented Mar 13, 2019

I have found my rc car remote controller has tactile switches so i sorted out which pins of switch is connected to the board and used optocouplers (4N35) to couple different circuits i.e. arduino and controller .I have provided schematic of one switch just replicate same for remaining switches .Hope this will help u

IMG_20190313_221907
IMG_20190313_221941
IMG_20190308_165324
IMG_20190313_223313

@VishalWrench
Copy link

This is my arduino sketch ignore the comments (//)(italic in the code)

// assign pin num
int right_pin = 6;
int left_pin = 7;
int forward_pin = 10;
int reverse_pin = 9;
/int f1 = A2;
int re1 = A3;
int l1 = A4;
int r1 = A5;
/

// duration for output
int time = 50;
// initial command
int command = 0;

void setup() {
pinMode(right_pin, OUTPUT);
pinMode(left_pin, OUTPUT);
pinMode(forward_pin, OUTPUT);
pinMode(reverse_pin, OUTPUT);
/* pinMode(f1, OUTPUT);
pinMode(re1, OUTPUT);
pinMode(l1, OUTPUT);
pinMode(r1, OUTPUT);*/
digitalWrite(forward_pin, LOW);
digitalWrite(reverse_pin, LOW);
digitalWrite(right_pin, LOW);
digitalWrite(left_pin, LOW);
/digitalWrite(f1, LOW);
digitalWrite(re1, LOW);
digitalWrite(r1, LOW);
digitalWrite(l1, LOW);
/
Serial.begin(115200);
}

void loop() {
//receive command
if (Serial.available() > 0){
command = Serial.read();
}
else{
reset();
}
send_command(command,time);
}

void right(int time){
digitalWrite(right_pin, HIGH);
//digitalWrite(r1, HIGH);
delay(time);
// digitalWrite(right_pin, LOW);
//digitalWrite(r1, LOW);

}

void left(int time){
digitalWrite(left_pin, HIGH);
// digitalWrite(l1, HIGH);
delay(time);
// digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void forward(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
delay(time);
//digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
}

void reverse(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
}

void forward_right(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
digitalWrite(right_pin, HIGH);
//digitalWrite(r1, HIGH);
delay(time);
// digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
//digitalWrite(right_pin, LOW);
//digitalWrite(r1, LOW);
}

void reverse_right(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
digitalWrite(right_pin, HIGH);
//digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
//digitalWrite(right_pin, LOW);
//digitalWrite(l1, LOW);

}

void forward_left(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
digitalWrite(left_pin, HIGH);
// digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
//digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void reverse_left(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
digitalWrite(left_pin, HIGH);
//digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
//digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void reset(){
digitalWrite(right_pin, LOW);
digitalWrite(left_pin, LOW);
digitalWrite(forward_pin, LOW);
digitalWrite(reverse_pin, LOW);
/digitalWrite(l1, LOW);
digitalWrite(r1, LOW);
digitalWrite(re1, LOW);
digitalWrite(f1, LOW);
/
}

void send_command(int command, int time){
switch (command){

 //reset command
 case 0: reset(); break;

 // single command
 case 1: forward(time); break;
 case 2: reverse(time); break;
 case 3: right(time); break;
 case 4: left(time); break;

 //combination command
 case 6: forward_right(time); break;
 case 7: forward_left(time); break;
 case 8: reverse_right(time); break;
 case 9: reverse_left(time); break;

 default: Serial.print("Inalid Command\n");
}

}

@MyFirstRoboticProject
Copy link

MyFirstRoboticProject commented Mar 13, 2019

I solved this issue by removing the buttons and soldering the wires on to the circular middle part. Keep it in mind that the circular middle part and the surrounding area shouldn't be in contact and should be electrically isolated. There should be a tape applied on the buttons. Find it on the board and you have to remove it to take the buttons off the board. Good luck!

@SaiSurya9999
Copy link
Author

Did you keep batteries in the remote or audrino is sending power through pins...???

@MyFirstRoboticProject
Copy link

MyFirstRoboticProject commented Mar 14, 2019 via email

@SaiSurya9999
Copy link
Author

@MyFirstRoboticProject Could you provide pics of the RC car and your remote circuit so that i can understand clearly please...!!!

@SaiSurya9999
Copy link
Author

I have found my rc car remote controller has tactile switches so i sorted out which pins of switch is connected to the board and used optocouplers (4N35) to couple different circuits i.e. arduino and controller .I have provided schematic of one switch just replicate same for remaining switches .Hope this will help u

IMG_20190313_221907
IMG_20190313_221941
IMG_20190308_165324
IMG_20190313_223313

Very much helpful Thank you so much...!!

@SaiSurya9999
Copy link
Author

This is my arduino sketch ignore the comments (//)(italic in the code)

// assign pin num
int right_pin = 6;
int left_pin = 7;
int forward_pin = 10;
int reverse_pin = 9;
/int f1 = A2; int re1 = A3; int l1 = A4; int r1 = A5;/

// duration for output
int time = 50;
// initial command
int command = 0;

void setup() {
pinMode(right_pin, OUTPUT);
pinMode(left_pin, OUTPUT);
pinMode(forward_pin, OUTPUT);
pinMode(reverse_pin, OUTPUT);
/* pinMode(f1, OUTPUT);
pinMode(re1, OUTPUT);
pinMode(l1, OUTPUT);
pinMode(r1, OUTPUT);*/
digitalWrite(forward_pin, LOW);
digitalWrite(reverse_pin, LOW);
digitalWrite(right_pin, LOW);
digitalWrite(left_pin, LOW);
/digitalWrite(f1, LOW); digitalWrite(re1, LOW); digitalWrite(r1, LOW); digitalWrite(l1, LOW);/
Serial.begin(115200);
}

void loop() {
//receive command
if (Serial.available() > 0){
command = Serial.read();
}
else{
reset();
}
send_command(command,time);
}

void right(int time){
digitalWrite(right_pin, HIGH);
//digitalWrite(r1, HIGH);
delay(time);
// digitalWrite(right_pin, LOW);
//digitalWrite(r1, LOW);

}

void left(int time){
digitalWrite(left_pin, HIGH);
// digitalWrite(l1, HIGH);
delay(time);
// digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void forward(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
delay(time);
//digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
}

void reverse(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
}

void forward_right(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
digitalWrite(right_pin, HIGH);
//digitalWrite(r1, HIGH);
delay(time);
// digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
//digitalWrite(right_pin, LOW);
//digitalWrite(r1, LOW);
}

void reverse_right(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
digitalWrite(right_pin, HIGH);
//digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
//digitalWrite(right_pin, LOW);
//digitalWrite(l1, LOW);

}

void forward_left(int time){
digitalWrite(forward_pin, HIGH);
//digitalWrite(f1, HIGH);
digitalWrite(left_pin, HIGH);
// digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(forward_pin, LOW);
//digitalWrite(f1, LOW);
//digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void reverse_left(int time){
digitalWrite(reverse_pin, HIGH);
//digitalWrite(re1, HIGH);
digitalWrite(left_pin, HIGH);
//digitalWrite(l1, HIGH);
delay(time);
//digitalWrite(reverse_pin, LOW);
//digitalWrite(re1, LOW);
//digitalWrite(left_pin, LOW);
//digitalWrite(l1, LOW);
}

void reset(){
digitalWrite(right_pin, LOW);
digitalWrite(left_pin, LOW);
digitalWrite(forward_pin, LOW);
digitalWrite(reverse_pin, LOW);
/digitalWrite(l1, LOW); digitalWrite(r1, LOW); digitalWrite(re1, LOW); digitalWrite(f1, LOW);/
}

void send_command(int command, int time){
switch (command){

 //reset command
 case 0: reset(); break;

 // single command
 case 1: forward(time); break;
 case 2: reverse(time); break;
 case 3: right(time); break;
 case 4: left(time); break;

 //combination command
 case 6: forward_right(time); break;
 case 7: forward_left(time); break;
 case 8: reverse_right(time); break;
 case 9: reverse_left(time); break;

 default: Serial.print("Inalid Command\n");
}

}

Could you please provide me the pics of audrino and breadboard clearly for one function forward so that i could do better..

@VishalWrench
Copy link

this is schematic of my circuit. just ignore those comments and extra pins (f1,r1 ....) connect the circuit and burn the arduino sketch into uno and run rc_control_test.py. It will work

IMG_20190319_111852

@SaiSurya9999
Copy link
Author

Thank you so much i have sorted out everything with your help..!!!
Mine is working fine.... 🥇

@Siraj95Abudaber
Copy link

Hi @SaiSurya9999
could you please send me your collected data file ?
i tried every thing and i can't get the accuracy of neural network over 60% , did you face this problem to if so how did you solve it?
thank you in advance

@arunph
Copy link

arunph commented Apr 10, 2019

Hi @SaiSurya9999 plz help me out with the connection pic of ur rc.since I m having the same RC control

@arunph
Copy link

arunph commented Apr 12, 2019

[email protected]

@arunph
Copy link

arunph commented Apr 12, 2019

Tqs

@hamuchiwa hamuchiwa mentioned this issue Apr 12, 2019
@arunph
Copy link

arunph commented Apr 21, 2019

No I didn't got

@codeskul
Copy link

I have used octocupler for push button switch in my project but issue is it take only reverse and left please help me it's urgent

@arunph
Copy link

arunph commented Apr 25, 2019 via email

@codeskul
Copy link

IMG_20190425_084013
15561618227111884990849802617994
Uploading 15561618497967758446630844155180.jpg…

@arunph
Copy link

arunph commented Apr 25, 2019 via email

@codeskul
Copy link

I will send you whole image of my circuit, i have one question that it require any registers between octocupler and push button of remote ?

@arunph
Copy link

arunph commented Apr 25, 2019 via email

@codeskul
Copy link

IMG_20190425_152651
IMG_20190425_152706

@codeskul
Copy link

codeskul commented Apr 25, 2019

It done successfully thank you very much

@arunph
Copy link

arunph commented Apr 25, 2019 via email

@arunph
Copy link

arunph commented Apr 25, 2019

Hi @SaiSurya9999 plz help me out with the connection pic of ur rc.since I m having the same RC control

Hi..Did you got this?

you can refer the code skull posted images for final working circuit diagram

@nandhukrishnan
Copy link

Hi @SaiSurya9999 plz help me out with the connection pic of ur rc.since I m having the same RC control

Hi..Did you got this?

you can refer the code skull posted images for final working circuit diagram

I am unable to find the point to which i have to solder my audrino pins could you please help me to find to what points i should connect my forward backward left right in remote...??
WhatsApp Image 2019-03-13 at 8 30 17 PM
WhatsApp Image 2019-03-13 at 8 30 17 PM (1)

But I didn't understand which pins to solder on this board? This board is exactly same as mine
. Plz help me
@arunph @codeskul @SaiSurya9999

@nandhukrishnan
Copy link

Hi @SaiSurya9999 plz help me out with the connection pic of ur rc.since I m having the same RC control

Hi..Did you got this?

you can refer the code skull posted images for final working circuit diagram

I am unable to find the point to which i have to solder my audrino pins could you please help me to find to what points i should connect my forward backward left right in remote...??
WhatsApp Image 2019-03-13 at 8 30 17 PM
WhatsApp Image 2019-03-13 at 8 30 17 PM (1)

But I didn't understand which pins to solder on this board? This board is exactly same as mine . Plz help me @arunph @codeskul @SaiSurya9999

20190428_140149
Yeahhh..!!! I got it.

@arunph
Copy link

arunph commented Apr 28, 2019 via email

@arunph
Copy link

arunph commented Apr 29, 2019

Hi @SaiSurya9999 plz help me out with the connection pic of ur rc.since I m having the same RC control

Hi..Did you got this?

you can refer the code skull posted images for final working circuit diagram

I am unable to find the point to which i have to solder my audrino pins could you please help me to find to what points i should connect my forward backward left right in remote...??
WhatsApp Image 2019-03-13 at 8 30 17 PM
WhatsApp Image 2019-03-13 at 8 30 17 PM (1)

But I didn't understand which pins to solder on this board? This board is exactly same as mine . Plz help me @arunph @codeskul @SaiSurya9999

20190428_140149
Yeahhh..!!! I got it.

Is the car running using your keyboard.and how did you made it.can u send the circuit connection pic of it

@arunph
Copy link

arunph commented Apr 29, 2019

It done successfully thank you very much

hey its urgent can you help me out.when i connect wire to the aurdino GND car start moving automatically without pressing of arrow keys in the keyboard.

@nandhukrishnan
Copy link

nandhukrishnan commented Apr 30, 2019

It done successfully thank you very much

hey its urgent can you help me out.when i connect wire to the aurdino GND car start moving automatically without pressing of arrow keys in the keyboard.

@arunph I also had the same problem. But it was due to the arduino program. You just run the code above by @VishalWrench . Mine is working fine now 😊

20190430_230851
20190430_230859

@arunph
Copy link

arunph commented May 2, 2019

Thank you

@arunph
Copy link

arunph commented May 7, 2019

hey anyone finished this project.plz help me out with steps

@145shahzad
Copy link

Capture
i'm having this error when i run rc_control_test....i have also coneccted arduino with pc and car's remote.....can anyone help??

@arunph
Copy link

arunph commented Jun 2, 2019

Kindly change 'dev/tty.usbmodem' with ur arduino port name like com5,etc.just once go through ur arduino IDE .Then go to tools,there u will see port option.just check on that option.which port ur ardunio is using like com3,com4,etc.then that same port name should be mentioned in that line by removing this dev/try.usbmodem1421.

@145shahzad
Copy link

145shahzad commented Jun 2, 2019 via email

@arunph
Copy link

arunph commented Jun 3, 2019

Can u send snapshot of ur connection from breadboard to arduino

@harshithdayananda
Copy link

harshithdayananda commented Jun 6, 2019

@nandhukrishnan i need your help. can you mail me at [email protected]?
@arunph have you finished the project? need your guidance.

@145shahzad
Copy link

I have a issue......mine is the same controller as @SaiSurya9999 .....but when i solder all the wires it only moves in Forward left , forward right, reverse left and reverse right.......it shows no actions on forward, reverse, left and right.......i have used 4N35 and arduino mega

@145shahzad
Copy link

145shahzad commented Jun 7, 2019 via email

@145shahzad
Copy link

145shahzad commented Jun 9, 2019 via email

@arunph
Copy link

arunph commented Jun 10, 2019 via email

@BonthuAI
Copy link

BonthuAI commented Aug 30, 2019

Hi All
can you please let me know

  1. whether you disconnected the batteries of remote?, I have RC remote with 12V battery - so need some clarification
  2. has anyone done this similar one using raspberry PI ?

Appreciate your quick reply

thank you
Srini

@arunph
Copy link

arunph commented Sep 3, 2019

no,don't remove the battery of remote

@BonthuAI
Copy link

BonthuAI commented Sep 3, 2019

Thanks Arun,

however, The images posted by code Skull doesn't have batteries connected to RC circuit board
Am I missing anything ?

(Typo in my earlier post, read it is 9V instead of 12V)

Also I am looking for some inputs for the same task for Raspberry instead of Arduino

Regards
Srinivas B

@BonthuAI
Copy link

BonthuAI commented Sep 5, 2019

thanks to the participants of this thread
with the help of this thread, we successfully completed the similar task using Raspberry pi 4

@maazmmd
Copy link

maazmmd commented Jan 31, 2020

It done successfully thank you very much

hey its urgent can you help me out.when i connect wire to the aurdino GND car start moving automatically without pressing of arrow keys in the keyboard.

@arunph I also had the same problem. But it was due to the arduino program. You just run the code above by @VishalWrench . Mine is working fine now 😊

20190430_230851
20190430_230859

Hey @nandhukrishnan could you please tell me what is the black IC that is connected? as I was unable to co-relate that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests