iMX233-OLinuXino WEB-IO


Image

Dimitar Gamishev wrote small demo code which allow iMX233-OLinuXino-Maxi GPIOs to be configured as inputs or outputs, to be read or to toggle their state with single mouse click.

Dimitar places his project on GitHub so everyone can download, check and adopt for their own use: https://github.com/hehopmajieh/olinuxino-web-io

To use WEB-IO you need web server and PHP to be installed, Dimitar decided to use lighttpd,  mod_fastcgi and php-cgi from the Angstrom feeds.

Sample lighttpd configuration : In /etc/lighttpd.conf, uncomment mod_fastcgi in server.modules section:

server.modules = (

# “mod_setenv”,
…….
“mod_fastcgi”,
# “mod_proxy”,
# “mod_simple_vhost”,
……..
# “mod_webdav”,
“mod_accesslog” )

And add php configuration to mod_fastcgi :

fastcgi.server = ( “.php” => ((
“bin-path” => “/usr/bin/php-cgi”,
“socket” => “/tmp/php.socket”
)))

Restart lighttpd :

root@olinuxino:~# /etc/init.d/lighttpd restart

now you must have working php.

Installing OLinuXino Web IO Get olinuxino-web-io sources :

git clone https://github.com/hehopmajieh/olinuxino-web-io.git

Install GPIO init script :

cd oliniuxino-web-io/init
update-rc.d gpio defaults

Copy oplinuxino-web-io files to www root directory :

cp -a oliniuxino-web-io/web/* /www/pages

you can view the GPIO initialization script at: https://github.com/hehopmajieh/olinuxino-web-io/blob/master/init/gpio

and the web page content at: https://github.com/hehopmajieh/olinuxino-web-io/tree/master/web/io

iMX233-OLinuXino-Maxi is still connected to this IP http://94.156.100.84:8111/io/ so you can play with it

here are some pictures with GPIOs toggled:

Image

and with some GPIOs defined as inputs (by click on direction text):

Image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 520 other followers

%d bloggers like this: