Wow it stopped giving page not found errors.
PwmIn uses only the single mbed timer which handles all timer related stuff. So thats not an issue. However each inputs needs to be interruptin capable. On nucleo boards generally (I do not know if this is also the case for yours, since initilaly they supported less, some were updated, but i dont know if all were) you can put on each pin-number an interrupt. So for example PA_1, PB_2, PD_3, PA_4, etc. But not in this example on PD_1 anymore.
You can also look at the source code of PwmIn yourself and maybe you can make it more efficient for your use case. For example it might be the case (I have no idea) that all channels have their rising edge at the same time, and only the falling edge differs. In that case it is sufficient to monitor the rising edge on one input and use that for all inputs.
Hi, I'm starting a new project that read 8 rc receiver pwm chanel values for controlling a robot with 7-8 servo output. I just want to know which method is the best and how mbed handle pwm in. I found a library named PwmIn (by Simon Ford) that works well for one channel, but I don't tried it for more. I don't know if it's the best library for my project.
I know what is PWM and how to read it. The concept is to have a timer and calculate the time between rising anf falling edge... But, my concern about this library is, there is one timer for each pmw channel... but there is only 3 or 4 timer on my nucleof103. Could it be better to have a single timer for all 8 channels ?
I need advises, thanks.