Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Servo library
13-10-2011, 08:09 PM,
#1
Servo library
Hello, I'm new to the forum. I noticed that the servo library is limited from 1000 to 2000 usec. It limits my servo from 45 to 135 degrees and not 0-180 degrees. How could I possibly expand the pulse from 500 to 2500 usec? I looked at the library but I'm quite unsure how to modify this one. Can anyone help out?

Thanks,
Homer
Reply
31-08-2013, 07:08 AM,
#2
RE: Servo library
Look my video of test
http://www.youtube.com/watch?v=Tr_bSskq39s
Reply
31-08-2013, 12:05 PM, (This post was last modified: 31-08-2013, 12:08 PM by regis.)
#3
RE: Servo library
Hi Ricardo,
If you changed the servo library please send me a copy so I could update the SVN server.
Thank you.

PS : your message looks like a SPAM. If you want to give us a link please give us more information about it so we could make the difference between SPAM and normal messages. Some moderators were about to ban you Wink

(31-08-2013, 07:08 AM)rialaga Wrote: Look my video of test
http://www.youtube.com/watch?v=Tr_bSskq39s
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
31-08-2013, 04:40 PM,
#4
RE: Servo library
Sorry! That was partly my fault Sad

John
Reply
31-08-2013, 05:06 PM,
#5
RE: Servo library
No worries. Better to be too cautious than not enough.

(31-08-2013, 04:40 PM)pingotg Wrote: Sorry! That was partly my fault Sad

John
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
01-09-2013, 01:33 AM,
#6
RE: Servo library
Hi guys,

I need a library that support servos operate with 500 to 2500 usec high time too.
I'm trying to edit the library to support servos with that spec currently but if experienced member can help out that will be great.

Jacky
My English is poor, and if I made any mistakes, please forgive me.Tongue
Reply
05-09-2013, 06:02 AM, (This post was last modified: 09-09-2013, 02:31 AM by JackyZai.)
#7
RE: Servo library
Hi Homer,

I modified the servo library to support 500us to 2500us, but modify based on 18f4550, all 29 pins are supported(supposely).

Jacky

PS: Updated on 9/9/2013. Timer value update, it produce 49.99Hz pulses with 2.5% to 12.5% duty cycle.
I don't have an oscilloscope that's what my multimeter says =)


Attached Files
.c   servos.c (Size: 12.22 KB / Downloads: 2)
My English is poor, and if I made any mistakes, please forgive me.Tongue
Reply
09-09-2013, 12:00 PM,
#8
RE: Servo library
Hi,

In my opinion, there are some things to update/improve in this library :

1/ it should support all 8-bit Pinguino not only Pinguino 4550

2/ servomasks array seems to be the same as mask array in digitalw.c, so it could be possible to spare some RAM if digitalw.c is included and certainly to solve 1/. We should thus be killing two or more birds with one stone.

What do you think about it ? Anyone to improve it ? JackyZai Wink ?

Anyway, good job and thanks for your help.

(05-09-2013, 06:02 AM)JackyZai Wrote: Hi Homer,

I modified the servo library to support 500us to 2500us, but modify based on 18f4550, all 29 pins are supported(supposely).

Jacky

PS: Updated on 9/9/2013. Timer value update, it produce 49.99Hz pulses with 2.5% to 12.5% duty cycle.
I don't have an oscilloscope that's what my multimeter says =)
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
09-09-2013, 01:32 PM,
#9
RE: Servo library
Hi regis,

Welcome =). I'll try if I have time after my fyp.

Jacky

(09-09-2013, 12:00 PM)regis Wrote: Hi,

In my opinion, there are some things to update/improve in this library :

1/ it should support all 8-bit Pinguino not only Pinguino 4550

2/ servomasks array seems to be the same as mask array in digitalw.c, so it could be possible to spare some RAM if digitalw.c is included and certainly to solve 1/. We should thus be killing two or more birds with one stone.

What do you think about it ? Anyone to improve it ? JackyZai Wink ?

Anyway, good job and thanks for your help.
My English is poor, and if I made any mistakes, please forgive me.Tongue
Reply
27-09-2013, 12:06 AM,
#10
RE: Servo library
Update again
fix static void ServosPulseDown() function
and disable Timer 1 when non servo activated


Attached Files
.c   servos.c (Size: 12.54 KB / Downloads: 11)
My English is poor, and if I made any mistakes, please forgive me.Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)