Arduino + LCD + XBee = Magic!
First of all, this blog post will be written in English. I think the time has come for me to gradually move to writing all my blog posts in English, since I meet more and more people who reply to my tweets and blog posts with something along the lines of ‘wtf kind of language is that anyway?’. So, moving on, this is the next part of my ‘Arduino Shutters Control’ project, and this time, I decided that, a remote for the shutters is good, but not good enough. So I embarked on my new quest, the Remote Control with LCD. I am using an Arduino Fio (just like last time), a 128×64 Graphic LCD from Adafruit, and a Series1 XBee.
I decided to create a simple menu for controlling my shutters, since now I have two Arduinos for controlling my shutters at home, one for each room, so I set up the following simple commands:
Shutter 1 – Open
Shutter 1 – Close
Shutter 1 – Stop
Shutter 2 – Open
Shutter 2 – Close
Shutter 2 – Stop
Pretty self-explanatory, ‘Open’ starts opening the shutters, ‘Close’ starts closing them, and ‘Stop’ halts them in their current position. Here is a quick video, and this time I’m talking! :P
For anyone interested, you can grab the code for the Arduino Shutter Control node, the Remote, as well as a header file with some definitions for more readable code here.
I have to admit that I haven’t been using the XBee modules with the best efficiency and clean code until recently. You can see that on the linked source code as well, since this is a project I completed a while ago. Expect my next project to be much better though :) Who knows, I might even make a guide for using XBee the ‘correct’ way :)
Until then, so long, and thanks for all the fish!