With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Hi! I just made this robot and I used the sensors you are talking about. First, you have to define an "int" for each pin of the sensors "int Pecho1", "int Ptrig1", etc. Second, you have to set up the pins (echo as inputs, trig as outputs). Third, you have to delete the "pinMode" lines on the rest of the code.
Ready to explore Mars! Excelent and very precise code. The chassis of this RC truck had a second motor for extra torque so I did some code additions. I also used ultrasonic sensors with echo and trigger. They were all defined on the setup. Many Thanks!!
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.