Skip to content

SequentMicrosystems/megaind-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

131 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

megaind-rpi

megaind-rpi

Industrial Automation Stackable Card for Raspberry Pi

The command line interface (CLI) included in this repository gives you full access to every feature of the card. It is the quickest way to get started and is all you need to operate the card.

If you would rather use a different platform, you can access the same functionality through dedicated, ready-to-use integrations:

For a firmware update, please follow the instructions in the link below:

Prerequisites

1. Enable I2C communication

This only needs to be done once on each Raspberry Pi.

On Raspberry Pi OS, install raspi-config first:

sudo apt update
sudo apt install raspi-config

Then run:

sudo raspi-config

Follow the steps in the 3 screenshots below to enable I2C communication. After that, reboot the Raspberry Pi for the changes to take effect.

Enable I2C Enable I2C Enable I2C

Reboot the Raspberry Pi:

sudo reboot
2. Install git and build-essential packages
sudo apt update
sudo apt install git build-essential

Installation

Install the CLI with:

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

To update to the latest version:

cd ~/megaind-rpi/  
git pull
sudo make install

Usage

Now you can access all the functions of the Industrial Automation Stackable Card for Raspberry Pi through the command "megaind". Use -h option for help:

megaind -h

For a more detailed help message about a specific function, use the -h option after the function name. For example:

megaind -h rtcrd

Example output:

megaind -h rtcrd
    rtcrd:      Get the internal RTC  date and time(mm/dd/yy hh:mm:ss)
    Usage:      megaind <id> rtcrd
    Example:    megaind 0 rtcrd; Get the nternal RTC time and date on Board #0

Examples

RTC Usage

About

Command Line, Python, and Node-Red for Industrial Automation Card

Resources

License

Stars

27 stars

Watchers

4 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors