HOWTO: M5Stack with GPS, GSM and LoRa, all at the same time
-
I've decided to update the original post to make it clearer in some parts, add some more detailed information as well as links to the datasheets of the modules. For the time being I'll keep updating this so we have a single reference point for information about these modules. Please let me know if you can think of other important information about any of these modules and I'll add it.
Eventually there should probably be a more formal reference manual for this project.
-
Ii just recently ordered these stacks and i guess you save me a ton of work.
thanks for taking the efforts of sharing. -
I've updated the BoardTest.ino code, text and images to reflect that it now tests all the wires to and from each board separately. So for instance, it sends a query to the GPS to see if the RX line is also hooked up, tests the GPS PPS signal and sees if the reset lines to the LoRa and GSM modules actually work. The text also documents which lines can be safely left off if you are low on GPIO lines.
-
Just used your code to test with a LoRa module.
I just have the black M5 Stack and the LoRa module, but the screen goes white when I have the LoRa module attached? -
@kieran-osborne With just the M5Stack and the LoRa module?
Try pushing it on a little harder first.
Try to see if there are any obvious shorts involving the MISO, MOSI or SCK lines, because that would cause the screen to not work. (Can you verify that it's still running by maybe printing something to the serial port?)
If that doesn't work maybe try cutting the traces between the solder pads one by one to see if it's one of those wires that the M5Stack doesn't like. But I think your SPI bus is shorted.
Rop
-
Hi Rop,
I have tried pushing a little harder on it but didn't change anything.
On the serial port i'm getting:
"Testing LoRa ...
Init Succeeded
Reset line works" -
I have had issues with my M5 Stack keep popping up on windows with USB device not recognised, so wonder if somehow they are related, is a bit strange
-
Hi rop,
When I run your code the screen is completely white,
but If i press the A button (button far left), it looks like it refreshes the screen and then the text is displayed?, weirder and weirder haha -
I think i've found the issue,
I think when the LoRa.begin function is called it is locking up the SPI so that it then can't talk to it, but on the next time round the loop the screen's SPI.begin is being called again so is able to access it and draw to the screen -
I've updated the post and the demo code inside it to show the fix of pulling up the CS pin on the LoRa board before initialising the screen to prevent the screen from staying white.