עבור לתוכן

שאלה|360 מעלות עם סרבו

Featured Replies

פורסם

לפרויקט שאני עושה, רובוט עוקב קו עם חיישני IR רציתי לעשות עם שני גלגלים עצמאיים אבל אני רציתי לעשות את כל הפרויקט במחיר זול מאוד.

אז בשביל הסרוואים לקחתי שני סרוואים סינים פשוטים של 9G , ניתקתי את הפוטורסיסטור והורדתי את החסימה בגלגל שיניים

הבעיה היא שאני יכול לשלוט רק על כיוון, אני לא מצליח לגרום לו לעצור

פורסם

נתק לו את הזרם...

פורסם
  • מחבר

זה באמת עובד, אבל אם אני רוצה לשלוט על הרובוט צריך לעשות את זה אוטומטי, ניסיתי עם פין דיגיטלי, הוא תמיד HIGH למתח של הסרבו והוא LOW לשנייה כשיש שינוי בזווית, אבל המתח משום מה לא מספיק לסרבו והוא לא מסתובב

פורסם

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1284385670/all

It's nothing to do with luck. With a servo modified for continuous rotation you probably should use the writeMicroseconds() command. Every model servo will have different maximum speeds and range of microseconds commands it can handle. You will have to experiment to find the exact stop timing, usually around 1500 +/- microseconds, and the maximum forward and reverse speed microsecond values.

Once you know the three critical microsecond values for max forward speed, max reverse speed, and stop you might then want to use the map function to allow you to use say, -100, 0, +100 values, to control the speed and direction of your specific servo inside your program.

http://arduino.cc/en/Reference/ServoWriteMicroseconds

http://arduino.cc/en/Reference/Map

Lefty

תתחיל לחקור :)

פורסם
  • מחבר

תודה רבה, זה מה שאעשה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים