Go Down

Topic: how could i send RC signals to my car ? (Read 1 time) previous topic - next topic

hey there i just startd on my project of making an automatic RC car :P its going to drive a given path and then stop basicly, and what i was looking at was the receiver of the car and the IC of the receiver is this one:
http://www.nxp.com/documents/data_sheet/HEF4515B_CNV.pdf

and basicly i would like to "fake" that a signal came in that it reacts to that "fake" signal but i have litlle/none information how to do this i have only read some blogs on this and so on :/

if u have other ideas on how to make the car autonymous please post below :D

best regars ClonedSwitch

cr0sh


hey there i just startd on my project of making an automatic RC car :P its going to drive a given path and then stop basicly, and what i was looking at was the receiver of the car and the IC of the receiver is this one:
http://www.nxp.com/documents/data_sheet/HEF4515B_CNV.pdf

and basicly i would like to "fake" that a signal came in that it reacts to that "fake" signal but i have litlle/none information how to do this i have only read some blogs on this and so on :/

if u have other ideas on how to make the car autonymous please post below :D

best regars ClonedSwitch


How about you post a clear and up-close picture of the receiver PCB; clear enough that we can -read- the information for ourselves? I just have some doubts that the receiver itself is going to be any kind of demux IC...that makes no sense at all.
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

okay i got a good update for u guys :D i connected the receiver to my arduino like this www.sparkfun.com/tutorials/348 just that i dropped connecting the 5V and GND because the receiver gets ground and power from the "main car circuit" :P and i started doing readings but i got values ranging from 0-12000 xD

u wanted pics ? :) sure ill post them right here:

http://s17.postimage.org/z9qjiogjj/photo_1.jpg
http://s13.postimage.org/yku9jgn13/photo_2.jpg
http://s17.postimage.org/lewudybi7/photo_3.jpg
http://s14.postimage.org/l5rgigoe9/photo_4.jpg
http://s16.postimage.org/bju7rbin9/photo_5.jpg

there u go :) hope u can help me out here :D

btw here is the code i used to read the pin
Code: [Select]

/*
RC PulseIn Serial Read out
By: Nick Poole
SparkFun Electronics
Date: 5
License: CC-BY SA 3.0 - Creative commons share-alike 3.0
use this code however you'd like, just keep this license and
attribute. Let me know if you make hugely, awesome, great changes.
*/

int ch1; // Here's where we'll keep our channel values
int ch2;
int ch3;

void setup() {

  pinMode(5, INPUT); // Set our input pins as such
  pinMode(6, INPUT);
  pinMode(7, INPUT);

  Serial.begin(9600); // Pour a bowl of Serial

}

void loop() {

  ch1 = pulseIn(5, HIGH, 25000); // Read the pulse width of
  ch2 = pulseIn(6, HIGH, 25000); // each channel
  ch3 = pulseIn(7, HIGH, 25000);

  Serial.print("Channel 1:"); // Print the value of
  Serial.println(ch1);        // each channel

  delay(100); // I put this here just to make the terminal
              // window happier
}

Jantje

always connect the grounds.
that may help your readings
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

this might sound noobish :P but how could i check what pin is ground ? :P

Jantje


just that i dropped connecting the 5V and GND because the receiver gets ground and power from the "main car circuit" :P

This makes it sound like you did not connect GND from arduino to the GND of the receiver to the GND of the "main car circuit".
If so; you have to have garbage in your readings.

Best regards
Jantje

PS at the risk of getting flamed: GND is the same as -
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

yea i know my english sucks and i had no idea what to do when i originaly posted lol, now that i got some more information and so on i can explain better :)

i got the receiver and hooked it up like so: www.sparkfun.com/tutorials/348 just that mine gets power from a battery therefore i did not connect GND(-) to the arduino and not the 5v either, and then someone told me to hook up GND but i need to know how to check whats GND and so on ? :P

jraskell

Gnd is, appropriately enough, labelled as Gnd on the Arduino.

In the Fritzing image in that Sparkfun, it is the black wire between the Arduino and receiver.

Arduino needs to have a common ground with any device it is interfacing with.

yes i know :P but idk what is GND on my receiver, did u take a look at my images ?

jraskell

See where the black wire in that image is going?  If it's connected to Gnd on the Arduino side, what do you think it's probably connected to on the receiver side?

yea but my receiver is not the samme as his :P take a look at the images if u want to...

jraskell


yea but my receiver is not the samme as his :P take a look at the images if u want to...


Your receiver may not be the same, but servos use a standard pinout arrangement that all receivers have to match.
The servo pinout puts 5v on the center pin, with signal and ground being the two outside pins.  This way, if you plug the servo in the wrong way, you aren't going to short anything out.  It just won't work properly.

If you are unsure of the orientation of the connector on your receiver, just try it both ways to see which works.  As long as you don't connect anything to that center pin, there's no risk of damaging your receiver or Arduino.  Every receiver I've used though puts the signal pins on the outside edge of the receiver.

Go Up