themarkmcintosh
Posts: 3
Joined: Thu Jun 07, 2012 5:23 pm

RPI I/O control software

Thu Jun 07, 2012 5:31 pm

Hi All,
I'm new to Linux and have recently received my RPI. I have got Debian up and running but am wondering if there is any software that can be used to easily control the I/O ports. Is there anything like this out there? I would like to be able to use the GPIO to switch relays etc as part of a bigger control system.

Many thanks,
Mark

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: RPI I/O control software

Fri Jun 08, 2012 8:04 am

I would recommend python (the programming language).
http://pypi.python.org/pypi/RPi.GPIO
You can install above package by executing setup.py with sudo.
Then GPIO functionality should only be a import away.

PS: You can also use GPIO pins from the command-line or bash scripts , you just need to write to some device files (linux filesystem)

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

themarkmcintosh
Posts: 3
Joined: Thu Jun 07, 2012 5:23 pm

Re: RPI I/O control software

Fri Jun 08, 2012 1:01 pm

Thanks for your reply!
I will look into using Python. I'm not much of a programmer and though there might be some kind of GUI that was already available but I am more than happy to have a play with Python!

dannyboy
Posts: 5
Joined: Mon Jun 04, 2012 11:10 am

Re: RPI I/O control software

Fri Jun 08, 2012 10:51 pm

I've got some LEDs flashing by using the tutorial in issue 2 of www.themagpi.com I found that pretty useful
@dannyboy6661984 on Twitter

themarkmcintosh
Posts: 3
Joined: Thu Jun 07, 2012 5:23 pm

Re: RPI I/O control software

Sat Jun 09, 2012 2:05 am

That will be my next port of call then! Thanks dannyboy

Russell Jones
Posts: 1
Joined: Sat Aug 04, 2012 8:45 pm

Re: RPI I/O control software

Sat Aug 04, 2012 8:48 pm

A good place to start with python (based on working through their JavaScript tutorials) is Code Academy. They provide online interactive programming tutorials

xinyun
Posts: 8
Joined: Tue Dec 18, 2012 9:53 am

Re: RPI I/O control software

Fri Feb 22, 2013 9:24 am

ghans wrote:I would recommend python (the programming language).
http://pypi.python.org/pypi/RPi.GPIO
You can install above package by executing setup.py with sudo.
Then GPIO functionality should only be a import away.

PS: You can also use GPIO pins from the command-line or bash scripts , you just need to write to some device files (linux filesystem)

ghans
i can not do "You can install above package by executing setup.py with sudo." as you say.command not found!

User avatar
croston
Posts: 707
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: RPI I/O control software

Fri Feb 22, 2013 9:41 am

RPi.GPIO is installed by default in recent versions of Raspbian so you don't need to install it manually.

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: RPI I/O control software

Sun Feb 24, 2013 12:40 am

This is the GPIO control SW I'm going to try as soon as my set of jumper cables shows up:

https://projects.drogon.net/raspberry-p ... d-install/

Return to “Beginners”