{"product_id":"building-automation-8-layer-stackable-hat-for-raspberry-pi-v50-discontinued","title":"Building Automation 8-Layer Stackable HAT for Raspberry Pi (v5.0) [Discontinued]","description":"\u003cp\u003eThis HAT gives your Raspberry Pi all IO needed for Building Automation Systems.\u003c\/p\u003e\n\u003cp\u003eEight universal inputs can be software selected to process 0-10V signals, read 1K or 10K temperature sensors or dry contact counters.\u003c\/p\u003e\n\u003cp\u003eFour TRIAC outputs can drive loads up to 1A at 24VAC, and four 0-10V outputs can control light dimmers. Status LEDs display the state of all outputs.\u003c\/p\u003e\n\u003cp\u003eKeep time indefinitely, even during a power failure, using the Real Time Clock with battery backup (CR2032).\u003c\/p\u003e\n\u003cp\u003eConnect up to 16 DS18B20 temperature measurement devices on the 1-Wire interface.\u003c\/p\u003e\n\u003cp\u003eActivate the hardware watchdog to monitor and power cycle the Raspberry Pi in case of software lockup.\u003c\/p\u003e\n\u003cp\u003eTVS diodes on all inputs protect the card from external ESD, and the onboard resettable fuse protects it from accidental shorts.\u003c\/p\u003e\n\u003ch3\u003eDriving additional loads\u003c\/h3\u003e\n\u003cp\u003eHeavy loads of up to 8A and 250VAC can be driven by adding one or more 4-RELAYS cards. High DC loads of up to 10A and 250V, with fast response time and unlimited endurance can he driven by adding one or more 8-MOSFET cards.\u003c\/p\u003e\n\u003ch3\u003e1-Wire Interface\u003c\/h3\u003e\n\u003cp\u003eThe latest version of the HAT has also 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 of from the MODBUS interface.\u003c\/p\u003e\n\u003ch3\u003eCompatibility\u003c\/h3\u003e\n\u003cp\u003eThe card shares the I2C bus using only two of the 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.\u003c\/p\u003e\n\u003ch3\u003ePower requirements\u003c\/h3\u003e\n\u003cp\u003eThe card requires a 24VAC\/1A external transformer to operate and has to be powered from its own pluggable connector. The card supplies 5V and up to 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.\u003c\/p\u003e\n\u003ch3\u003ePluggable connectors\u003c\/h3\u003e\n\u003cp\u003eAll the IO's are connected to heavy-duty (8A), 3.5mm pitch pluggable connectors which make field wiring very convenient for installation and debugging.\u003c\/p\u003e\n\u003ch3\u003eDIP switch configuration\u003c\/h3\u003e\n\u003cp\u003eA six-position DIP switch is used to select the source of the RS485 port and the position of the card in the stack, if multiple cards are used. \u003c\/p\u003e\n\u003ch3\u003eStacking multiple cards\u003c\/h3\u003e\n\u003cp\u003eUp to eight cards can be stacked on your Raspberry Pi. Three positions of the configuration DIP Switch labeled ID0, ID1, ID2 are used to select the stack level. Cards can be stacked in any order.\u003c\/p\u003e\n\u003ch3\u003eRS485\/MODBUS Port\u003c\/h3\u003e\n\u003cp\u003eThe card has an RS485 port which can be driven from the Raspberry Pi, or from the local processor. Leave the TX and RX switches in the OFF position to connect the port to the local processor. Set both to ON to connect to USART1 on the Raspberry Pi GPIO connector.\u003c\/p\u003e\n\u003cp\u003eWhen DIP Switches are ON, Raspberry Pi can communicate with any device with an RS485 interface. In this configuration, the card is a passive bridge which 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:\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e~$ megabas [0]  rs485wr 0 0 0 0 0\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWhen DIP Switches are OFF, the card operates as MODBUS slave and implements the MODBUS RTU protocol. Any MODBUS master can access all the card's inputs and set all the outputs using standard MODBUS commands. A detailed list of commands implemented and parameter addresses can be found on GitHub:\u003c\/p\u003e\n\u003cp\u003eIn both configurations the local processor needs to be programmed to release (jumpers installed) or control (jumpers removed) the RS485 signals. See the command line online help for further information.\u003c\/p\u003e\n\u003cp\u003eThe last position on the DIP switch is the RS485 line terminator. Set it to ON if the card is last on the RS485 chain.\u003c\/p\u003e\n\u003cp\u003eDIN-Rail Mounting\u003c\/p\u003e\n\u003cp\u003eThe card can be installed parallel on a DIN-Rail using the DIN-Rail Kit Type 1, or perpendicular using the DIN-Rail Kit Type 2.\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eNEW:\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eSoftware selectable Universal Inputs. No DIP Switches!\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eNEW:\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eRedesigned 24V step-down delivers up to 5V\/5A to Raspberry Pi\u003c\/li\u003e\n\u003cli\u003eEight Level Stackable\u003c\/li\u003e\n\u003cli\u003eWorks with any Raspberry Pi from  ZERO to 5\u003c\/li\u003e\n\u003cli\u003eEight Universal Inputs:\n\u003cul\u003e\n\u003cli\u003e1K or 10K thermistors\u003c\/li\u003e\n\u003cli\u003e0-10V analog inputs, 500Hz sample rate\u003c\/li\u003e\n\u003cli\u003eDry contact\/counter inputs\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003eFour AC TRIAC Outputs, 1A\/24VAC\u003c\/li\u003e\n\u003cli\u003eFour 0-10V Outputs\u003c\/li\u003e\n\u003cli\u003e1-Wire interface\u003c\/li\u003e\n\u003cli\u003eFour General Purpose LEDs\u003c\/li\u003e\n\u003cli\u003e24VAC or DC Power Supply\u003c\/li\u003e\n\u003cli\u003eReal-Time Clock with Battery Backup\u003c\/li\u003e\n\u003cli\u003eOn board Hardware Watchdog\u003c\/li\u003e\n\u003cli\u003eTVS protection on all Inputs\u003c\/li\u003e\n\u003cli\u003eSoftware configurable universal inputs\u003c\/li\u003e\n\u003cli\u003ePluggable Connectors 26-16 AWG wires\u003c\/li\u003e\n\u003cli\u003eStatus LEDs on all Digital Inputs and Outputs\u003c\/li\u003e\n\u003cli\u003eRS485\/MODBUS Port with dual connectors\u003c\/li\u003e\n\u003cli\u003eUses only I2C port (address 0x48 to 0x4f), all GPIO pins available\u003c\/li\u003e\n\u003cli\u003eECCN Code EAR99\u003c\/li\u003e\n\u003cli\u003eBuilding Automation for Raspberry Pi\u003c\/li\u003e\n\u003cli\u003eAll mounting hardware included: stand-offs, screws and nuts\u003c\/li\u003e\n\u003cli\u003eOpen-source hardware and schematics\u003c\/li\u003e\n\u003cli\u003eCommand line\u003c\/li\u003e\n\u003cli\u003ePython Library\u003c\/li\u003e\n\u003cli\u003eNode-Red nodes\u003c\/li\u003e\n\u003cli\u003eCODESYS driver\u003c\/li\u003e\n\u003cli\u003eOpenPLC module\u003c\/li\u003e\n\u003cli\u003eHome Assistant Integration\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eElectrical Specifications\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cspan\u003ePower supply: 3.5mm Pluggable Connector, 24V\/1A\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003ePower consumption: 50mA @ 24V\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003eOn board resettable fuse: 1A\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan\u003e0-10V Inputs:\u003c\/span\u003e\n\u003cul\u003e\n\u003cli\u003eMaximum Input Voltage: 12V\u003c\/li\u003e\n\u003cli\u003eInput Impedance: 20KΩ\u003c\/li\u003e\n\u003cli\u003eResolution: 12 bits\u003c\/li\u003e\n\u003cli\u003eSample rate: 500 sps\u003c\/li\u003e\n\u003cli\u003eFull scale linearity: 0.15%\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003eContact closure inputs max. frequency: 100Hz\u003c\/li\u003e\n\u003cli\u003e0-10V Outputs:\n\u003cul\u003e\n\u003cli\u003eMinimum Output Load: 1KΩ\u003c\/li\u003e\n\u003cli\u003eResolution: 0.1%\u003c\/li\u003e\n\u003cli\u003eFull scale linearity: 0.1%\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003eTriac Outputs;\n\u003cul\u003e\n\u003cli\u003eMaximum Output Current: 1A\u003c\/li\u003e\n\u003cli\u003eOutput Voltage: 24VAC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eBuilding Automation Card Downloads\u003c\/li\u003e\n\u003cli\u003eCommand line\u003c\/li\u003e\n\u003cli\u003ePython Library\u003c\/li\u003e\n\u003cli\u003eNode-Red nodes\u003c\/li\u003e\n\u003cli\u003eCODESYS driver\u003c\/li\u003e\n\u003cli\u003eOpenPLC module\u003c\/li\u003e\n\u003cli\u003eHome Assistant Integration\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eQuick Start\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003ePlug your card on top of your Raspberry Pi and power up the system.\u003c\/li\u003e\n\u003cli\u003eEnable I2C communication on Raspberry Pi using raspi-config.\u003c\/li\u003e\n\u003cli\u003eInstall the software from github.com:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003e~$ git clone https:\/\/github.com\/SequentMicrosystems\/megabas-rpi.git\u003c\/strong\u003e\u003cbr\u003e\u003cstrong\u003e~$ cd \/home\/pi\/megabas-rpi\u003c\/strong\u003e\u003cbr\u003e\u003cstrong\u003e~\/megabas-rpi$ sudo make install\u003c\/strong\u003e\u003cbr\u003e\u003cstrong\u003e~\/megabas-rpi$ megabas\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe program will respond with a list of available commands.\u003c\/p\u003e\n\u003ch3\u003eSoftware\u003c\/h3\u003e\n\u003ch4\u003eSelecting the universal inputs\u003c\/h4\u003e\n\u003cp\u003eThe default setting of the Universal Inputs is 0-10V. To change it:\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003eMake sure you have the latest software installed,\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003einstructions in the \u003c\/span\u003ereadme\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan\u003eRun the command \"\u003cem\u003emegabas 0 incfgwr \u0026lt;channel\u0026gt; \u0026lt;value\u0026gt;\u003c\/em\u003e\", where\u003c\/span\u003e\u003cspan\u003e\u003c\/span\u003e\n\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cspan\u003echannel = 1-8\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003evalue = 0 for 0-10V, 1 for 1K Thermistor, 2 for 10K Thermistor\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003evalue = 1 for Dry contact\/Counter\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eFor more info on the commands type \"\u003cem\u003emegabas -h incfgwr\u003c\/em\u003e\" and \"\u003cem\u003emegabas -h incfgrd\u003c\/em\u003e\"\u003c\/p\u003e\n\u003ch4\u003eSoftware interfaces\u003c\/h4\u003e\n\u003cp\u003eYou can write your own application using the\u003cspan\u003e \u003c\/span\u003eCommand Line\u003cspan\u003e \u003c\/span\u003eor\u003cspan\u003e \u003c\/span\u003ePython Libraries\u003cspan\u003e \u003c\/span\u003eprovided. No programming is required if you use the\u003cspan\u003e \u003c\/span\u003eNode-Red nodes\u003cspan\u003e \u003c\/span\u003eprovided. You can drag-and-drop the functional blocks to design your application. Examples are provided at GitHub.\u003cspan\u003e \u003c\/span\u003eCODESYS drivers\u003cspan\u003e \u003c\/span\u003ealso provided.\u003c\/p\u003e\n\u003ch4\u003eFIield calibration\u003c\/h4\u003e\n\u003cp\u003eAll the analog inputs and outputs are calibrated at the factory, but firmware commands permit the user to re-calibrate the board, or to calibrate it to better precision. All inputs and outputs are calibrated in two points; select the two points as close to possible to the two ends of 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. Calibration process can be done using command line interface provided, type \"\u003cem\u003emegabas -h\"\u003c\/em\u003e\u003cspan\u003e \u003c\/span\u003efor a complete list of command options\u003c\/p\u003e\n\u003ch4\u003eHardware watchdog\u003c\/h4\u003e\n\u003cp\u003eThe card contains a built-in hardware watchdog which will guarantee that your mission-critical project will recover and continue running even if Raspberry Pi software hangs up. After power up the watchdog is disabled, and becomes active after it receives the first reset or first period set.\u003c\/p\u003e\n\u003cp\u003eThe default timeout is 120 seconds. Once activated, if it does not receive a subsequent reset from Raspberry Pi within 2 minutes, the watchdog cuts the power and restores it after 10 seconds.\u003c\/p\u003e\n\u003cp\u003eRaspberry Pi needs to issue a reset command on the I2C port before the timer on the watchdog 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. All the watchdog commands are described by the online help function.\u003c\/p\u003e\n\u003ch4\u003eFirmware update\u003c\/h4\u003e\n\u003cp\u003eThe card firmware can be updated in the field by running a command. 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.\u003c\/p\u003e\n\u003ch2\u003ePackage Contents\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e1x Building Automation HAT\u003c\/li\u003e\n\u003cli\u003e4x M2.5x18mm male-female brass standoffs\u003c\/li\u003e\n\u003cli\u003e4x M2.5x5mm brass screws\u003c\/li\u003e\n\u003cli\u003e4x M2.5 brass nuts\u003c\/li\u003e\n\u003cli\u003eFour 8-pin female mating connector plugs for IO's\u003c\/li\u003e\n\u003cli\u003eOne 5-pin female mating connector plug for RS485 and 1-Wire\u003c\/li\u003e\n\u003cli\u003eOne 2-pin female mating connector plug for power\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eRevision History\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAs of 12\/03\/2025 we are now stocking v5 of this board\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Sequent","offers":[{"title":"Default Title","offer_id":55919680749641,"sku":"ygt1787258034023","price":57.35,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0937\/7185\/7993\/files\/building-automation-8-layer-stackable-hat-for-raspberry-pi-v50-discontinued_1.jpg?v=1787258038","url":"https:\/\/streetclad.shop\/products\/building-automation-8-layer-stackable-hat-for-raspberry-pi-v50-discontinued","provider":"My Store","version":"1.0","type":"link"}