Power from GPIO
-
- Posts: 82
- Joined: Wed Mar 30, 2016 6:24 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Power from GPIO
Is it possible to use the 5V and GND pins from the GPIO header to power the board?
According to the schematic, both the DC jack and the USB otg/power port are connected to P5V0, as well as the GPIO 5V pin, so it should work as long as correct voltage is supplied, right?
According to the schematic, both the DC jack and the USB otg/power port are connected to P5V0, as well as the GPIO 5V pin, so it should work as long as correct voltage is supplied, right?
-
- Posts: 153
- Joined: Sun Apr 14, 2013 10:34 pm
- languages_spoken: English, Swedish, Danish
- ODROIDs: U2, C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Good thing to ask about that. I'm sure Odroid will be able to answer that question. There could be an issue with the traces for the GPIO port +5V/ground only are dimensioned for 500mA, so if you try to run a 2A C2 from those, they would most certainly burn.
- odroid
- Site Admin
- Posts: 32734
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Has thanked: 220 times
- Been thanked: 369 times
- Contact:
Re: Power from GPIO
It will work if your power supply has stable 5Volt output.
But it will bypass the over-voltage, over-current protection IC NCP372.
But it will bypass the over-voltage, over-current protection IC NCP372.
-
- Posts: 82
- Joined: Wed Mar 30, 2016 6:24 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
For the project I'm planning to use the Odroid for I need to make a daughterboard anyway, so I could put a protection IC there
-
- Posts: 82
- Joined: Wed Mar 30, 2016 6:24 pm
- languages_spoken: english
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Recently tested this out using a power supply board from my old DVD player, plus a breadboard and some cables for the connection and it worked like a charm.
-
- Posts: 329
- Joined: Tue May 24, 2016 4:26 am
- languages_spoken: english, german
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Hello,odroid wrote:It will work if your power supply has stable 5Volt output.
But it will bypass the over-voltage, over-current protection IC NCP372.
also would like to try the 5V GPIO Pins for powering my Odroid C2 with an RemotePi Board from msldigital.com (RPi2 revision), which is originally designed for a Raspberry Pi 2 to power on the board with a IR Remote. The Remote Pi board has apparently a PolyFuse with 2A as over-current-protection. How many Aperes should it have for the C2? What is the C2 designed for in terms of over-corrent-protection?
If you provide the Information and if the board is going to work, then I'll submit the information to the developers from msl-digital and may be he will also offer a Odroid C2 edition of his board, which is really a nice gadget

- odroid
- Site Admin
- Posts: 32734
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English
- ODROIDs: ODROID
- Has thanked: 220 times
- Been thanked: 369 times
- Contact:
Re: Power from GPIO
The C2 consumes 250mA with very light configuration.
If you attach a few heavy USB devices and a USB HDD and some other shield add-on boards, it can consumes around 2.2Amp with heavy computing load.
2.5~2.6Amp is the threshold level of the over-current protection.
Refer our schematics.
http://www.hardkernel.com/main/products ... &tab_idx=2
If you attach a few heavy USB devices and a USB HDD and some other shield add-on boards, it can consumes around 2.2Amp with heavy computing load.
2.5~2.6Amp is the threshold level of the over-current protection.
Refer our schematics.
http://www.hardkernel.com/main/products ... &tab_idx=2
-
- Posts: 329
- Joined: Tue May 24, 2016 4:26 am
- languages_spoken: english, german
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Thank you very much! This post was very helpful, so I will keep this in Mind. At least the RemotePi's polyfuse (2A) is less then your threshold (2.6A), so I can't break the Ordoid C2 due to over-current or soodroid wrote:The C2 consumes 250mA with very light configuration.
If you attach a few heavy USB devices and a USB HDD and some other shield add-on boards, it can consumes around 2.2Amp with heavy computing load.
2.5~2.6Amp is the threshold level of over-current protection.
Refer our schematics.
http://www.hardkernel.com/main/products ... &tab_idx=2

-
- Posts: 329
- Joined: Tue May 24, 2016 4:26 am
- languages_spoken: english, german
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Hi there,odroid wrote:The C2 consumes 250mA with very light configuration.
If you attach a few heavy USB devices and a USB HDD and some other shield add-on boards, it can consumes around 2.2Amp with heavy computing load.
2.5~2.6Amp is the threshold level of the over-current protection.
Refer our schematics.
http://www.hardkernel.com/main/products ... &tab_idx=2
I have another question again regarding this topic..
As I mentioned I try to get this RemotePi Board working on the Odroid C2
Although it did not fit because of interferring parts with odroids heatsink I hooked it up and it is powering and starting my Odroid via IR and Pushbutton. The problem is now rather to get it shutdown safely to avoid SD-Card damage.
Therefore msldigital provides safe-shutdown scripts for the RemotePi board to communicate via GPIO Ports with the Odroids operating system (in my case LibreELEC, an OpenELEC kodi fork) and shutdown it safely with some GPIO commands.
The problem is, that those scripts are meant and fully working with the Raspberry Pi's but I spent the whole night yesterday (unsuccessfully) to get them work on my Odroid C2. It just does not work and unfortunately I don't know where to begin to understand what I need to change to adjust the scripts to the Odroid C2 GPIO system.
The script for a Raspberry Pi is like this:
Code: Select all
#!/bin/bash
# prevent restarting XBMC at shutdown. This is only used for OpenElec before V5
LOCKDIR="/var/lock/"
LOCKFILE="xbmc.disabled"
# this is the GPIO pin receiving the shut-down signal
GPIOpin1=14
# functions
add_omit_pids() {
omit_pids="$omit_pids -o $1"
}
safe_shutdown () {
# for OpenElec before V5
touch "$LOCKDIR/$LOCKFILE"
# for OpenElec V5 and later
systemctl stop kodi
add_omit_pids $(pidof connmand)
add_omit_pids $(pidof dbus-daemon)
killall5 -15 $omit_pids
for seq in `seq 1 10` ; do
usleep 500000
clear > /dev/tty1
killall5 -18 $omit_pids || break
done
sync
umount -a >/dev/null 2>&1
poweroff -f
}
echo "$GPIOpin1" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio$GPIOpin1/direction
while true; do
sleep 1
power=$(cat /sys/class/gpio/gpio$GPIOpin1/value)
if [ $power != 0 ]; then
echo "out" > /sys/class/gpio/gpio$GPIOpin1/direction
echo "1" > /sys/class/gpio/gpio$GPIOpin1/value
sleep 3
safe_shutdown
fi
done
GPIO Comparison of RPi2 vs OdroidC2 vs RemotePiBoard

I hope you can help me changing the script or give me a starting point :/
-
- Posts: 355
- Joined: Thu Jul 16, 2015 5:57 am
- languages_spoken: english
- ODROIDs: U3, C1+, XU4
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
"GPIOpin1" should be changed to a valid value fro the odroid-C2.
what pin you use depends on how you have it wired.
Looking at the script - the value to change it to will look like "gpio249" using the "label" value. From my understanding to use the pins 8/10 you might need to unload the Tx/Rx driver. I'm not sure.
what pin you use depends on how you have it wired.
Looking at the script - the value to change it to will look like "gpio249" using the "label" value. From my understanding to use the pins 8/10 you might need to unload the Tx/Rx driver. I'm not sure.
-
- Posts: 329
- Joined: Tue May 24, 2016 4:26 am
- languages_spoken: english, german
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
Interesting. Why 249? Don't you think it should be pin8, which results in gpio113? I mean... looking at the script it says GPIOpin1=14 which is PIN8 on Raspberry PI2. So the RemotePi board is also connected to PIN8 on odroid C2 obviously. So I thought I had to change the script from GPIOpin1=14 to GPIOpin1=113. But it does not work :/. Or do I misunderstand there something?Tpimp wrote:"GPIOpin1" should be changed to a valid value fro the odroid-C2.
what pin you use depends on how you have it wired.
Looking at the script - the value to change it to will look like "gpio249" using the "label" value. From my understanding to use the pins 8/10 you might need to unload the Tx/Rx driver. I'm not sure.
EDIT:
Crazy! That did something indeed Tpimp!! I pinned from Pin8 to Pin7 and changed the script to 249 as you said (to avoid conflict with the Tx/Rx driver) and now the odroid shutdown after I pressed the assigned button on my Remote! Thank you! The only strange thing is still that the Remote Pi Board does not cut the power afterwards. On the Raspberry Pi I press the Shutdown button, OpenELEC shuts down and then after the Raspberry Pi is powered down (still consuming power, as indicated by the red led) the Remote Pi board cuts the power after a few seconds, as it knows thanks to the script that the Raspberry is powered down then. Now here the Odroid is powered down, the blue led is not blinking anymore but the RemotePi board does not get some kind of information through the GPIO which allows it to cut the power. So may be there is a wrong timeing somewhere in the script or so, which does not suit the Odroid but suits well for RPi?
Last edited by infinity85 on Fri May 27, 2016 9:06 am, edited 1 time in total.
-
- Posts: 355
- Joined: Thu Jul 16, 2015 5:57 am
- languages_spoken: english
- ODROIDs: U3, C1+, XU4
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
oh i didnt look at the script that closely.
Why doesn't it work? Have you tried exporting the gpio pin from commandline? I believe that pin 8 is already defined for UART - meaning the GPIO pin 8 is used for something other than gpio. To make it work as GPIO you will need to alter the configuration for UART 2. (Disable it). There are likely details on the odroid HW wiki.
Why doesn't it work? Have you tried exporting the gpio pin from commandline? I believe that pin 8 is already defined for UART - meaning the GPIO pin 8 is used for something other than gpio. To make it work as GPIO you will need to alter the configuration for UART 2. (Disable it). There are likely details on the odroid HW wiki.
-
- Posts: 329
- Joined: Tue May 24, 2016 4:26 am
- languages_spoken: english, german
- ODROIDs: Odroid C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Power from GPIO
ExactlyTpimp wrote:oh i didnt look at the script that closely.
Why doesn't it work? Have you tried exporting the gpio pin from commandline? I believe that pin 8 is already defined for UART - meaning the GPIO pin 8 is used for something other than gpio. To make it work as GPIO you will need to alter the configuration for UART 2. (Disable it). There are likely details on the odroid HW wiki.

Who is online
Users browsing this forum: No registered users and 0 guests