[riot-devel] Does the servo driver work on atmegas?

2020-09-01 Thread Wouter Symons
Hello all, I spent quite some time yesterday trying to get a servo working on an atmega1284p, unfortunately to no avail. I was wondering if it is even possible at all. The current version of the PWM peripheral has its resolution limited to 256. I think this limitation is probably the cause f

Re: [riot-devel] Does the servo driver work on atmegas?

2020-09-01 Thread Marian Buschsieweke
Hi, > I was wondering if it is even possible at all. The current version of > the PWM peripheral has its resolution limited to 256. this is because currently only the 8 bit timers are used for PWM. There are also 16 bit timers that can be used for PWM, but those are not yet implemented. I heard

Re: [riot-devel] Does the servo driver work on atmegas?

2020-09-01 Thread Wouter Symons
Thanks for the quick response Marian! So, double check that you are using PWM_LEFT. The servo driver uses PWM_LEFT hardcoded. Do you have an logic analyzer at hand to confirm the PWM output is correct? Great idea! I had already tried checking the output with an oscilloscope I had laying on m

Re: [riot-devel] Does the servo driver work on atmegas?

2020-09-03 Thread Marian Buschsieweke
Hi, care to open an issue on Github for this? This sounds very much like a bug in RIOT. Could you also provide the board details. If you're using an out of tree board, especially the clock configuration would be of interest. Kind regards, Marian On Tue, 1 Sep 2020 21:58:32 +0200 Wouter Symons