0

I have a fan that I want it to turn on immediately when power on.

The fan is currently wired through an on/off switch which also included a switch for a motor that operated the oscillation of the fan. I need the fan to turn on when people come in without controlling, so I plan to connect it with an IR sensor switch. But first I need to skip the start button that currently use to on\off the fan.

I have tried to connect voltage and speed pin together but it doesn't work. (I did not remove the controlling board when I do that).

What is the correct way to bypass the fan switch for direct power on?

Here are photos of the front and back of the switch board.

enter image description here

enter image description here

enter image description here

I have hope for before posting this question because I read this: Bypass button press on fan for direct power on when plugged in Could I do something similar? I have tried to connect some pins together as mentioned above but it didn't work, what else can I try?

Update: Following Andrea suggestion, I checked and as he predicted, If I press start\stop button, it will short GND and ST together. So I include my drawing following Andrea answer so everyone can see it clearly and to check if it is the right way to solve this issue : enter image description here

  • What is the switch labelled `SW` for ? Can you add a (circuit) diagram which traces the connections to and from the `START` button. It looks like that button pulls a line low when pressed, while a resistor pulls that line high at other times. Is the start button also functioning as the stop button when pressed once more ? – AJN Jun 10 '21 at 07:31
  • 1
    hi AJN, I think SW is for Swing which means the fan will be oscillating when you press it. Yes, if you press START button once it will turn the fan on and press one more it will stop the fan. For speed button, it is by turning the button in the middle to make it high or low speed. – user1314404 Jun 10 '21 at 09:10
  • _"I need the fan to turn on when people come in without controlling,"_ - When and how do want it to turn **off**? – Bruce Abbott Jun 21 '21 at 05:37
  • @BruceAbbott : when people go out and close the door – user1314404 Jun 22 '21 at 12:27
  • So you will turn the fan on with an IR sensor switch, but turn it off only when the door is closed (and the IR doesn't detect someone in the room?). How does closing the door turn the fan off? – Bruce Abbott Jun 22 '21 at 19:51
  • Actually all my requirements are turn on and off fan when people come in and out of the room and IR sensor to detect human or some switches at the door are serving the same purpose. I am just checking some options but main purpose is one as mentioned – user1314404 Jun 23 '21 at 07:06
  • @BruceAbbott : I am thinking about the IR sensor because it may help to detect human when they open or close the door – user1314404 Jun 26 '21 at 15:12

3 Answers3

6

This is easy

  1. Buy a fan that will turn on when you apply power. Forget all this digital control nonsense. Keep it simple

  2. Buy any standard motion sensing light switch from the local hardware store

  3. Wire them up

Done

Seriously, hacking into this is gonna be an exercise in frustration

Kyle B
  • 4,558
  • 10
  • 29
  • I also thinking of these, but seems it is harder to find your list, do you have some links ? – user1314404 Jun 10 '21 at 09:09
  • 1
    This answer provides no benefit to the person asking or anyone who reads it. – Passerby Jun 10 '21 at 09:25
  • Really? I gave him a workable solution that he can apply with off-the-shelf parts available at retail anywhere in the world with an assembly time of about 10 minutes. How long do you suppose it will take him to implement an IR transmission protocol??? $$$$ I've noticed some folks here seek to help OP's with practical solutions. Others like to show complete strangers how smart they are. – Kyle B Jun 10 '21 at 15:10
  • @user1314404 Unsure what parts you're having trouble finding??? I can't point at a fan because I don't know the form-factor. The switch would be something like this: https://www.grainger.com/product/23NY56?ef_id=EAIaIQobChMI1KbopK2N8QIVZgytBh0kOgZrEAQYASABEgLRw_D_BwE:G:s&s_kwcid=AL!2966!3!496359972232!!!g!472075813858!&gucid=N:N:PS:Paid:GGL:CSM-2295:4P7A1P:20501231&gclid=EAIaIQobChMI1KbopK2N8QIVZgytBh0kOgZrEAQYASABEgLRw_D_BwE&gclsrc=aw.ds – Kyle B Jun 10 '21 at 15:13
  • There are a zillion pre-engineered motion sensor solutions. A google search will give you thousands of options. – Kyle B Jun 10 '21 at 15:14
  • Hi Kyle B, tks for the link. However with this switch I still need to by pass the on/off button right ? Or may be you mean I use it for the fan type that can turn on while plug in, so do you have a link for the fan too ? Sorry if I am a little bit slow ... – user1314404 Jun 10 '21 at 16:19
  • 1
    With arduino IR libraries that people already have created, could knock this out in a single day. Or with the relay option I mentioned in under 30 minutes. You on the other hand think "don't be self sufficient don't learn just throw money at a corporation" is the best solution. At best that is a comment not an answer. – Passerby Jun 10 '21 at 21:37
  • @user1314404 they mean to throw away the fan you have now and buy a dumb fan with a physical on/off switch instead. – Passerby Jun 10 '21 at 21:38
  • Hi Passerby, I have tried to follow the link you sent and go to buy the items but I found out the total cost of these items are quite high, together with time and cost I think it is more expensive than some new fans while I need to have this solution work for my 3 current fans. So triple the cost would be too much for me. I don't think it will be a good solution for my situation. So now I think I have to either: find a way to just by pass the switch on off button or buy a fan without on off button and use it with human detection sensor – user1314404 Jun 14 '21 at 16:23
  • @Passerby: I have hope for first option before posting this question because I read this: https://electronics.stackexchange.com/questions/380155/bypass-button-press-on-fan-for-direct-power-on-when-plugged-in – user1314404 Jun 14 '21 at 16:26
  • 2
    @Passerby "Don't be self sufficient, don't learn, just throw money"??? WTH Have you ever heard of opportunity cost??? Yes, it's a concept that isn't included in engineering classes, just economics. YOU might be able knock this out in a day, but YOU aren't the one who is doing it ... OP is ... How many hours, and how much is his time worth? WAY WAY WAY more than a few new fans. BTW, are you aware both the impedance and bounce characteristics of a rubber/silicon switch are vastly different from a relay? You can't know the fans software will recognize a relay correctly. – Kyle B Jun 14 '21 at 17:00
  • 2
    But please do help this guy out if he wants to go that way. Just don't get him started and then abandon him. He clearly needs somebody to hold his hand all the way through. – Kyle B Jun 14 '21 at 17:01
1

Since it is a soft switch, the ways of handling this is using a relay (preferred) or a transistor/mosfet (involves some more details of how the switch is wired), and either a one shot timer with initial delay on power on, or an easier solution involving a common microcontroller.

The microcontroller can either interface with a relay or mosfet/transistor or since the fan has an IR receiver, you could control it without internal modification. Put a microcontroller with IR diode on the same power circuit as the fan, and have it send a power on signal a second after it gets power. Plenty of examples online of how to control a IR fan with an arduino online.

Passerby
  • 72,580
  • 7
  • 90
  • 202
  • that sounds interesting, how do I have microcontroller with IR diode to send the righ signal to the IR receiver ? – user1314404 Jun 10 '21 at 09:32
  • 1
    @user1314404 something like this https://create.arduino.cc/projecthub/akarsh98/automatic-arduino-based-ir-remote-control-temperature-driven-99d1d7 – Passerby Jun 10 '21 at 21:40
1

The objective is to control the start/stop of this fan from a remote switch, activated by presence of people in the room and/or passing through a door.

Note: I think that the underlying spec is "presence of people", but it is said as "people getting in/out", "door open/closed". If we have 2 persons getting in and 1 getting out, the 1 remaining will have the fan switched off in the latter case. But "presence" is difficult to detect because any sensor will flicker when people are moving, so needs much more logic. Let's go ahead with in/out+door that is manageable.

The fan is activated by a push button that has 1 rest position and 1 momentary closed. Somewhere inside there is a circuit "counting" the pulses, first on, second off, third on, and so on. We must replicate this behavior with the external sensor+switch.

  • To check how the push button is connected inside the fan: I see a "ST" wire, so it will be shorted to GND or VCC, and read by some logic inside (let's call it a "micro"). To check with multimeter if it is ST+GND or ST+VCC (or in case it is snot ST which wire).

Now the external switch must replicate this. The internal push button will be removed and two wires connected and driven as needed. We need a pulse (duration the time you take to press the original button), but I think it is the rising (or falling) edge that is sensed: so, pulse GND-VCC-GND (or opposedly VCC-GD-VCC, as said, to check) of limited duration (a fraction of second, or so).

The IR switch will close when someone is passing and will last for some time, not clear how long, especially if someone stands in the door, moves slowly, etc. If the IR switch sends a pulse every time the fan will start and stop too frequently: I suggests a led or light to warn not to hang around at the door.

The IR switch will receive two wires, ST and VCC (or GND). When it activates it must last for T seconds, with T possibly in the range 0.1-1. What happens is that the IR switch could switch for less time if the person is walking fast (ti-tlick, gone). So we need to capture short pulses from the IR switch (e.g. walking/running 1-2 m/s, the barrier (10 cm) is traversed in less than 5-10 ms).

This is the job for an "monostable multivibrator" such as the 4047 device: you get pulse in non shorter than e.g. 1 ms, and you get an output pulse guaranteed for at least 1 s.

4047 pinout

  • we want monostable: so pin 4 (!ASTABLE) to VCC and pin 5 (ASTABLE) to GND
  • R1 & C1 calculated for output pulse duration: tout=1/(8.8R1C1) so about R1=100kohm and C1=1uF (even R1=1Mohm and C1=100nF will work, so C1=C2 below)
  • trigger is our input signal from IR switch, to dampen with an input RC low-pass filter; R2 and C2 can be assigned to make 0.5 ms time constant, so R2=4.99kohm and C2=100nF
  • for termination of unused inputs see datasheet

Overall sketch is like this.

Now you should find place inside the fan and you run 2 wires from the IR switch. If you can find a DIP IC 4047, you can glue it upside down on the PCB and the few needed components can be placed there as well. (no SMDs please :) )

Last minute note: a push button somewhere in parallel to the IR switch may be advisable to bring the fan in a known state, just in case something messed up.

andrea
  • 1,589
  • 8
  • 13
  • Many thanks for the details and thoughtful solutions. Just to clarify some points you mentioned: basically it is the very small store room so I will assume there will be only one person at a time. But yes, it is correct to say the main requirement would be on\off when door open\close. Back to your solution, so can you draw on my pictures what can I try from there ? Any other pictures you want me to take ? Although I could capture your idea to certain level but to make sure it is correct, I would love to see it illustration on my photos. Thank you for the great help ! – user1314404 Jun 27 '21 at 13:12
  • Simple version: 1) In your photo you have the white connector where I see "ST" and then GnD and VCC. Check there the logic, if the push button shorts ST to GND or to VCC, ad if it is ST the right wire! Detached the connector you check with a multimeter if there is a momentary short and where when you press the button. 2) You need to locate an IR switch (or a microswitch for the door), but all of them will accept two wires. These wires are the two you identified at step 1). -- finished, but the IR switch can "mis-switch", so the use of the 4047. – andrea Jun 27 '21 at 15:17
  • The implementation is straightforward : once you identify the two wires going to the board for the push button, you branch one (the GND or VCC you got at step 1) and you extract (or cut) the ST wire. I said "branch" because you cannot remove the GND or VCC from the board, it is for other uses too. The ST wire instead is only for the push button and you will connect a long way to the IR switch, together with the branched GND or VCC with a similar wire. -- for long wires, run them twisted and put at least a capacitor (100nF) across them (for interference, but the fan should be protected inside). – andrea Jun 27 '21 at 15:22
  • @user1314404 What happened to this question? selected answer & bounty? – andrea Jun 29 '21 at 06:36
  • I am planing to try this again following your instruction and find enough components then I will give the bounty point to your answer – user1314404 Jul 01 '21 at 05:39
  • I have checked the connection and as you predicted, push button will connect GND and ST. So after reading all your instruction carefully I have drew my understanding and question to the picture in my question, please help to clarify if it is correct understanding and the other pins of 4047 how should I connect or leave it unconnected ? – user1314404 Jul 02 '21 at 20:38
  • please check the drawing in my updated question – user1314404 Jul 02 '21 at 20:45