Building Automation 8-Layer Stackable HAT for Raspberry Pi

$100.00

Eight universal inputs: 1K/10K Thermistors, 0-10V, Dry Contact; Four 24VAC outputs; Four 0-10V outputs; 1-Wire, RS485, RTC, Watchdog.


Ships From: United States (US)

Supplier: Sequent Microsystems SKU: SM-I-002 Categories: , Tags: , More From:

Building Automation 8-Layer Stackable HAT for Raspberry Pi

Bring all the IOs needed for building automation systems to the Raspberry Pi. Eight universal inputs can be software-selected to process 0-10V signals, read 1K or 10K temperature sensors, or dry contact counters. Four TRIAC outputs can drive loads up to 1A at 24VAC. Four 0-10V outputs can control light dimmers. Status LEDs display the state of all outputs. Use the Real Time Clock with battery backup to keep time indefinitely even during power failure. Connect up to 16 DS18B20 temperature measurement devices on the 1-Wire interface. Activate the hardware watchdog to monitor and power cycle the Raspberry Pi in case of software lockup. TVS diodes on all inputs protect the card from external ESD, and the on-board resettable fuse protects it from accidental shorts.

Driving Additional Loads: Adding one or more 4-RELAYS cards can drive heavy loads of up to 8A and 250VAC. Adding one or more 8-MOSFET cards can drive high DC loads of up to 10A and 250V, with fast response time and unlimited endurance.

1-Wire Interface: The latest version of the HAT also has a standard 1-Wire interface. Up to 16 DS18B20 temperature measurement devices can be connected in parallel. Devices can be accessed from the command line or the MODBUS interface.

Compatibility: The card shares the I2C bus using only two Raspberry Pi’s GPIO pins to manage all eight cards. This feature leaves the remaining 24 GPIOs available for the user. The card is compatible with all Raspberry Pi versions from Zero to 5 and has all the necessary I/Os for your Building Automation projects.

Power Requirements: The card requires a 24VAC/1A external transformer to operate and must be powered from its pluggable connector. It supplies 5V and 3A to the Raspberry Pi on the GPIO bus. A local 3.3V regulator powers the rest of the circuitry. The card needs 50mA to operate.

Pluggable Connectors: All the IOs are connected to heavy-duty (8A), 3.5mm pitch pluggable connectors, which make field wiring very convenient for installation and debugging.

DIP Switch Configuration: If multiple cards are used, a six-position DIP switch selects the source of the RS485 port and the card’s position in the stack.

DIP Switch for the Building Automation HAT

Stacking Multiple Cards: Up to eight cards can be stacked on your Raspberry Pi. The three positions of the configuration DIP Switch, labeled ID0, ID1, and ID2, select the stack level. Cards can be stacked in any order.

RS485/MODBUS Port: The card has an RS485 port that can be driven from the Raspberry Pi or the local processor. Leave the TX and RX switches OFF to connect the port to the local processor. Set both to ON to connect to USART1 on the Raspberry Pi GPIO connector. When DIP Switches are ON, Raspberry Pi can communicate with any device with an RS485 interface. In this configuration, the card is a passive bridge that implements only the hardware levels required by the RS485 protocol. To use this configuration, you need to tell the local processor to release control of the RS485 bus:

~$ megabas [0]  rs485wr 0 0 0 0 0

When DIP Switches are OFF, the card operates as a MODBUS slave and implements the MODBUS RTU protocol. Any MODBUS master can access all the cards’ input sets and all the outputs using standard MODBUS commands. A detailed list of commands implemented and parameter addresses can be found on GitHub:

In both configurations, the local processor must be programmed to release (jumpers installed) or control (jumpers removed) the RS485 signals. For further information, see the command-line online help.

RS485 Terminator: The RS485 line terminator is the last position on the DIP switch. If the card is last on the RS485 chain, set it to ON.

Card Layout
Building Automation 8-Layer Stackable HAT for Raspberry Pi
Electrical Specifications

  • Power supply: 3.5mm Pluggable Connector, 24V/1A
  • Power consumption: 50mA @ 24V
  • On board resettable fuse: 1A
  • 0-10V Inputs:
    • Maximum Input Voltage: 12V
    • Input Impedance: 20KΩ
    • Resolution: 12 bits
    • Sample rate: 500 sps
    • Full scale linearity: 0.15%
  • Contact closure inputs max. frequency: 100Hz
  • 0-10V Outputs:
    • Minimum Output Load: 1KΩ
    • Resolution: 0.1%
    • Full scale linearity: 0.1%
  • Triac Outputs;
    • Maximum Output Current: 1A
    • Output Voltage: 24VAC

Mechanical Specifications
BAS Mechanical Dimensions

Features

  • NEW: Software selectable Universal Inputs. No DIP Switches!
  • NEW: Redesigned 24V step-down delivers up to 5V/5A to Raspberry Pi
  • Eight Level Stackable
  • Works with any Raspberry Pi from  ZERO to 5
  • Eight Universal Inputs:
    • 1K or 10K thermistors
    • 0-10V analog inputs, 500Hz sample rate
    • Dry contact/counter inputs
  • Four AC TRIAC Outputs, 1A/24VAC
  • Four 0-10V Outputs
  • 1-Wire interface
  • Four General-Purpose LEDs
  • 24VAC or DC Power Supply
  • Real Time Clock with Battery Backup
  • On board Hardware Watchdog
  • TVS protection on all Inputs
  • Software configurable universal inputs
  • Pluggable Connectors 26-16 AWG wires
  • Status LEDs on all Digital Inputs and Outputs
  • RS485/MODBUS Port with dual connectors
  • Uses only I2C port (address 0x48 to 0x4f), all GPIO pins available
  • ECCN Code EAR99
  • Building Automation for Raspberry Pi
  • All mounting hardware included: standoffs, screws and nuts
  • Open source hardware and schematics
  • Command line
  • Python Library
  • Node-Red nodes
  • CODESYS driver
  • OpenPLC module
  • Home Assistant Integration

Building Automation Downloads

Software

Selecting The Universal Inputs

The default setting of the Universal Inputs is 0-10V. To change it:

  1. Make sure you have the latest software installed, and instructions in the readme
  2. Run the command “megabas 0 incfgwr <channel> <value>“, where
  • channel = 1-8
  • value = 0 for 0-10V, 1 for 1K Thermistor, 2 for 10K Thermistor
  • value = 1 for Dry contact/Counter

For more info on the commands, type “megabas -h incfgwr” and “megabas -h incfgrd

Software Interfaces: You can write your application using the Command Line or Python Libraries provided. No programming is required if you use the Node-Red nodes provided. You can drag-and-drop the functional blocks to design your application. Examples are provided at GitHub. CODESYS drivers are also provided.

Field Calibration: All the analog inputs and outputs are calibrated at the factory, but firmware commands permit the user to recalibrate the board or to calibrate it to better precision. All inputs and outputs are calibrated at two points; select the two points as close as possible to the two ends of the scale. To calibrate the inputs, the user must provide analog signals. (Example: to calibrate 0-10V inputs, the user must provide a 10V adjustable power supply.) To calibrate the outputs, the user must issue a command to set the output to a desired value, measure the result, and issue the calibration command to store the value. The calibration process can be done using the command line interface provided; type “megabas -h” for a complete list of command options.

Hardware Watchdog: The card contains a built-in watchdog that guarantees that your mission-critical project will recover and continue running even if the Raspberry Pi software hangs up. After powering up, the watchdog is disabled and becomes active after it receives the first reset or first period set. The default timeout is 120 seconds. Once activated, if it does not receive a subsequent reset from the Raspberry Pi within 2 minutes, the watchdog cuts the power and restores it after 10 seconds.

Raspberry Pi must issue a reset command on the I2C port before the watchdog’s timer expires. The timer period after power up and the active timer period can be set from the command line. The number of resets is stored in flash and can be accessed or cleared from the command line. The online help function describes all the watchdog commands.

Firmware Update: A command can update the card firmware in the field. The update is made with the latest firmware version located on our servers. More instructions about the process can be found on GitHub. Please make sure there is no process, like Node-Red or Python scripts, that tries to access the card during the update process.

It Includes:

When you purchase the Building Automation Card, you will receive the following items:

Building Automation Card for Raspberry Pi
Building Automation 8-Layer Stackable HAT for Raspberry Pi

Mounting hardware

  • Four M2.5x18mm male-female brass standoffs
  • Four M2.5x5mm brass screws
  • Four M2.5 brass nuts

Building Automation HAT brass hardware
All required connector plugs

  • Four 8-pin female mating connector plugs for IOs.
  • One 5-pin female mating connector plug for RS485 and 1-Wire.
  • One 2-pin female mating connector plug for power.

Connector Plugs for Building Automation HAT

Quick Start

  1. Plug your card on top of your Raspberry Pi and power up the system
  2. Enable I2C communication on Raspberry Pi using raspi-config.
  3. Install the software from github.com:

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

The program will respond with a list of available commands.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

At Sequent Microsystems, we design Raspberry Pi HATS with analog and digital inputs and outputs, relays, solid-state drivers, Serial ports, OpenPLC, Node-RED, Codesys, Python, Arduino, and Command Line drivers. OEM and custom design inquiries welcomed.

Shipping Policy

FAST DELIVERY! We ship worldwide via FedEx, UPS, DHL, and USPS because they’re Fast, Reliable, Affordable, and Easily Trackable. We process orders in 24 hours; delivery may take 4 to 7 days or sooner, depending on your location. Once shipped, you will receive an email with your tracking number.

Ships From: Not all our products are shipped from the USA; we ship some from regions like China, Taiwan, or Europe. Therefore, the tariff you will pay will differ depending on which country your order will be shipped from because not all countries charge the same amount. For example, if the US imposes a 30% tariff on goods from China, other countries may impose a much lower tariff. Check the "Ships From:" label on this product page to see from which country we will ship it.

TARIFF: While not all products require a tariff, some may require a minimal or no tariff. If applicable, the buyer will pay the tariff within their respective country. The total amount of your order does not include a tariff. Please enter a reachable phone number during checkout so the Shipping Company can contact you to pay the tariff once your parcel arrives at your destination.

Why don't we add tariffs to the product's retail price? If all countries imposed the same tariff amount and used the same currency, we would have added the tariff amount to the product price. However, we do not do that because each country charges a different amount and uses a different currency, while some do not even charge a tariff. Therefore, we can't add a tariff to the product's retail pricing. Oz Robotics' manufacturing partners, or suppliers are not responsible for tariffs. We will not cancel your order or refund you if you do not pay the tariff. More Details.

SHIPPING COSTS: For some industrial products, e.g., heavy wheels, CNC machines, etc., the shipping cost is calculated based on the product weight, not quantity. For lower shipping costs for orders with multiple items, please email us at sales@ozrobotics.com before you buy. We show shipping rates on the product page under the SHIPPING tab. To see the shipping cost for your country, click add to cart on the product page.

PRODUCT DATASHEET AND MANUAL: If applicable, the Product Documentation, such as the Datasheet, CAD Design, STP Files, Manuals, Reference Materials, and Tutorials, will be available for download upon purchase from the My Account as needed. On the checkout page, please create an account to download product-related files upon purchase. You won’t be able to download otherwise.

##################################

Return Policy

WITHIN 5 HOURS: Mistakes happen when ordering, so you have 5 hours to request an order cancellation, but we cannot refund the PayPal or Stripe Processing fee because they do not refund us.

WITHIN 24 HOURS: Your order has either been shipped, prepared to ship, or custom-made. If you still want to cancel your order after 5 Hours, we will deduct 30% of the total for restocking + PayPal or Stripe processing fees and the Return Shipping cost for unopened packages.

AFTER RECEIVING YOUR ORDER: If you decide not to keep your order after it arrives, we will deduct 80% of the total + the shipping fee if we find it refundable after a review. Please see our Refund and Replacement Policy

EXCHANGE POLICY: Oz Robotics wants you to be happy with your new purchase. However, we abide by the policy of our manufacturer partners because we do not manufacture these products; they do. Once you use the product, we cannot issue a refund. But we will offer an exchange for a wrongly purchased product with irreversible defects or technical problems. The customer will pay the shipping fee for a wrongly purchased product or similar issues. If the product you purchased is defective, email us at support@ozrobotics.com with photos or a video of the defective parts so we can evaluate it before you send it. More on Replacement Policy.

REFUND POLICY: Oz Robotics accepts refunds on a minimal basis unless there is a manufacturing defect. For electronic items, returns are only accepted on devices with serious and irreversible problems; meanwhile, the customer must apply for the returns within seven days of delivery. Before a refund acceptance, please include images or a video and any other proof of the defect. For more info please visit Refund Policy.

Once we agreed on a return, you can ship your defective item to the provided address, which you should receive from us first. Please ship the order in its original packaging with all the accessories and additional parts. If the Required Parts are not sent back, they will be billed for or expected to be shipped later. We will check the product for testing once all items have arrived. In your package, include a signed letter stating the reason for the product return, the original receipt, proof of defect, images, a video, etc. It will help us to speed up the process for you.

When returning the item, the customer is responsible for the shipping cost. However, we will assess the product, and if it is determined that there is a manufacturing defect and the product is not fixable, we will refund the shipping cost, repair, replace, or refund the full amount to the customer.

Do not return your product to our New York office. For any exchange or refunds, email us first at support@ozrobotics.com for us to provide you with the steps that need to be followed. Any product you return must be in the same condition you received and returned in the original packaging without being used. Please keep the original receipt.

Shipping costs

Shipping from United States (US)
Within United States (US) $5.00
Outside United States (US) $25.00

National Shipping Details

Minimum shipping charge per order $5.00
Maximum shipping charge per order $20.00

International Shipping Details

Minimum shipping charge per order $25.00
Maximum shipping charge per order $50.00