Odroid XU4 safe shutdown??

Post Reply
User avatar
fender90
Posts: 36
Joined: Thu Nov 09, 2017 4:43 pm
languages_spoken: english, armenian, russian
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Odroid XU4 safe shutdown??

Unread post by fender90 » Sun Apr 29, 2018 6:00 am

Howdy Odroiders!

I am building a CarPC based on Odroid XU4.
I need the board to safely shut down when I turn off the ignition in my car.
I've found a switch on Mausberry Circuits which connects to GPIO pin on RPi or other board and allows to run a shutdown script. Unfortunately it is quite expensive and provides only 3 amps of power which is not enough for XU4
Does anyone know an alternative for Mausberry car switch that can provide up to 4 amps and allow to safely shutdown the board?

P.S. The XU4 currently works on Android 7.1 by Voodik. Has anyone tried to initiate shutdown using GPIO on this ROM?

User avatar
odroid
Site Admin
Posts: 31072
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 29 times
Been thanked: 146 times
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by odroid » Sun Apr 29, 2018 9:23 am

Refer this thread first.
viewtopic.php?f=94&t=27890

User avatar
fender90
Posts: 36
Joined: Thu Nov 09, 2017 4:43 pm
languages_spoken: english, armenian, russian
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by fender90 » Mon Apr 30, 2018 8:06 pm

odroid wrote:Refer this thread first.
viewtopic.php?f=94&t=27890
Thank you! I already figured out how to shutdown the board using pin12. Now I'm just looking for a smart switch that will provide 1.8-5 volts to pin 12 when I turn off the ignition

User avatar
fender90
Posts: 36
Joined: Thu Nov 09, 2017 4:43 pm
languages_spoken: english, armenian, russian
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by fender90 » Fri May 11, 2018 4:42 am

odroid wrote:Refer this thread first.
viewtopic.php?f=94&t=27890
Dear Odroid
Is there any information on how much current is required for PWRON 12 pin? I know that it supports voltages from 1.8v to 5 volts, but no information on the current demand.
The idea is to connect an Arduino Nano to my car which should detect the power loss when the ignition is switched off and send a signal to pin 12 on my XU4.

User avatar
odroid
Site Admin
Posts: 31072
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 29 times
Been thanked: 146 times
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by odroid » Fri May 11, 2018 4:46 am

It must be less than 1mA.
So any Arduino IO port can handle the power control.

User avatar
fender90
Posts: 36
Joined: Thu Nov 09, 2017 4:43 pm
languages_spoken: english, armenian, russian
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by fender90 » Fri May 11, 2018 5:26 am

odroid wrote:It must be less than 1mA.
So any Arduino IO port can handle the power control.
Wow! Great thanks! Seems I have found a great solution for external power management.

Dominic86
Posts: 30
Joined: Thu Jan 03, 2019 7:49 pm
languages_spoken: Italian, english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by Dominic86 » Mon Jun 03, 2019 8:09 pm

Hi fender90,

have you managed to power on/off Odroid from Arduino?
I've made a separate circuit that detect the 12v and give a signal to Arduino.
Now with a simple skretch I'm tring to give a signal for 2 seconds to pin12 to power on/off the Odroid.
All works well, Arduino reveice the right signal, but when it send the HIGH to Odroid, it seems to not listen the Arduino signal to pin12.
Anyone has had a similar problem?
Thanks

Dominic86
Posts: 30
Joined: Thu Jan 03, 2019 7:49 pm
languages_spoken: Italian, english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by Dominic86 » Fri Jun 07, 2019 10:19 pm

I've done another try with a TIP122 connecting the TIP122 BASE to an Arduino signal PIN, the TIP122 COLLECTOR to pin1 (+5V) and the TIP122 EMITTER to pin12, but it doesn't work.

No one know how to power up the Odroid XU4 from external signal?
It seems a so simple operation, but I'm going crazy!
Help me!

User avatar
odroid
Site Admin
Posts: 31072
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 29 times
Been thanked: 146 times
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by odroid » Sat Jun 08, 2019 10:54 am

What happens if you short Pin1 and Pin12 with a wire for a second? It is equivalent to pressing the power button on the XU4.
https://wiki.odroid.com/odroid-xu4/hard ... _2x15_pins

Dominic86
Posts: 30
Joined: Thu Jan 03, 2019 7:49 pm
languages_spoken: Italian, english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by Dominic86 » Sat Jun 08, 2019 9:09 pm

If i short them it works, but the problem is that I what to give a short from external, controller by Arduino. Have you read my messages?

User avatar
odroid
Site Admin
Posts: 31072
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 29 times
Been thanked: 146 times
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by odroid » Mon Jun 10, 2019 9:05 am

I read that.
How long did you send a 5V (high) signal from Arduino to XU4?
Do you have a DMM or oscilloscope to measure the voltage and time of Arduino GPIO output?

Dominic86
Posts: 30
Joined: Thu Jan 03, 2019 7:49 pm
languages_spoken: Italian, english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by Dominic86 » Fri Jun 14, 2019 5:46 am

Sorry, I don't have on oscilloscope, but it makes 4V and I've set the time to some steps until 6s.
I've also tried adding a transistor 2n2222 only activated from Arduino, connected from pin1 to pin12 of the XU4:
- BASE to an Arduino signal PIN
- COLLECTOR to pin1 (+5V) of XU4
- EMITTER to pin12 of XU4
for short wire pin1 and pin12.
Do you have any advice?

User avatar
odroid
Site Admin
Posts: 31072
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 29 times
Been thanked: 146 times
Contact:

Re: Odroid XU4 safe shutdown??

Unread post by odroid » Fri Jun 14, 2019 12:22 pm

4Volt should be enough to trigger the power signal.
Did you measure the voltage swing(0V-to-5V or 5V-to-0V) on the transistor EMITTER pin with your DMM?

Post Reply

Return to “Android”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest