OpenWrt Forum Archive

Topic: Using GPIO as a PWM source...

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I was contemplating using the GPIO as a source to generate a Pulse Width Modulated Signal.  I am going to use this as a way of controlling some small DC motors..

Essentially a repeating string of bits.  ie  0,1,0,1,0,1,0,1,0,1,0 will be 50%, and 0,0,1,0,0,1 33% etc etc.

I was wondering how fast the GPIO can be operated? ie, how many transistions per second can you make it run..

ANyone got any ideas?

Well, the GPIO's can be twiddled fast enough to get a few hundred KB/s read speed from an SD-Card, so I think it should handle your application just fine.

The discussion might have continued from here.