Pages: [1]   Go Down
Author Topic: how could i send RC signals to my car ?  (Read 1505 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey there i just startd on my project of making an automatic RC car smiley-razz 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 smiley-grin

best regars ClonedSwitch
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 5551
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hey there i just startd on my project of making an automatic RC car smiley-razz 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 smiley-grin

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.
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

okay i got a good update for u guys smiley-grin 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" smiley-razz and i started doing readings but i got values ranging from 0-12000 xD

u wanted pics ? smiley 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 smiley hope u can help me out here smiley-grin

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

/*
 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
}
Logged

Belgium
Online Online
Edison Member
*
Karma: 68
Posts: 1893
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

always connect the grounds.
that may help your readings
Best regards
Jantje
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this might sound noobish smiley-razz but how could i check what pin is ground ? smiley-razz
Logged

Belgium
Online Online
Edison Member
*
Karma: 68
Posts: 1893
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

just that i dropped connecting the 5V and GND because the receiver gets ground and power from the "main car circuit" smiley-razz
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 -
Logged

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 -

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

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 ? smiley-razz
Logged

New Hampshire
Offline Offline
God Member
*****
Karma: 17
Posts: 781
There are 10 kinds of people, those who know binary, and those who don't.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes i know smiley-razz but idk what is GND on my receiver, did u take a look at my images ?
Logged

New Hampshire
Offline Offline
God Member
*****
Karma: 17
Posts: 781
There are 10 kinds of people, those who know binary, and those who don't.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yea but my receiver is not the samme as his smiley-razz take a look at the images if u want to...
Logged

New Hampshire
Offline Offline
God Member
*****
Karma: 17
Posts: 781
There are 10 kinds of people, those who know binary, and those who don't.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

yea but my receiver is not the samme as his smiley-razz 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.
Logged


Pages: [1]   Go Up
Jump to: