martedì 8 marzo 2011

WiFi sensors - accelerometer SPI/I2C

With OpenPicus it is very easy to build wireless sensors; in this example we are working with an 3 axes accelerometer by ST (LIS3LV02DL) connetted to FlyPort through SPI.
The idea of measure vibrations was started with my friend Massimo for the thesis of his student Andrea, in which he measured vibrations by using a LIS3LV02DL connected to an Ethernet modules running ContikiOS.This is an evolution of that project, where the ethernet connection is replaced by WiFi and collection of data is entirely web-based:


For firmware development I used OpenPicusIDE rev1.0. Steps were:
- create a new project
- copy accelerometer library on ExternalLib directory
- write code in FlyportTask()
- modify webpages and import to the project (Thanks to Andrea Mazza for his help with Flot ;-)
- write code to manage web pages request (es. HTTPPrint_acc)
- build all and download firmware
the result should be:


If you are interested, you can download code:
hg clone https://serra82@bitbucket.org/serra82/flyport_surveillance_ide1.0

domenica 6 marzo 2011

Multiroom Audio

I like music and movies as many people! More generally I like multimedia and Home Automation (called Domotica  in italian) and I have been following the development of set-top-box systems, standard bus communication and standards for streaming for several years.
Let's start from audio streaming: in 2006 I found a fantastic device by Slimdevices, now aquired by Logitech and better known as SqueezeBox, for streaming audio anywhere, so as to achieve a simple multiroom audio system.
A similar device was Roku SoundBridge, but it is no longer for sale.
Apple offers AirPort Express Base Station with AirTunes, which looks like a simple battery charger, but in addition to ethernet, wifi and usb connectivity, it provides an audio output to connect your stereo system.
Newcomer, but already very popular for its Apple style, there's Sonos, designed for multiroom audio and available in a variety of devices.

All this is not enough for me, I'd like a modular device, presenting itself as a true WiFi speaker, using open protocols and standards, as well able to reproduce music decently and that is why the choice of devices on the market shrinks dramatically!

Work began connecting OpenPicus to a VLSI MP3 decoder with excellent results:


and it's continuing testing some integrated amplifiers to achieve our WiFi loudspeaker:



Stay tuned for news!

Wifi e Microcontrollori

Per iniziare con i post di elettronica voglio segnalare un progetto veramente interessante su cui sto lavorando attivamente in questo periodo: Openpicus


Con questa piccola scheda costituita da un micro 24FJ256GA106 e un modulo wifi MRF24WB0MA; è possibile realizzare dispositivi wireless 802.11 in maniera semplice ed economica.
Per la precisione il modulo wifi vero e proprio, chiamato flyport,  è solo la parte superiore; infatti quest'ultimo va incastrato su una daughterboard, chiamata nest, che puo' essere personalizzabile e creata adhoc in base alle esigenze e ai requisiti del progetto che si vuole realizzare.

E' possibile programmare il modulo in C con l'IDE e il compilatore rilasciati da Microchip scaricando un programma di esempio dal sito di OpenPicus, ma una forte semplificazione è data utilizzando la wizard all'interno dell' IDE fatto appositamente dal progetto Openpicus:

Il progetto è molto promettente ed attivo, credo che arriverà presto alla popolarita di Arduino; inoltre le video guide stanno aumentando ogni giorno come i post del forum e nuovi utilizzatori.

Per maggiori informazioni non vi resta che visitare www.openpicus.com

PS: un caloroso ringraziamento a Claudio e Gabriele, ideatori del progetto!

Presentazione

Buongiorno Internet!
era un pò di tempo che volevo organizzare meglio alcuni lavori fatti in questi anni e condividere qualche strano progetto con qualche strano sviluppatore come me; così la scusa di provare Blogger mi ha finalmente spinto ad iniziare.
Probabilmente anche la cena dell'altra sera ha contribuito, in particolare il vino ;-)


Per iniziare un ottimo Chardonnay di Milesti Mici vendemmiato nel '92, un buon Cabernet di Cricova e per finire non poteva mancare un bel bicchiere di Cagnina!!

A presto per qualche post di informatica ed elettronica,
Andrea Seraghiti