Wednesday, 7 February 2018

automotive - Relay for Intermittent Wiper Function


I want to add an intermittent function to the wipers on my 40-year-old car without any additional switches. The details of the wipers can be found here [http://www.globalsoftware-inc.com/coolerman/fj40/5G.htm]. The wiper knob closes the path to ground allowing the motor to begin sweeping the wipers. (There is another ground at the motor that mechanically closes when the wipers are not parked. This allows the wipers to park regardless of when the wipers are switched off.) It seems that all I need to do is complete the path to ground whenever I want to sweep the wipers, but it seems too easy so I’m second guessing myself. I’ve drawn out a small circuit using a ATtiny85 to detect if the wiper circuit is closed (not shown on the diagram). If the circuit is closed (knob pulled out) for longer than one second, the wipers operate as long as the knob is out. If the knob is pulled out and returned in less than one second, the uC activates the relay long enough to start a sweep and repeats this at a predetermined interval.


Am I missing something? Is this a reasonable approach? I chose an automotive relay I’ve used before, datasheet here [http://www.farnell.com/datasheets/1809465.pdf] with a diode and RC snubber across the contacts.


[Edited from original to reflect accurate wiring.]


schematic


simulate this circuit – Schematic created using CircuitLab


To be completed by OP.


                                 |   A   |   B   |   C   |

+-------+-------+-------+
Everything off |12.9 V |12.9 V |12.9 V |
Bulb in, WIPER_LO closed | 0 V | 0 V | 4.9 V |
Relay energised, WIPER_LO closed | 0 V |12.9 V | 4.9 V |

schematic


simulate this circuit


[Second schematic illustrates switch and two ground paths.]



Answer



[Update: major rewrite after additional information.]



schematic


simulate this circuit – Schematic created using CircuitLab


Figure 1. Redraw of wiring based on Toyota wiring mystery.


Figure 1: how it works



  • In OFF position the RUN switch will keep the motor running at LO speed until it reaches the PARK position.

  • In the OFF / PARK position the motor is shorted out. This causes dynamic braking of the wiper motor and will stop the motor abruptly preventing run-on into the RUN position.

  • In LO speed the off contact is open, the LO is closed and the motor runs at low speed.

  • In HI speed the other two contacts are open and the high-speed winding is energised.

  • Note that + to GND short-circuits should never occur with this arrangement as the wiper switch contacts will be break before make.



Figure 2: replacing switch with relays


Figure 2 shows the rewiring for intermittent add-on control. I am recommending this approach rather than the single-relay approach of earlier edits as it provides complete isolation between the logic and the power wiring, gives you great flexibility in the logic and is simple to wire and understand.


There is one danger to be avoided in the circuit of Figure 2: when RLY2 is energised and high-speed is selected the LO wire must never connect to the PARK switch as it will toggle between + and GND while the HI winding is energised.


schematic


simulate this circuit


Figure 3. (Almost) full circuit.


Figure 3: the full circuit - how it works


The original wiper knob has a few limitations: there are fixed internal links which cannot be broken. Disconnecting all the original wires - except the GND wire - allows us to monitor both LO and HI settings using the logic circuit without interference from the +12 V supply.




  • R1 and 2 pull up the /LO (not LO) and /HI (not HI) lines when not selected.

  • Selecting LO or HI will pull the corresponding line low. Both lines high indicates OFF position selected.

  • The ATiny executes the logic for the relays.

  • Q1 and 2 are open-collector drivers for RLY1 and RLY2. D1 and D2 provide inductive kick-back protection for Q1 and Q2 when switched off.

  • As required in the Figure 2 comment above we need to ensure that if RLY2 is energised then RLY1 is too. This should be done in software but D3 ensures that if Q2 (and RLY2) is switched on then RLY1 will be energised regardless of the quality of the software. ;^)


Software


As Dwayne Reid points out in his answer there are some neat tricks you can do with this to use an on-off-on sequence to set and modify the delay time. This was in my mind as I wrote my original because I remember reading an Elektor article (April 1980) on the subject. Simple micros such as the ATiny weren't available then and the design used some tricky logic to make the timer 'memory'. The Elektor design is referenced in US patent 4388574.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...