Irrighino and Yun Rev.2

luca 02/02/2019 2

Irrighino has been one of my most appreciated projects: it’s a automatic irrigation system – based on Arduino Yun – with a web-based interface, optimized for smartphones.

After having published the project on this blog, it was reviewed by Open Electronics and a dedicated shield was also produced. The shield is still sold on Futurashop:

irrighino-shield-001

When it was launched the new Arduino Yun (named Rev.2) and the Yun Shield, the Linux distribution running on the board, OpenWrt, was updated as well. In particular, a key component for Irrighino has been replaced with its newer version, the php engine.

If you own a “first generation” Arduino Yun and you’d like to test the new functionalities shipped with Rev.2, in this post I explain how you can update the operating system of your board!

The commands you have to issue on your Yun to install all the required components for Irrighino now are:

install php with cgi and cli

opkg install php7 php7-cgi php7-cli

install curl, json and sqlite modules

opkg install php7-mod-curl php7-mod-json php7-mod-pdo php7-mod-pdo-sqlite

install zoneinfo

opkg install zoneinfo-core zoneinfo-europe

(replace zoneinfo-europe with the one related to your continent)

Final step is to configure the uhttpd webserver to run the php engine.

Edit the /etc/config/uhttpd file adding the following line (pay attention to its position!):

irrighino-php-002

then restart the webserver with:

irrighino-php-003

Now the Yun is ready to run Irrighino!

2 Comments »

  1. Andrea 15/07/2019 at 15:06 - Reply

    Ciao Luca,
    complimenti per il progetto!
    Premetto che sono nuovo nel mondo di Arduino, ma sarebbe possibile aumentare il numero di elettrovalvole comandate da 4 a 8?
    Grazie

    • luca 17/07/2019 at 09:59 - Reply

      Ciao Andrea, si mettendo mano al codice è fattibile… so che altri utenti lo hanno personalizzato per aggiungere anche più elettrovalvole (diventa forse un po’ scomoda la pagina per schedulare i tempi con tante colonne ma si può fare)

Leave A Response »

This website uses cookies to ensure you get the best experience on our website maggiori informazioni

Questo sito utilizza i cookie per fonire la migliore esperienza di navigazione possibile. Continuando a utilizzare questo sito senza modificare le impostazioni dei cookie o clicchi su "Accetta" permetti al loro utilizzo.

Chiudi