M5Core2 AWS with COM.X Zigbee Module
-
I have a problem with M5Core2 AWS. I test COM.X Zigbee module with example code but can't communication with each other.
can anyone use this module with M5Core2? please explain the solution, thank you. -
@m5stack
Do you have M5core2 example code for COM.X Zigbee Module ?
I find in Github but haven't example code for M5core2 -
Hello @earthphisek
I do not have the COM.X Zigbee module so I cannot test this myself. However with the following modifications the M5Stack example should work with an M5Core2 too.
- Replace
#define <M5Stack.h>
with#define <M5Core2.h>
. - Replace
Serial2.begin(38400, SERIAL_8N1, 16, 17);
withSerial2.begin(38400, SERIAL_8N1, 13, 14);
.
Hardware: in the COM.X Zigbee module set the two dip switches 16 and 17 to
on
and leave the other four inoff
position.Explanation: On the M5Core2 GPIO16 and GPIO17 have been replaced with GPIO13 and GPIO14. But the labeling in most modules still follow the numbering used with M5Stack devices.
Thanks
Felix - Replace