Uncategorized

Cooling Fan Notes

Asked 
Active today
Viewed 62 times
1

I just bought a case with fa , as pi 4 is not working great without it. Now temperature is low, but as I have it in my room, I would like to turn it off while sleeping.

My fan is: https://www.amazon.fr/gp/product/B07V9Q95RX/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

When I shutdown the pi, fan is still active, so I have to physically unplug power, which is not so great.

Is there a way to shutdown fan at the same time than pi ?

2 Answers

1

If the fan is connected to the 5V and GND pins then they are not controlled by software. Those two pins are directly connected to your power supply, so as long as the power supply is connected and turned on at the wall socket your fan will continue to run.

0

Question

How to turn off Rpi4B case’s cooling fan without pulling the power plug?


Answer

There are many ways, including the following:

(1) Get a case with a manual power switch (Reference 2).

(2) DIY a manual cable power switch (Appendices A to C).

(3) Using Rpi GPIO to control a software switch to turn on/off the power supply for the cooling fan (Ref 6, Appendix C)


Discussions

Discussion Notes #1 – 2019oct04 hkt1635

The OP commented that my answer does not meet his requirement, which is summarized below:

Lying in bed, after watching a movie, shut down the Rpi as a PC, without leaving the bed. Therefore a local switch near the Rpi but too far from bed won’t do.

Now let me consider some cases and see if I can product a real solution.


Case 1 – The OP sits in front of Rpi on a desk, starts the VLC Media Player, selects a movie, then walks to his bed, lies on bed and starts watching the movie. He does not want to leave the bed anymore, and wishes NOT to get up and walk to the wall socket to switch off the wall wart.

Now either he changes his present Rpi case without a manual power switch to a new one with manual power switch, or DIY his own switch, IF the switch is “local” to Rpi but remote from bed, then he has to get up to reach the switch.

In other words, if the switch either comes with the Rpi case, or DIY inserted, does NOT solve the problem.


Case 2 – I have thought about a couple of more possible solutions, including the following:

(2.1) Use a mobile phone to switch Rpi, and then case power,

(2.2) Use a remote controller (similar to TV remote) to switch off Rpi and then case power, or just cooling fan power, which is easier.

(2.3) Lengthen the power cord at either or both ends of the manual power switch (Appendix A, Tamiya socket labelled “B”). This way, the OP needs to carry the switch with a dangling long power cord to bed. But this method is easy. One problem is that Rpi won’t be properly shutdown.

(2.4) use a WiFi power socket, …

(2.5) Extract the two wires connecting to the fan, extend the wires and added manual switch. This is easy but messy.

I need to ask the OP to confirm if I indeed understand his situation, before I suggest more solutions.

Discussion Notes #2 – 2019oct05 0938

Case 3

(3.1) Use a USB powered cooling fan, extend the USB cable to bedside, and without leaving the bed, just pull the USB plug to turn off the fan (Ref 7). This 40mm cooling fan is brushless, double bearing, and might be much more quiet than your Rpi case’s built in fan. You can also find “magnetic” bearing which is even more quiet.

(3.2) And you can add temperature sensed PWM fan speed control, so if the Rpi is not playing video, Rpi becomes cool, the fan will automatically run at very low speed, or even stops. Now you can have a nice sleep, …

/ to continue, …


References

(1) Rpi4 Case without manual power switch

(2) Rpi4 Case with a power switch

(3) The manual power switch to DIY

(4) 250V 3A ~ 5A manual power switches

(5) How to strip the power wires

(6) Using LM2596 and LM2941 to switch on/off PSU/currenct

(7) Amazon 40mm x 10mm 5VDC USB Brushless Cooling Fan, Dual Ball Bearing – $14/2 pcs


Appendices

Appendix A – Power Switch DIY Notes 1 – Cutting power cord to insert switch

stripping wires

Appendix B – Power Switch DIY Notes 2 – Switch inserted

pss switch

Appendix C – Rpi4B + PSU – Power Switch Testing OK

system testing ok

Appendix D – Using A Software Switch to switch on/off cooling fan power

psu switch 1

psu switch 2

End of Answer


  • sorry, question is: Is there a way to shutdown fan at the same time than pi ? My use case is that I watch a movie with my Raspberry PI from my bed, so I don’t want to leave my bed to turn off PI. So a local switch is not a good option… I just don’t understand why PI can’t tell everything to shutdown by software, like any PC would do. – Juliatzin del Toro 18 hours ago
  • 1
    @Juliatzin del Toro, Ah let me see, so what you want is shutting down the Pi, like what any PC would do. Let me see if I can suggest anything better. – tlfong01 17 hours ago    
  • @Juliatzin del Toro, please read Discussion #1 in my answer, and confirm if I understand your situation correctly. Feel free to point out any thing missing, or make counter suggestions. PS, I am leaving for jogging, so see you later this evening or tomorrow. – tlfong01 17 hours ago   

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: