Pages: 1 [2]   Go Down
Author Topic: Arduino Obstacle Avoidance and Cliff Avoidance Robot  (Read 2707 times)
0 Members and 1 Guest are viewing this topic.
East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4225
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Psst indeed !
Note to self.  When coming back to threads it is sometimes a good idea to reread earlier replies.

The OP has PM'd me and will reply to the thread soon.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

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

(If you've got two sensors, on different pins, make a single function with the pin number as parameter.)

Thank you for this pointer. I will do some changes on the code.
Logged

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

Thank you all for the help. The Arduino is now reading the 2 ultrasonic sensors simultaneously. I will be posting the updated code soon. Thank you again for everyone's help.
Logged

Pages: 1 [2]   Go Up
Jump to: