Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange PI PC+ won't shut down

Featured Replies

I have an issue with armbian installed oPI PC+.

I have it in a case with a cooling fan installed and connected to 2 GPIO pins.

My question is: could the cooling fan connection be the cause for my oPI PC+ won't shut down from the power supply and keeps running in the background after i shut down armbian?

 

Any suggestions, I haven't tried starting without the cooling fan yet.

  • Author
10 minutes ago, martinayotte said:

A Fan cannot be attached directly to GPIO, especially between 2 GPIOs !

You need some transistor/MOSFET driver and drive it in Sink mode with a single GPIO and other wire directly on PSU.

 

Here's the proof how it connected to the GPIO pins: but maybe I have found the solution myself here -> Shutdown Button

See the pictures below.

P_20170915_212032_LL.jpg

  • Author

Thank you for this schematic, but one thing still isn't clear, how am I supposed to connect this and how to add into scripts?

 

The GND should remain as it is now? and the 5v should be connected to pin17? Don't really understand this? Where do i need to put those 2 resistors? Those resistors how strong should be?

 

So, probably this is why my oPI won't shutdown completely, because it continuously gets power, right?

9 hours ago, andrejmoltok said:

why my oPI won't shutdown completely, because it continuously gets power, right?

 

There is no power switch on those board ! When you do "shutdown" command, it bring the kernel in idle state, but the power supply is never disconnected.

 

9 hours ago, andrejmoltok said:

5v should be connected to pin17? Don't really understand this?

 

I think you don't understand the above schematic ...

It is describing a power switch for the fan itself :

R1 should be around 10K, it is there to make sure that when GPIO17 (17 is only an example, it could be any other GPIO) is left floating the MOSFET is turned OFF.

If GPIO17 is HIGH (thru R2, which can be around 1K), the Gate of the MOSFET will be HIGH, therefore it will be turned ON, providing GND to the fan, so the fan will spin.

 

9 hours ago, andrejmoltok said:

how to add into scripts

 

You can, for example, add commands to turn GPIO to LOW or floating as input to /etc/init.d/halt script.

 

  • Author

Does this switch necessarily need to be a hardware switch? Is it by all means programmable inside the Pi PC+, to make it a software switch of some kind? Or I am knocking on walls instead of doors?!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.