I’m looking into building up a Zigbee device network for use at home. I’m looking for a low power micro-controller with Zigbee on board. From what I can see I won’t get this with MicroPython and so I assume I’d have to go with Arduino.
Hi Mark. What do you want to build with this? I found the simplest approach for “new users” was Arduino. Also “low power” - what requirements? Battery?
The larger project (or at least intent) is to build a security system for the house.
I have a Sonoff ZB dongle and battery powered PIR on the way for testing.
This request for a micro-controller is more about testing to see how much effort (and cost) is required to build a battery powered Zigbee field device.
I’m used to using Pico and Pi, and so Thonny & M’Python. I can go down the Arduino route but would rather stick to Python & M’Python. That said, I don’t think Zigbee is supported by M’Python so I may have no choice.
I don’t know of any “simple” Micropython Zigbee libraries. There are devices that have a Zigbee base and Micropython support, but they can be quite costly (see Digi Xbee 3).
I haven’t spent much time investigating the Arduino Zigbee low power devices’ power consumption (EM2 - or LowPower.sleep()) but can “have a play” to see what can be achieved.
I tend to use the XIAO MG24 for this with Arduino (when not using my own modules).
The Silabs Arduino Library (V5.x) makes Zigbee quite straightforward now. paired with say Home Assistant, the ZB Dongle and either Zigbee2MQTT (Z2M) or Zigbee Home Automation (ZHA), results in a versatile security system.
While you do explicitly mention Micropython, another well-understood avenue amongst HA users is ESPHome. The combo of the Zigbee component: Zigbee Component - ESPHome - Smart Home Made Simple
Deep sleep and your sensor (whatever it is)
It does however mean it locks you into the ESP32, or nRF series of microcontrollers.
One thing I forgot to mention is if this does morph into an alarm system, I’d like it to be standalone. So a Pi with a Zigbee dongle meshing to Zigbee field devices. Sure, the Pi should pass status info to HA but not be reliant on it.
As a “just for fun”, I put Home Assistant (Zigbee2MQTT) onto an Arduino Uno Q (4Gb) running on a simple “12V power bank” supported by a 30W solar supply.
Very low cost solution for an “off grid” solution.
NB. All “routers” are battery backed as well (sensors etc are battery based anyway). In my case the end result was a “use case” for a campervan control and security system.