PWM Block

A place to hang out and chat with other like minded tinkerers

Moderator: phalanx

Post Reply
ant.innit
Posts: 7
Joined: Wed Nov 12, 2014 9:21 am

PWM Block

Post by ant.innit » Sun Jan 18, 2015 6:11 pm

Anyone got the Edison PWM Block running, i've using C++ but not sure of the best way to set the PWM and write to the output channels.

bylos
Posts: 4
Joined: Mon Mar 02, 2015 2:09 pm

Re: PWM Block

Post by bylos » Tue Mar 03, 2015 5:51 am

Hi ant.innit,

I've been using the PWM Block from SparkFun for Intel Edison recently without any issue in C programming.

My code is based on this library :
https://github.com/TeraHz/PCA9685/tree/master/src
which I adapted as a C library in my program, with some minor modifications.
Also I had to make some precise measurments to retrieve the exact value of internal oscillator, which was closer to 27MHz than 25MHz in my case

There won't be much difference between using the library in C or C++ in terms of performance, both are efficient enough

Regards

ant.innit
Posts: 7
Joined: Wed Nov 12, 2014 9:21 am

Re: PWM Block

Post by ant.innit » Fri Mar 20, 2015 8:14 am

wow, omg I just spotted this- thanks for posting Bylos I'll give it a try this weekend.

Post Reply