Saturday evening and I finally found some time to play a bit more with my Arduino Starter Kit bought around Christmas. Actually I was playing with basic stuff when I bought it, but the connection wires shipped with starter kit are actually not so good for fast prototyping - they are very stiff, so I ordered some flexible ones - be sure to get yourself these as it will make your Arduino first steps much easier.
I wanted to go with some more complexity this time and went with LCD Hello World example. There was fairly lot of pins to connect to Arduino, breadboard and LCD, and that’s really fun. if you wear a glasses like me and are farsighted, prepare for some struggle. Good thing, nothing was broken or burnt even when I connected wrong pins. You will need to have Arduino IDE to run the examples, which I did - loaded the basic C++ LCD demo. I needed to resolve the issue being unable to upload the demo on Arduino - comm port option (USB really) was greyed out - quick fix was to run arduino with sudo.
The board setup for it seemed different a little bit, so I rewired whole board just in case, trying hard to hit right pins under poor light. But hey, at least is not soldering :) . Eventually it worked, loading the LCD demo. Uploading to Arduino went smoothly, all you need to do is run
node yourProgram.js and it will do it for you. Again some work was needed to obtain control over comm port though. There are numerous of methods provided by the library, and you can even define your own characters (5 x 8), something like:
lcd.createChar("duck2", [0, 12, 29, 15, 15, 6, 0]);
…where array of numbers is of course 8 rows of 5 bits.
So after all that was fun and inspiring, lots of ideas coming to mind, I’ll be sure playing with it more in the future; be aware that Internet of Things might be the next big thing!