RPIO PWM is the way to go…

Once I got the Raspberry Pi (aka ProtoPi from now on) installed, imported RPIO, wired it up to my iPad mini tablet via an iMSO digital oscilloscope, it took just a few mins to write the code to prodoce 4 PWM gpio outputs, each using the same PWM channel, but each with their own set of pulses.

RPI.PWM use

RPIO PWM, 1 channel, 4 GPIO outs each with their own pulses

Here’s the code used to do this:

Even better there was 0 CPU used while the pulses were running.

Next step depends on the delivery of the breakout for the MPU6050 to pin it firmly to the breadboard.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.