Yeah, it's possible! You just need to make sure the modules use different communication protocols or assign different pins if they're both using something like SPI. The CC1101 typically uses SPI, and the PN532 can use I2C or SPI—so setting the PN532 to I2C might make things easier.
Best posts made by Slarck
-
RE: How to add multiple modules
-
RE: Looking up the example code for "Rover C Pro + M5StickC PLUS2" & "JoyC + M5StickC PLUS2".
Hey @roanevic, just jumping in here, I’ve tried that same setup recently. The example code Kuriko linked is a good starting point:
https://github.com/m5stack/M5-RoverC/tree/master/examples/RoverC_JoyC_RemoteIt’s designed for StickC, StickC Plus, and the StickC Plus2, so it should work with your hardware. Just make sure you have all the necessary libraries installed (like M5StickCPlus2, RoverC, and JoyC) in the Arduino IDE. Let me know if you hit any snags setting it up.
Latest posts made by Slarck
-
RE: PSA: Core 2 not powering off.
@ajb2k3 said in PSA: Core 2 not powering off.:
You may notice that sometimes the Core2 device may not power off when the button is held in for five seconds.
I have noticed that the Button used for power is prone to breaking (I have already notified M5Stack about this issue on multiple occasions)
You can replace the switch, but a simpler fix is to use the "battery paper trick" and stick a small block of insulated substance on top of the switch to hold the cover down.I haven't included pictures as the switch is so small and difficult to photograph.
P.S. This doesn't just affect Core2 devices, and any device that uses this switch may suffer.
Thank you for taking the Time treadad.Adam Bryant
Forum Admin Team and Unofficial documentation and guide creator.UIFlow, so easy an adult can learn it!
If I don't know it, be patient!
I've either not learned it or am too drunk to remember it!
Author of the WIP UIFlow Handbook!
M5Black, Go, Stick, Core2, and so much more, it can't fit in here!Thanks for the heads-up, Adam. I’ve run into the same issue a couple of times and thought it was just me not holding the button long enough. Good to know it might be a hardware fault. I’ll give the battery paper trick a try and see if that helps. Appreciate you sharing the workaround and letting M5Stack know, hopefully they address it in future batches.
-
RE: Looking up the example code for "Rover C Pro + M5StickC PLUS2" & "JoyC + M5StickC PLUS2".
Hey @roanevic, just jumping in here, I’ve tried that same setup recently. The example code Kuriko linked is a good starting point:
https://github.com/m5stack/M5-RoverC/tree/master/examples/RoverC_JoyC_RemoteIt’s designed for StickC, StickC Plus, and the StickC Plus2, so it should work with your hardware. Just make sure you have all the necessary libraries installed (like M5StickCPlus2, RoverC, and JoyC) in the Arduino IDE. Let me know if you hit any snags setting it up.
-
RE: Organisation of this forum
Thanks for the update, ajb2k3. Good to know a full overhaul is in the works, that should deal with navigation and finding the right topics. Looking forward to seeing how it improves the forum experience.
-
RE: 2024 Community Challenge Growing green.
It's great to see technology and nature coming together like this. I've wanted to experiment with automation ideas for my small balcony garden, and this challenge might be the perfect opportunity to start using my M5Stack gear finally. I’m looking forward to seeing what everyone creates!
-
RE: How to add multiple modules
Yeah, it's possible! You just need to make sure the modules use different communication protocols or assign different pins if they're both using something like SPI. The CC1101 typically uses SPI, and the PN532 can use I2C or SPI—so setting the PN532 to I2C might make things easier.
-
RE: compiling sensor module firmware
For compiling the firmware from the M5-PbHUB-Internal-FW repo, try using the Arduino IDE or PlatformIO. Both are open-source and offer a more modern experience. You can also use the command line with PlatformIO, which is pretty flexible.
-
RE: M5dial as bluetooth media controller
Use ESP32's Bluetooth HID capabilities to turn the M5Dial into a media controller. There are some ESP32 BLE HID examples on GitHub that might help, and check the M5Stack Docs or their GitHub for similar projects.
-
RE: DC Input questions on M5dial
I agree! USB power (5V) won’t be enough since the DC input requires at least 6V. If you’re set on using the DC port, you’d need a step-up converter. Otherwise, adding a USB connector to the wires sounds like the easier option.
-
RE: m5dial: wifi not work when rfid is enabled
The RFID module might be interfering with the WiFi signal. Try using a different power source or check if the RFID is drawing too much current and test with a different router or 2.4GHz channel.
-
RE: How to add multiple modules
Adding multiple modules to an M5Stick is possible, but you'll need to plan the connections carefully to avoid pin conflicts. Check the pinouts and consider using an expansion board. With the right firmware, you can get both the CC1101 and PN532 working together.