Linux and RTAI for Building Automation

This easy-to-deploy Web-based control system uses standard phone wiring and can manage any device that supports an infrared remote control.

Currently, nine air conditioners are controlled using the system described here; all of them are located in the same building. Another 15 will be added soon. The hardware cost of each microcontroller node is $60 US, and the central control computer costs about $500 US. The other costs are the deployment of the RS-485 network and, of course, the development and implementation of the system.


The implemented system fulfills the specifications of the actual user. Because of this project's success, every new air conditioner acquired by the university must be compatible with the system. The only condition that must be met to comply with the system is every new air conditioner must have an IR remote controller.

Thanks to RTAI, the system main control task is independent of the user interface tasks running in Linux. Even in the improbable situation that Linux goes down, the system would continue on with the programmed operations.

In the future, the system may be extended easily to control, for example, the building lights, alarms, access control to restricted areas and other systems.

Resources for this article: /article/7742.

Andres Benitez ( is working on his Electronic Engineering degree from the Catholic University in Asuncion, Paraguay. The work described in this article is the final project for that degree.

Vicente Gonzalez ( is a civil engineer with an MSc degree in Automation from the Polytechnic University of Madrid, Spain. Currently, he is an assistant professor in the department of Electronic and Computer Science Engineering, Catholic University in Asuncion.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RS-485 driver availability in linux

Anonymous's picture

Please let me know how have you implemented the RS-485 functionalities in linux. Whether RS-485 driver is built-in driver of linux or we have write by our own?

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState