The M-Bus Master Hat is a add-on board designed for the Raspberry Pi which controls the physical layer of an M-Bus. It can be used in conjunction with a Raspberry Pi and software such as libmbus to provide a cost effective solution to allow you to connect to and read M-Bus slaves, such as water, heat and electricity meters that implement the wired M-Bus protocol.
The M-Bus Master Hat is fully compliant with the Raspberry Pi Hat specifications. It is compatible with any Raspberry Pi which includes the 40 pin header. This includes all current Raspberry Pi boards, from the Pi 1 Model B+ (2014) onwards, including the Raspberry Pi Zero.
(Raspberry Pi Not Included)
Instructions on using the M-Bus Master Hat can be found here.
- Supports all Raspberry Pi boards from the Raspberry Pi 1 Model B+ (2014) onwards including:
- Raspberry Pi 1 Model A+.
- Raspberry Pi 1 Model B+.
- Raspberry Pi 2 Model B.
- Raspberry Pi 3 Model A+.
- Raspberry Pi 3 Model B+.
- Raspberry Pi Zero.
- Raspberry Pi Zero W.
- Raspberry Pi Zero WH.
- Supports up to 3 slave devices connected to the bus simultaneously.
- Supports up to 100m bus length.
- Supports the following baud rates:
- Optical isolation between Raspberry Pi and M-Bus.
- Hat and M-Bus powered by Raspberry Pi – no external power supply needed.
- Includes on-board protection to avoid M-Bus from drawing too much power from the Pi.
- Communcates with Raspberrry Pi GPIO serial pins – doesn’t use up a USB port.
- Provides a reduced footprint when compared to separate a Pi + USB M-Bus Master solution.
- M-Bus power is controllable via the Raspberry Pi in software.
- Power and M-Bus enabled LEDs.
- Conforms to Raspberry Pi Hat specifications.
- Same form factor as Raspberry Pi 1/3 Models A+.
- Supplied with standoffs to allow the Hat to be securely mounted to the Raspberry Pi.
- Compatible with open source M-Bus master software libmbus.
Cost is £25 per unit including shipping within the UK. For shipping to other destinations please contact me.
- One Raspberry Pi M-Bus Master Hat.
- Standoffs and nuts for attaching the Hat to a Raspberry Pi with mounting holes.
- Shipping within the UK.
- A Raspberry Pi.
- Any M-Bus slave devices.
- Software, although full instructions are available here for getting libmbus running with the Raspberry Pi M-Bus Master Hat.
A Raspbery Pi M-Bus Slave Hat, allowing the Raspberry Pi to operate as an M-Bus slave, will be available by middle 2019.
A Raspberry Pi based M-Bus Master HTTP server compatible with the Raspberry Pi M-Bus Master Hat will be available by middle 2019.
If there is enough interest, it may be possible to produce a Raspberry Pi M-Bus Master Micro-Hat, which would be the same form factor as a Raspberry Pi Zero. If you are interested in this please contact me.
The M-Bus Master Hat is based on an M-Bus Master design available as part of libmbus.
BSD 3-Clause License
Copyright (c) 2010-2012, Raditex Control AB All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.