CPAN Perl and the Arduino

Tags:

Interesting - CPAN has a library to interface with a Arduino to use a Ardunio equipped with a LCD display!

The Arduino is an open-source physical computing platform. Among the many things one might want to do with such a device is connect an LCD to it and print stuff (at least that's what I wanted to do with it).

There are a couple of excellent low-level libraries that can be linked into an Arduino sketch to provide this functionality. I've chosen the LCD4Bit library to link against. The PerLCD sketch provides a few higher level functions as well as a serial listener.

This Perl library provides a very high level interface for formatting and sending messages to the sketch's listener. Once the device is wired up to an LCD (a fairly trivial task), the USB serial drivers installed, and the sketch compiled and uploaded, getting text on the screen should be no more difficult than the example above: Zero knowledge of LCDs required.

The sketch provided can obviously be used with a client library written in any language, the choice of Perl was (almost) arbitrary.

[From Device::Arduino::LCD - Perl Interface to the PerLCD Arduino Sketch. - search.cpan.org]

Technorati Tags:Technorati Tags:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.