PWM on Photon same as Core?

Does the Photon have the same PWM pins as the Core?

Hey @Resseguie,

You can compare with the pin-out for Photon at: https://github.com/spark/photon/tree/master/pin-mapping

I have no details on which pins will have PWM on the photon but the pin-out tells us whether PWM feature is available on those pins.

For reference, this is from the Spark docs :

On the Spark Core, this function works on pins A0, A1, A4, A5, A6, A7, D0 and D1.

Hi All,

I have some photons coming and now see that the core and the photon are different in their PWM outputs from the changelog i.e. A6 is no longer PWM capable and I was using this as well as A0,A1 as PWM.

So I am updating my board layout to accommodate however on looking at the photon pin mapping it makes no mention of PWM for the Photon. Are the photon timer capable outputs also PWM capable outputs? Is this how I interpret the pinout?

thanks!

Slattoz

@slattoz, take a look at the Photon hardware docs here:

http://docs.particle.io/photon/hardware/

One of the footnotes says:

PWM is available on D0, D1, D2, D3, A4, A5, WKP, RX, TX with a caveat: PWM timer peripheral is duplicated on two pins (A5/D2) and (A4/D3) for 7 total independent PWM outputs. For example: PWM may be used on A5 while D2 is used as a GPIO, or D2 as a PWM while A5 is used as an analog input. However A5 and D2 cannot be used as independently controlled PWM outputs at the same time.

These are all the PWM capable pins. Hope that helps! :smiley:

3 Likes

Thanks @peekay123 - thats the detail I was missing.

1 Like