FREE shipping on all orders to Bulgaria above EUR 30 :-)

Image

Many may have noticed this, but now is time to make some buzz :-)

We quietly implemented FREE shipping option for all orders from Bulgaria which are with value above EUR 30.

When you enter in your basket items for more than EUR 30 on checkout page you will have one more shipping option: Free economy shipping (2 working days delivery) by Speedy which cost 0 BGN. Of course if you are in hurry you can still select the paid Speedy express shipping option (1 working day delivery), or to do local pickup from our office.

 

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!

Connecting Web Camera to A13-OLinuXino for video streaming

Image

In our previous blog post we setup demo where A13-OLinuXino-WIFI both was running web server with MOD-RGB control and at the same time was streaming video from Web Camera so you can see the result from the MOD-RGB control http://olimex.wordpress.com/2013/02/27/a13-olinuxino-serving-mod-rgb-and-web-cam-for-live-stream/

Here is description how the video streaming was done:

USB video cameras use UVC driver which is not enabled by default in A13-OLinuXino kernel so have to be enabled additionally.

  1. Installing UVC
  • # git clone https://github.com/linux-sunxi/linux-sunxi.git
  • # cd linux-sunxi
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- a13_defconfig;make ARCH=arm menuconfig
  • select in  Device Drivers -> Multimedia support -> Video capture adapters ->  V4L USB devices -> USB Video Class (UVC) (M)
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j5 uImage modules
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
  • # cp arch/arm/uImage /<sdcard mount point>/<FAT Partition>/.
  • # cp -aRv output/lib/modules/* /<sdcard mount point>/<EXT Partition>/lib/modules/.
  • # reboot
  • # modprobe uvcvideo

Now you have UVC support in your kernel and can use Web Camera for your Linux apps.

2.  Setup VLC Streaming

  • apt-get install vlc
  • # chmod 777 /dev/video*
  • # adduser vlc
  • # su vlc
  • # cvlc v4l2:// :v4l2-vdev=”/dev/video0″ :v4l-adev=”/dev/null” –sout
    ‘#transcode{vcodec=mpg1,vb=1024,vsize=320,hsize=240}:standard{access=http,mux=ogg,dst=:8080}’

last command is actually setting VLC streamer to stream mpg1 video 320×240 pixels at 8080 port, for more details check: http://wiki.videolan.org/

A13-OLinuXino serving MOD-RGB and WEB-CAM for live stream

Image

In the previous post I wrote how A13-OLinuXino runs Apache server and you can control MOD-RGB strip over the internet, now the A13-OLinuXino service is available online at : http://94.156.100.85:8081/RGB/ you can open this URL and see actually web pages served by A13-OLinuXino

What’s new Dimitar Gmishev did is to connect USB web camera to A13-OLinuXino too, so now you can see the RGB stripe response to the web cntrol.

To see the MOD-RGB stripe via the web cam you need video player – in our case this is open source Kantaris player with Ctrl-B you force it to play stream from internet URL and point it to : http://94.156.100.85:8080 and you will see the web cam video stream, so when you change the RGB color control you see the result on the camera!

Have fun and try it yourself

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 :)

New PIC-WEB firmware allow UEXT modules access over the web

Image

PIC-WEB with Microchip’s TCP-IP stack allow development of easy applications for the web. The best thing is that you don’t have to be PIC programmer nor to know C, you can make all your project in html, java script, ajax and you have all PIC resources as dynamic variables so you can toggle GPIOs and read ADC values etc in your html code.

We decided to extend this as PIC-WEB have UEXT connector, now you can access UEXT modules in the same convenient way, as Stanimir developed I2C and UART interface in the Microchip TCP-IP stack.

As you can see from the picture below:

Image

in the web resources you have I2C interface and thus you can send I2C commands to MOD-IO for instance over the web and drive relays ON and OFF, also read I2C sensors attached to UEXT connector.

The same resources for UART are also implemented:

Image

and this way you can interface MOD-LCD4.3 over the internet:

Image

for instance this happens when you send Clear command to the LCD over the web:

Image

so with the new firmware you can have access to all UEXT module resources: relays, sensors, LCDs etc.

RFID logger with Web server interface made with iMX233-OLinuXino-MAXI and MOD-RFID125

Image

MOD-RFID125 and MOD-RFID1356 are USB RFID readers for 125Khz and 13.56Mhz RFID tags. They both support keyboard emulation mode and CDC Serial port communication mode and can be used with iMX233-OLinuXino-MAXI.

The project on GitHub creates RFID logger which logs when user approach with it tag and is controlled via web interface.

You should download the project from GitHub and build it then add rfid.php  to your web server directory.

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.

Previous Older Entries

Follow

Get every new post delivered to your Inbox.

Join 459 other followers