This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM Frequency

Hello, I've looked at the forum response for

devzone.nordicsemi.com/.../is-there-an-example-code-for-using-pwm-on-the-nrf51822-with-a-softdevice

I am unable to implement because, I think, I don't have access to all of the libraries included nor could I find. I'm using the nRF51822 in an RFDuino application running a pump and I need to get the PWM pin upwards of 5 kHz. I know I need to change pin designations but can't get that far yet.

Could use help on getting the libraries so I can examine and try to change correctly.

THX. Mike

Parents
  • Hello Ruben,

    Thanks for the reply and links. I'll need to look at them and the SDK mentioned in the reply above yours.

    What I did to get the project moving was implemented a work around. I haven't gotten back to solving the correct way which is adjusting the frequency in the RFDuino.

    My work around was to use a Tiny85 as the PWM higher frequency generator. Basically, the low PWM signal from the RFDuino goes through a low pass filter so it looks like an analog out signal. The new analog signal is read by the Tiny85 and re-transmitted out of it as a higher PWM frequency to my pump motor. All is good.

    This added about a buck to my project but got me moving on. Some day I'll return and do it right.

    Hope this helps.

    Mike

  • Hi Mike,

    thanks for your quick reply. Sounds like a good hack, but unfortunately that could not work for me. Mainly due to size restrictions, I still hope I manage to find a way to increase the PWM on the RFduino itself. I can't imagine that it would not be possible to do this.

    I hope I'll find a solution soon :S

    Cheers

    R.

Reply Children
No Data
Related