|
Post by Matthew on Mar 1, 2019 15:35:05 GMT
Hi,
Is it possible to hold the MotorPWM output to zero when the brake signal is on.
Many thanks
Matt
|
|
|
Post by Rowan on Mar 1, 2019 15:53:39 GMT
Hi Matt, It's perfectly possible. At the end of the read throttle function there is an analogWrite. This is where the throttle output is set. You can wrap it in an if, else. If not brake, map the output to the throttle, else if brake, output to 0. Hope that helps
|
|
|
Post by Matthew on Mar 4, 2019 10:06:59 GMT
Brilliant,
Thank you
|
|