Odroid-C1 goes IoT (Internet of Things)

today I made a first attempt towards the IoT (Internet of Things). Wouldn’t it be nice if your wife says:“Darling, please turn on the lights. It’s too dark in here.“
Than you take your tablet or smartphone, open a shell, type some lines and … wow!!! the light begins to shine 🙂

Of course you could write a script (PHP, python or whatever) that is running on your webserver that does this job with a graphical interface. So you would only have to press a button to turn on/off your light, coffee machine, TV or anything else. When you manage the webserver to be available from the internet, you just became a member of the IOT. Congrats.

These are the simple 4 steps to make all your electrical 220 Volt powered hardware available from the internet.

Power on the Odroid-C1, open a shell and connect to it. Type:

sudo sh -c „echo 87 > /sys/class/gpio/export“ //export gpio pin #87
sudo sh -c „echo out > /sys/class/gpio/gpio87/direction“ //set gpio pin #87 as output pin
sudo sh -c „echo 0 > /sys/class/gpio/gpio87/value“ //light off
sudo sh -c „echo 1 > /sys/class/gpio/gpio87/value“ //light on

and your done! Yes, it is as easy as that.