[TriEmbed] Raspi, Python and PWM

Ted Pudlik tpudlik at gmail.com
Wed Sep 9 21:14:11 CDT 2015


I have controlled the hardware PWM from Python using wiringpi2.  Here
<https://github.com/tpudlik/Birdfeeder/blob/master/iron_curtain.py> is an
example.  I found this discussion
<http://raspberrypi.stackexchange.com/questions/4906/control-hardware-pwm-frequency>
useful in figuring out how to control the frequency.

Best,
Ted

On Wed, Sep 9, 2015 at 9:21 PM, Rodney Radford via TriEmbed <
triembed at triembed.org> wrote:

> I use servo blaster for generating pwms on the Raspberry pi.
>
> It sets up a linked list dma structure to automatically generate pwm
> signals with no cpu intervention and can control over 20 servos with easy
> control from python, C and via the command line.
>
> There is a kernel driver and user daemon. I prefer the daemon as it is not
> kernel version dependent.
> On Sep 9, 2015 9:08 PM, "John Rock via TriEmbed" <triembed at triembed.org>
> wrote:
>
>> I’ve been working through the Adafruit tutorials for the Raspi.
>>
>>
>>
>> Tutorial #8 is about driving a servo off the Raspi PWM pin #18.
>>
>>
>>
>> I have supposedly installed the Occidentalis extensions to Raspian, which
>> looked like it completed successfully.
>>
>>
>>
>> I am not able to access the folder structure in the code in the tutorial.
>>
>>
>>
>> Anyone out there a Python / Linux / PWM expert that has been able to
>> control a servo from the Raspi PWM pin #18?
>>
>>
>>
>> John Rock
>>
>>
>>
>> _______________________________________________
>> Triangle, NC Embedded Computing mailing list
>> TriEmbed at triembed.org
>> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
>> TriEmbed web site: http://TriEmbed.org
>>
>>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
> TriEmbed at triembed.org
> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20150909/32f9be4a/attachment-0001.html>


More information about the TriEmbed mailing list