(Read 718 times)
Jul 29, 2012, 03:36 pm
is the parralax ping sensor the same thing as the onlite hc-sr04 ultrasonic sensor? if so, can you usw the same sketches? if not, how to modify?
i'm referencing the rc car to robot instructable-http://www.instructables.com/id/RC-Car-to-Robot/?ALLSTEPS- i bought all the gizmo's before i realized that the sensors mite be different. i know, i know i'm a ID-10T.
also, i been looking thru the language reference section and some other things,especially this forum, but i'm not finding anything on how to actually put all the keywords,syntax,etc., into a sketch. the different sketches i've looked at to try and reference the the tutorial/forum information all are different,and alot of them for the the exact same operation/sensor. any help with this. i've thought about buying the books, but the reviews say the same stuff can easily be found here.
p.s. is there some other place to look for how to build or modify a sketch for motor operation, and also for mixing it with a sensor operation?
Jul 30, 2012, 07:14 am
: Jul 30, 2012, 07:17 am by Krodal
A few links:
Parallax ping sensor : http://www.parallax.com/tabid/768/ProductID/92/Default.aspx
The instructable you use : http://www.instructables.com/id/RC-Car-to-Robot/?ALLSTEPS
HC-SR04 datasheet : http://www.micropik.com/PDF/HCSR04.pdf
ID-10T : http://www.urbandictionary.com/define.php?term=ID10T
Ping tutorial : http://www.arduino.cc/en/Tutorial/Ping
The 'New Ping' is compatible with both sensors : http://arduino.cc/forum/index.php?topic=106043.0
I don't know if the sensors are compatible, but you could just test it.
Or you could use code like in this page : http://www.robot-electronics.co.uk/htm/arduino_examples.htm#SRF04%20Ultrasonic%20Ranger
Jul 30, 2012, 02:54 pm
thanks. thae instructables project is exactly the one i was using as a template! but as it showed the sensor was a 1 wire parallax model. did some checking last nite, i think i'm i'm pretty well scoped for the connection prollem with it- just solder the trig+echo pins together and run the trig pin to the board. trying to work out the sketching now.
looked up the the datasheet fot the hc-sr04 sensor, dosen't say much i gotta say. i understood that from looking up the different supplier sites for which one to buy, just didn't know there was so much involved with the the hardware/programing aspect of these.