On Wed, 13 May 2020 at 12:21, Dean Gouramanis <
temprod...@gmail.com> wrote:
>
> I am searching for the best way to control a hobby servo from G code. Ideally I could map an axis to the duty_cycle to create a 1-2 ms pulse @ 300 Hz.
You can change the default frequency at
https://github.com/hzeller/beagleg/blob/master/src/pwm-timer.cc#L90
and re-compile.
... but I don't know if the wave-form would be useful, but on the
highlevel you should be able to generate the proper pulse-length with
values between 30% and 60% 'speed'.
Hope this helps,
-h
>
>
>
> On Wednesday, May 13, 2020 at 1:51:07 PM UTC-4, Henner Zeller wrote:
>>
>> Hi,
>> > Is there a way to adjust the PWM frequency without recompiling?
>>
>> Right now it is indeed fixed at 16kHz, but should probably made
>> configurable. Let me have a look this evening.
>>
>> Did you run into trouble with the default frequency in your system ?
>>
>> Cheers,
>> Henner.
>
> --
> You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
beagleg-dev...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleg-dev/fdac98f3-958c-40f1-b367-91be99148b0b%40googlegroups.com.