MOD-LTR501ALS demo for Arduino, OLinuXino Linux and OLinuXino Android

Image

This video present small demos we made for Arduino and OLinuXino:

http://www.youtube.com/watch?v=VDwQkD9FkQU

The Arduino code from the video: https://github.com/OLIMEX/DUINO/tree/master/AVR/MOD-LTR501ALS

The OLinuXino Linux code: https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/A13/A13-WIFI-LINUX-MOD-LTR501ALS

The OLinuXino Android code from the video: https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/A13/A13-WIFI-ANDROID-MOD-LTR501ALS

 

AVR-T32U4 ARDUINO demo code for MOD-WII-NUNCHUCK interfacing

Image

Wii-Nunchuck is low cost combo of 3 axes accelerometer, 2 axes Joystick and 2 buttons. It communicated via I2C and we made UEXT connector for it so it plugs directly to AVR-T32U4 Arduino compatible breadboard.

The Arduino library is available at: https://github.com/OLIMEX/DUINO/tree/master/AVR/WII-NUNCHUCK with demo code which prints accelerometer, joystick and button status: http://www.youtube.com/watch?v=fodnHXkwpHg

PIC32-PINGUINO NEW DEMO EXAMPLES UPLOADED

Image

PIC32-PINGUINO is Arduino like board which works with Pinguino IDE.

Several new demo examples are uploaded on our web https://www.olimex.com/dev/pic32-pinguino-otg.html

1. MOD-GPS demo example with our GPS module

2. MOD-CC2450 demo example with our low energy Bluetooth module (still not released on our web 🙂 )

3. SHIELD-EKG-EMG demo example how to interface this shield to Pinguino and measure pulse and muscle activity

4. MOD-MP3-X demo example how to play MP3 files with Pinguino

5. Sending and receiving calls and SMS with MOD-GSM and Pinguino

6. Connecting to Bluetooth enabled devices with MOD-BT and Pinguino

7. Interfacing MOD-ZIGBEE-PIR with Pinguino

8. MOD-RTC real time clock interfacing with Pinguino

9. Reading 13.56Mhz RFID tags with Pinguino and MOD-RFID1365-BOX

all examples have readme.txt inside which explains the functionality

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