HAPCAN - Home Automation Project
polski English



  GENERAL INFORMATION open hardwareopen source
  • Home Automation Project is a set of devices which control house or office equipment.
  • HAPCAN is Open Source Hardware (schematics and accompanying documentation available) and in large part Open Source (source codes for firmware and PC software).
  • Each device carries a single, simple function (eg dimmer button, relay).
  • Devices are connected to one bus, which simplifies installation. As a bus the UTP cable is used.
  • Nodes on the network can communicate each other. Communication is based on broadcasting. This means that a module sends a message to all the others, and they decide whether the message is useful for them.
  • HAPCAN is decentralized, there is no central module. Each node has its intelligence and can work independently. In the event of one module failure there is uninterrupted operation of the other modules. Defective unit does not block the bus.
  • The network is scalable - easily extensible with new modules.
  • Module configuration is performed without mechanical switches, but remotely through the bus, using PC and software. It is possible to change a firmware of nodes also through the bus.
  • Module configuration is stored in non-volatile memory. Loss of power does not cause loss of data.
  • The system can be programmed and controlled over the Internet.
  • System control can be done with third party software such as
    OpenRemote (www.openremote.org) - gives access from all devices with internet browser
    Command Fusion (www.commandfusion.com) - gives access from all devices with Android or iOS (iPhone, iPad)
    iRidium Mobile (www.iridiummobile.net) - gives access from all devices with Windows, Android or iOS (iPhone, iPad)
  • All system devices are designed with UNIV 3 CPU processor, which is PIC18F26K80 microcontroller with pre-programmed bootloader (or earlier UNIV 1.0 CPU processor). Bootloader allows firmware uploading, which makes the module acts as a specific device.
  •   UNIV 3 CPU
  • Network topology is the bus and must be terminated on two ends with the resistors of 120 Ohm.
      hapcan system diagram
  • The Protocol is a CAN 2.0B bus (Controller Area Network) with 125kbps speed.
  • A bus is a four-wire, 2 wires for data and 2 for power supply. The UTP cable is used.
  • przewód UTP wtyk RJ45 1 - CAN H
    2 - CAN L
    3 - not used
    4 - CAN V+
    5 - CAN GND
    6 - not used
    7 - CAN GND
    8 - CAN V+
  • Length of the bus depends on the bus wire, speed and the amount of modules. The maximum length is 500m when bus speed is 125kbps (as in this project). Following the recommendations of the CIA-303-1 organization CIA (CAN in Automation), when using UTP cable and 100 modules connected, the bus maximum length is 150m. To determine the maximum length of the bus, should also be considered: voltage drops and maximum current consumption that must not exceed the limit of UTP cables - 1.5 A
  • The maximum number of modules on the bus is 112, it comes from the maximum permissible load a CAN transceiver. It is advised to not exceed 100 nodes when using UTP cable as the bus. Buses can be combined into a larger network using CAN repeater of any brand.
  • After installation devices need to be programmed to be able to communicate each other. Programming specifies the relationship between nodes. There is dedicated software (HAPCAN Programmer) to program the system. Examples of programming can be seen here


 hapcan.com copyrights