Offline
Newbie
Karma: 0
Posts: 10
|
 |
« on: December 04, 2011, 06:30:29 am » |
Hi,
i'm a new user for arduino and servo motor i tried sweep examples, but i want write a code which i can write eh exact angle for the servo. for example: i want to order the servo to go 90 and stop then back to 40 and stop... etc PS. my servo rotates 360 degrees
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: December 04, 2011, 06:58:00 am » |
Do you have spec for this device, or is it a continuous rotation ex-servo?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #2 on: December 04, 2011, 07:09:31 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #3 on: December 04, 2011, 07:10:27 am » |
it's continues rotation
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #4 on: December 04, 2011, 07:27:35 am » |
That's what we call an ex-servo. It isn't possible to command it to a particular angle, without the addition of some sort of encoder.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #5 on: December 04, 2011, 07:31:28 am » |
ok thanks for this information.
i made a ball and beam project so you advise me to buy new servo motor not continues, or i can use this motor and deal with it like DC motor just control the speed and the direction of the motor ?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #6 on: December 04, 2011, 07:32:59 am » |
I have no idea what a ball and beam project is, so I'm afraid I can't help you.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #8 on: December 04, 2011, 07:54:15 am » |
It will go to, and hold, at the required angle. However, don't expect the value written to correspond exactly to where the output shaft ends up pointing.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #9 on: December 04, 2011, 08:02:46 am » |
thanks for your help. I appreciate that 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #11 on: December 04, 2011, 08:09:08 am » |
Yes, that one looks ok, in that it is not a continuous rotation motor, but I can't say if it will work for you because only you know the specification you Ned for your application. Be aware that metal geared servos are much more expensive than plastic geared ones.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #12 on: December 04, 2011, 08:12:12 am » |
yeah i know the electrical and wight specifications which i need. just want to know if this a servo motor which can work with pmw and go the the exact angle. that's it
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19026
I don't think you connected the grounds, Dave.
|
 |
« Reply #13 on: December 04, 2011, 08:16:37 am » |
I don't know what "pmw" is, but don't try driving your servo with PWM, use PPM instead.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #14 on: December 04, 2011, 08:27:38 am » |
ok thanks for you help, i'm going now to buy the motor to catch the deadline for hand the project.
thanks again
|
|
|
|
|
Logged
|
|
|
|
|
|