My Arduino Ping Display Robot

 by Cello62
Featured
1.JPG
2.JPG
Goals

Hello all.
I hope to please share a little robot that I have just finished building.
There are many Ping Boat, perhaps with a tutorials and display less so without pretension, will illustrate what I could do.
I gave myself the goal of realizing a robot that avoids obstacles, hence the use of Ping, who had more autonomy (and less hassle to reload always stylus) and displayed on a LCD display the distance measured obstacle.
The tutorial is directed for beginners but with knowledge of electronics and Arduino programming.
 
Remove these adsRemove these ads by Signing Up

Step 1: List of Materials

9246384-carrello-della-spesa-su-sfondo-bianco.jpg
Octagon_livello__4c6dec76f2316_90x90.jpg
570-28015-L.jpg
138114.jpeg
Elle_per_servomo_4c0700ee68083_90x90.jpg
3830xx_f.jpg
lcd162.jpg
500044_01.jpg
03112009UBEC3aN.jpg
DSC_0005.JPG
1 - Arduino UNO or compatible
2 - Module OCTAGON GioBlu Robotics http://www.gioblu.com/prodotti?page=shop.product_details&flypage=flypage_images.tpl&product_id=136&category_id=60 or other frame
1 - Ping))) Parallax  mounting bracket kit http://www.parallax.com/Store/Robots/AllRobots/tabid/755/ProductID/248/List/0/Default.aspx?SortField=ProductName,ProductName
2 - Servo motors with 360 rotation , in my case HSR-1425SCR
2 - 6 cm wheels with rubber no-slip
1 - std servo for the Ping (in my case is not required but can be implemented)
2 - servo brackets Gioblu Robotics http://www.gioblu.com/prodotti?page=shop.product_details&flypage=flypage.tpl&product_id=78&category_id=34
4 - PCB spacers from 4 cm http://http://www.robot-italy.com/product_info.php?cPath=7_135&products_id=1189
2 - protoschield for servos, battery and display and added  http://www.robot-italy.com/product_info.php?products_id=879(or other sites)
1 - 16x2 HD44780 compatible LCD Display http://www.robot-italy.com/product_info.php?cPath=59_194&products_id=237
1-  potentiometer
1 - 9v battery holder
1 - 2s Lipo 1200mAh 7.4 v
1 - UBEC 5.4 / 6V http://www.cnchelicopter.com/servlet/the-1528/hobbywing-UBEC-dsh-3A-(2-dsh-6S-Lipo/Detail
1 - pivot wheel
1 - piece of matrix board for the display shield
- some strip for shield
- some screw patience and passion..
pe2hlc says: Aug 13, 2012. 2:09 AM
Hallo very nice im have the 4 wd robot with 4 motors and i will the distance on the display like your robot. please help me with the code. Rinus The code for the 4wd robot : http://www.akeric.com/arduino/robot_4wd/robot4wd_06.pde thank you
pe2hlc in reply to pe2hlcAug 30, 2012. 2:33 AM
Hello Cello 62

Were dropt im the code's from the lcd in the code from akeric? I'm try many times but it dont work .
When the distance is very well, the motor don't work,please help.
Cello62 (author) in reply to pe2hlcAug 30, 2012. 3:11 AM
Sry, i don't understand your english, "were dropt im the code's from the code from akeric?". Who's akeric? I've posted the code above, try to have a look at it it very simple, or i suggest if you wanna have another code try to post it in a Arduino forum.
Regards
pe2hlc in reply to Cello62Aug 30, 2012. 3:54 AM

Sorry for my english here you'll find the code of Eric
http://www.akeric.com/arduino/robot_4wd/robot4wd_06.pde
Where do I place the code of the lcd distance in the code of Eric thanks.
Rinus




Cello62 (author) in reply to pe2hlcAug 30, 2012. 5:12 AM
I suppose you have to use g_cm or gcollidedistance variables.
Try to put the code after the variable are on, (// Do stuff, based on the current mode step), to see which value the ping read. Use a tutorial of lcd display to initialize a variable. This is all i can do . Regards
pe2hlc in reply to pe2hlcAug 30, 2012. 3:56 AM
mail
kloosterma@zeelandnet.nl
Regards
Cello62 (author) in reply to pe2hlcAug 13, 2012. 4:51 AM
You need to study on any Arduino tutorial how to see a variable in the display. Once connected the display, is a very simple code, look that I've already done in the tutorials:
lcd.clear();
lcd.setCursor(0,0);
lcd.print("OBSTACLE cm ");
lcd.print(timecount/10);
You need to associate the name of the variable to the command by placing the string depending on the pixels you have available on the display
pe2hlc in reply to Cello62Nov 18, 2012. 10:00 AM
Hello i have you sketch from jou site applied, when checking i have an error message, i put at the end of an extra } applied, At the start-up is running the servo a moment, and the two engines one on the left and the other to the right that continue to rotate. The ultrasonically pings 1 times and then do nothing. The display shows (obstacel 0 cm) what can be wrong? Have the ultrasonically tested works well.
Greeting
Pe2HLC
Cello62 (author) in reply to pe2hlcNov 18, 2012. 2:03 PM
Dunno. Very difficult to answer. My sketch is one found in several tutorials on web. Check all connections well first.
Higgs Boson says: Mar 4, 2012. 8:12 AM
Very cool. I really want to make a robot like this but ping sensors are somewhat expensive. I'm thinking about getting an infrared rangefinder.
Cello62 (author) in reply to Higgs BosonMar 4, 2012. 9:47 AM
Ty for your comment. I'm agree about is more expansive, however now does it cost 29$ and belive me you got a sensor more accurate than infrared.

Remember to vote me please!
emdarcher in reply to Cello62Jun 19, 2012. 11:58 AM
you could actually use the cheaper $9.95 HC-SR04 ultrasonic rangefinder, which works like the ping))) but is cheaper and has a much easier to use library. i chose this sensor over the ping))) and have been happy with it so far.
danilo.bar1 says: Feb 10, 2012. 3:38 AM
I saw the video.
Is desired that robot tends to curve to the right?

however, very interesting project.

Good Job!
Cello62 (author) in reply to danilo.bar1Feb 10, 2012. 7:24 AM
It is true slightly, depending on the speed of servo rotation, but is not important.
Thanks for your comment
danilo.bar1 in reply to Cello62Feb 10, 2012. 9:26 AM
^_^
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!