Skip to content

SequentMicrosystems/megabas-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

megabas-rpi

megabas-rpi

This is the command to control Building Automation Stackable Card for Raspberry Pi

MEGA-BAS

Setup

Don't forget to enable I2C communication:

sudo raspi-config

Usage

cd
git clone https://github.com/SequentMicrosystems/megabas-rpi.git
cd megabas-rpi/
sudo make install

Now you can access all the functions of the BAS board through the command "megabas". Use -h option for help:

megabas -h

Update

If you clone the repository, any updates can be made with the following commands:

cd megabas-rpi/  
git pull
sudo make install

Software selectable input type

For cards version 5.0 and up, input types are not dipswitch selectable, as for the previous versions, but software selectable. The default setting of the Inputs type is 0-10V, to change it:

  1. Make sure you have the latest megabas command installed, as explained above.
  2. Run the command megabas <stack> incfgwr <channel> <value>, where
    • stack = 0 - 7, Stack level selectable from ID0, ID1, ID2 dipswitches
    • channel = 1 - 8, Channel number you need to modify
    • value = 0 for 0-10V, 1 for 1K Thermistor or Dry contact, 2 for 10K Thermistor

For more info on the commands' parameters run megabas -h incfgwr and megabas -h incfgrd. The input type settings are saved into the card's nonvolatile memory, so will be preserved after power-down.

Additional Drivers / Resources

Python Library

Firmware update instructions.

Node-RED

CODESYS Driver

Home Assistant Integration

Open PLC

Arduino Library

The board can act as Modbus RTU slave device, checkout modbus instructions

About

Command Line, Python lib, Node-Red and CODESYS driver for Building Automation Card

Topics

Resources

License

Stars

11 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors