bitdump / BLHeli

BLHeli for brushless ESC firmware
GNU General Public License v3.0
1.94k stars 1.08k forks source link

analogic pwm 0-5v instead of rc pwm #205

Open MakerDreams opened 7 years ago

MakerDreams commented 7 years ago

Hi all! that's a great work, i'd like to know if is possible by blheli, modify the rc pwm to take signal from a simple analogic pwm. suggest?

sskaug commented 7 years ago

I'm not quite sure what you mean by "analogic pwm", but in general any pwm input will be accepted, as long as it is one of the supported pulse widths or frequencies. Also 0-5V will work fine.

MakerDreams commented 7 years ago

Thanks for the reply, i need to use the esc with a simple duty cycle pwm from 0 to 255 like this one: Here

And not with a classic servo pwm like this one: Here

Do you think is possible? Where i need to modify the firmware of the esc?

JerryHsing commented 7 years ago

No problem, you modify? BLHeli modify is not necessary.

JerryHsing commented 7 years ago

But 100% PWM or 0% PWM, and signal loss can not distinguish.

MakerDreams commented 7 years ago

@JerryXing If any of you could tell me how to do that would be great! That's great 0% to 100% duty cycle and I do not care if I lose the signal loss function.

Someone could make me or tell me how to make this change for the multistar 20A esc?

Thank you so much!

JerryHsing commented 7 years ago

@MakerDreams Modify int0_int()