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.

2 Gedanken zu „Odroid-C1 goes IoT (Internet of Things)“

  1. As I don’t use or have any Mac devices (too expensive) there was no possibility for me to test that. Now I hope it should work.

  2. Newb here just picking up info and trying to figure it all out at once, ass I always do! So can you make your videos html 5 for us mac idiots?? I just watch your stuff on a mac while at work

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.