Wiper control from Ain and CANbus panel

I’m working on wiper control for a rally car, with the following setup:

  • The co-driver has an AIN button near their legs.
  • The driver has a CAN bus panel near their hands.
  • Both need to control the same output for the wipers.

The desired functionality is:

  1. First press: Wipers turn on in a delayed (intermittent) mode.
  2. Second press: Wipers switch to continuous mode.
  3. Third press: Wipers turn off.

I have successfully implemented this functionality using a single button, either from the CAN bus or the AIN input. However, I’m struggling to combine the inputs from both the AIN button and the CAN bus panel into a single, seamless control logic.

How can I design the logic to ensure both inputs work together correctly, controlling the wipers in the described sequence?

Send the project file, I think.i could help.

pmu.pmu (5.2 KB)
Here you go.
Thank you very much!

Function: CAN button press or AIN = true

Function feeds a switch

Switch feeds the Wiper module

CAN keypad button as an indicator to wiper module state

Give this a try.

pmu - revised wipers.pmu (5.3 KB)

Can I Help you with PMU configs, if you want.