-->
Page 5 of 14

Re: how can i use pwm?

PostPosted: Fri Jul 10, 2015 3:08 pm
by eriksl
No no no I did'nt write a library for PWM. It's in the SDK. Have a look at the include file pwm.h, it's all there.

Re: how can i use pwm?

PostPosted: Fri Jul 10, 2015 3:13 pm
by FlyingHacker
Honestly, I do not know if the PWM is hardware or not. I used the PWM through the Arduino SDK with analogWrite. On the oscilloscope it looks like any regular PWM to me. I do not know what the resolution is. I did not try to measure it. You could probably filter the hell out of it with capacitors and then measure the voltage with a good DMM every step to see if it changes at 8 bit, 10 bit or greater.

Re: how can i use pwm?

PostPosted: Fri Jul 10, 2015 3:16 pm
by eriksl
If you're using Arduino, that's a whole other story. I am talking about the SDK, from C.

Re: how can i use pwm?

PostPosted: Fri Jul 10, 2015 3:23 pm
by tytower
eriksl wrote:No no no I did'nt write a library for PWM. It's in the SDK. Have a look at the include file pwm.h, it's all there.

Just been looking for that . Can u tell me where it lives?
I searched and got the Arduino site and looks like I've got some heavy reading to do
http://forum.arduino.cc/index.php?topic=117425.0