We’re rewarding the question askers & reputations are being recalculated! Read more.
2 replaced http://abyz.co.uk/ with http://abyz.me.uk/
source | link

Personally I'd use one of the many libraries and/or daemons available to you to do the PWM.

Have a look at servoblaster and its clones which provide daemons to provide dedicated PWM.

Or perhaps have a look at the PWM features provided by wiringPi with the bundled gpio utility.

Another alternative is my pigpio daemonpigpio daemon and the pigspigs utility which provides multiple ways of generating PWM.

All of these can be called by a bash script.

Personally I'd use one of the many libraries and/or daemons available to you to do the PWM.

Have a look at servoblaster and its clones which provide daemons to provide dedicated PWM.

Or perhaps have a look at the PWM features provided by wiringPi with the bundled gpio utility.

Another alternative is my pigpio daemon and the pigs utility which provides multiple ways of generating PWM.

All of these can be called by a bash script.

Personally I'd use one of the many libraries and/or daemons available to you to do the PWM.

Have a look at servoblaster and its clones which provide daemons to provide dedicated PWM.

Or perhaps have a look at the PWM features provided by wiringPi with the bundled gpio utility.

Another alternative is my pigpio daemon and the pigs utility which provides multiple ways of generating PWM.

All of these can be called by a bash script.

1
source | link

Personally I'd use one of the many libraries and/or daemons available to you to do the PWM.

Have a look at servoblaster and its clones which provide daemons to provide dedicated PWM.

Or perhaps have a look at the PWM features provided by wiringPi with the bundled gpio utility.

Another alternative is my pigpio daemon and the pigs utility which provides multiple ways of generating PWM.

All of these can be called by a bash script.