PIC-WEB-BOX demo video

Image

 

PIC-WEB-BOX is embedded PIC web server using Microchip’s Open Source TCP-IP stack with two buttons, RS232 interface, UEXT connector, two GPIO connectors, Status LED, 2GB Sd card for web storage. The power supply can be in range 9-30VDC and the low consumption makes this board perfect for controlling things over internet or to read sensors etc.

We setup video where you can see how easy is to program it and using the build-in bootloader you can change PIC-WEB-BOX firmware over the net via TFTP.

UART, I2C, SPI interfaces are available and the video demonstrate how you can drive 4.3″ LCD, Relays, measure temperature with thermocouple etc.

SD card with 2GB is build-in for web storage.

PIC-WEB-BOX is with small enclosure.

 

LPC2378-STK Tutorial: Implementation of PPP connection with TCPNet Stack

Image

Ohmohm tip us this tutorial via Twitter. Its in Russian language but you can use Google translate.

LPC2378-STK in this case act as web server and allow other devices to connect to it via PPP.

http://wiki.ru.com/index.php/90-art/16492-realizatsiya-ppp-soedineniya-s-pomoshchyu-steka-tcpnet

Web Server with MOD-IO + MOD-ENC28J60

Image

Doing embedded Web servers with microcontrollers is not new but Andrew Rossignol blogged recently that he made embedded Web Server with MOD-IO and MOD-ENC28J60, the catch is that MOD-IO have ATMega16 microcontrollers with only 16KB Flash and 1K RAM!

You can read more about his implementation on his blog

Good work!

A13-OLinuXino web server with MOD-RGB controlling RGB LED stripe over internet

Image

A13-OLinuXino have enough power to run real apache web server with php5, java script etc like any desktop linux computer.

With MOD-RGB connected to A13-OLinuXino UEXT you can control RGB LED stripe up to 5A per channel over fancy web interface from any device with web browser like your tablet or phone.

For instance you can make cool RGB LED lighting in your home and to control then with your phone, A13-OLinuXino can connect to many different MOD-RGB controllers as they are addressable, so you can connect many LED stripes to A13-OLinuXino web server and to controll them separately.

These are step by step instructions how to duplicate yourself:

Prepare A13-OLinuXino-WIFI for web serving:

Update repository
$apt-get update

Install apache and php
$apt-get install apache2 php5 libapache2-mod-php5

Open browser and type A13 board internal network IP address. For instance http://192.168.0.30 . You should get message “It Works”

Extract demo files into apache dir. For example /var/www/RGB

Compile i2c-tool
$gcc i2c-tool

Make executable
$chmod 777 a.out

Change permitions of i2c-bus
$chmod 777 /dev/i2c*

Now open index.html. You should see color picker. Move mouse. Enjoy :)

WEB-IO control of iMX233-OLinuXino-MAXI GPIOs from web

Image

In the previous post I explained how to setup web server on iMX233-OLinuXino-MAXI now will explain how to control iMX233-OLinuXino resources through the web.

Clone WEB-IO from GitHub:

# mkdir web-io

# cd web-io

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

Copy gpio into /etc/rc.d/

# cp -vf web-io/init/gpio /etc/rc.d/

Start the script

# /etc/rc.c/gpio start

Change the permission of i2c-o

# chmod 666 /dev/i2c-0

Copy web folder into /srv/http/

# cp -rvf web-io/web/io /srv/http/

Go to your browser and enter the IP-address of the board: 192.168.0.1/io/menu_1.html

you will see the GPIOs web page and with mouse click you can change GPIO state

Running Web server with PHP on iMX233-OLinuXino-MAXI

Image

Here are the steps to run your own embedded web server with iMX233-OLinuXino-MAXI.

We assume you use ARCH Linux distribution:

1. Using pacman download the following packages:

lighttpd

# pacman -Sy lighttpd

mod_fastcgi

# pacman -Sy mod_fastcgi

php-cgi

# pacman -Sy php-cgi

2. Edit the lighttpd.conf file

#vi /etc/lighttpd/lighttpd.conf

NOTE: if you can’t find this file reboot the board and try again..

The file should look something like this

# This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions

server.port = 80
server.username = “http”
server.groupname = “http”
server.document-root = “/srv/http”
server.modules = (
“mod_access”,
“mod_fastcgi”,
“mod_accesslog”)
server.errorlog = “/var/log/lighttpd/error.log”
dir-listing.activate = “enable”

fastcgi.server = ( “.php” => ((
“bin-path” => “/usr/bin/php-cgi”,
“socket” => “/tmp/php.socket”
)))
index-file.names = ( “index.html” )
mimetype.assign = ( “.html” => “text/html”, “.htm” => “text/html”, “.txt” => “text/plain”, “.jpg” => “image/jpeg”, “.png” => “image/png”, “” => “application/octet-stream” )

Save and exit the editor. You can check the syntax with the command:

# lighttpd -t -f /etc/lighttpd/lighttpd.conf

With this configuration you should have working web-server at port 80 and implemented php

3. Reboot the board.

4. After the restart load the configuration file and start the daemon:

# lighhtpd -f /etc/lighttpd/lighttpd.conf

# /etc/rc.d/lighttpd start

You can see which daemons are started with the command:

# rc.d list

If you want to add this to autostart modify /etc/rc.conf and add lighttpd to DAEMONS array:

DAEMONS=(set-olinuxino-mac !hwclock syslog-ng network netfs crond sshd lighttpd)

5. Test the server

Now just open any browser and type the IP of the OlinuXino board and you should see “Hello” message. The folder containing the index.html is /srv/http. Just put your webpages there and your good to go.

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

Follow

Get every new post delivered to your Inbox.

Join 572 other followers