TheDIYGuy999 / Rc_Engine_Sound_ESP32

Allows to play vehicle engine sounds on an ESP32. Additional sounds can play in parallel with the engine sound! Controls your lights as well. compatible with SBUS, IBUS, PWM, PPM and SUMD signals.
https://www.youtube.com/watch?v=s93yAAmEtbM&t=3s
309 stars 121 forks source link

Use throttle range from 1000-2000 with no reverse gear #36

Closed derFrickler closed 2 years ago

derFrickler commented 2 years ago

Is it possible to configure the throttle range from 1000-2000 such as motor off is at 1000 and full throttle is at 2000 No reverse gear needed.

This would be great for models (airplanes) that don't have reverse gears. Any hints on how to use this would be great. So far i am using PWM input with all channels but Throttle/3 set to NONE.

TheDIYGuy999 commented 2 years ago

Done in v9.0

derFrickler commented 2 years ago

Thanks! I got it working already with a dirty fix directly in the readPWM int offs = (pulseWidth[3]-1000)/2; pulseWidth[3] = 1500+offs; Will Update to 0.9 then. BTW, is there a way to stop the engine via PWM signal? Maybe if going lower than 1000?