herone
Posts: 6
Joined: Tue Jul 22, 2014 12:30 pm

GPIO on xbmc openElec

Thu Jul 31, 2014 11:10 am

Hi! i'm running openElec XBMC distro, and i've a couple of fans and heat sink, to keep as low as possible temperature on RPi. Now I've only one of the fans running, it's conected directly to 5V and GND. Also i've conected the other fan to GND and GPIO 7.

What i'm wondering is how i can manage gpio in openElec? I've read that openElec block GPIO access, but also i've read that it's possible to add a remote controller through GPIO, so i don't know which one is right.

If there is any way, i'm going to create a little board to attach 5v of both fans to 5v on GPIO, and ground of fans to ground of GPIO and add a switch to be able to turn on/off the fans.

Thanks!!

User avatar
RaTTuS
Posts: 10549
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 11:21 am

1) don't connect 5V to the GPIO you will kill things
2) you don't need fans or even heatsinks on the RPI - it will just make it louder and consume more power
3) don't connect GPIO to 5V [see 1)]
4) you can use the GPIO to switch things on and off
5) the GPIO pins can only really take 16mA MAX ....
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
DougieLawson
Posts: 38536
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 11:35 am

herone wrote: i've a couple of fans and heat sink, to keep as low as possible temperature on RPi.
Take them off your RPi and put them in a drawer for some other project.

The RPi runs just fine with no fan and no heat sink in any environment from -25°C to +70°C. Cooling the RPi with heat sinks or fans has zero effect and is 100% pointless.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

herone
Posts: 6
Joined: Tue Jul 22, 2014 12:30 pm

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 12:30 pm

Hi, i know that there is no need to to it, but I want to.

The temp without fans is about 75ºCelsius, and with them is arround 60.

User avatar
DougieLawson
Posts: 38536
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 12:33 pm

herone wrote:Hi, i know that there is no need to to it, but I want to.

The temp without fans is about 75ºCelsius, and with them is arround 60.
You must live in the centre of Death Valley or the Sahara Desert.

If you insist, use a GPIO pin to switch a transistor or opto-isolator that then switches a relay. Use the relay to control your pointless fan from an external power supply that is completely independent of the Raspberry Pi's power supply.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
JRV
Posts: 270
Joined: Mon Apr 02, 2012 1:39 pm
Location: Minneapolis, MN

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 1:01 pm

Listen to these guys, they are two of the most knowledgeable on this forum.

User avatar
RaTTuS
Posts: 10549
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: GPIO on xbmc openElec

Thu Jul 31, 2014 3:29 pm

where in the world are you ?
what is the ambient temp ?
what does
vcgencmd measure_temp
say ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Beginners”