need help on controling a servo motor
apache
Posts: 7
hi there to all. i need help on controlling a servo motor.·i need a program which can read data from a ultrasonic sensor and control a servo motor. if anyone can help me about this program please contact me.· the control will be like this if ultrasonic sensor sees the obstacle in x distance it will turn a little bit and if it sees the obstacle in y it will turn to the other side a little bit. The x and y are two variables which vary like 40>x>20>y>0. if you can help on this please write here thanks.
Comments
Post Edited (Mike Green) : 2/28/2007 9:14:10 PM GMT
Do have a look at "Roaming with PING". It's a complete, functional example of using an ultrasonic sensor (the PING) to control a servo motor (actually two of them) to move a little robot. It sounds very similar to what you want to do.
Post Edited (Mike Green) : 3/4/2007 3:42:38 PM GMT