Posts made by felmue
RE: Connecting to a LoraWAN Gateway with Core2 and Module LoRa868
how far did you get? Is the M5Core2 talking to the LoRa module?
Keep in mind that the LoRa module was designed for M5Stack (Fire, Gray, etc.) and some GPIOs have changed from M5Stack to M5Core2. You can find a comparison here.
I don't have the LoRa module, but from looking at the schematic this should be the GPIO mapping:
LoRa <-> M5Core2 <-> Name
GPIO18 <-> GPIO18 <-> SCK
GPIO23 <-> GPIO23 <-> MOSI
GPIO19 <-> GPIO38 <-> MISO
GPIO5 <-> GPIO33 <-> CS
GPIO26 <-> GPIO26 <-> RST
GPIO36 <-> GPIO36 <-> DIO0 / INT
Note: on M5Core2 by default GPIO33 is used as external I2C (SCL) on the Groove port A. Luckily external I2C is not enabled by default so that should not interfere. Just keep in mind that you cannot use the LoRa module and external I2C.
RE: JoyC won't work with newer M5StickCPlus
getting it to compile is probably as easy as replacing
#include <M5StickCPlus.h>. The bigger issue is the larger screen size which will need to be adapted properly. If and when M5Stack engineers will fix that I have no idea. Sorry.
RE: SoftwareSerial, how do I convert those projects to use the hardware serial on the M5?
On M5Stack (Fire, Gray, Basic) the red Groove port A is only usable for I2C communication. The reason is that the same GPIOs (21, 22) are used internally for I2C communication with the IP5306 and therefore cannot be reprogrammed to be used as serial port.
Please also check out Pin Map for red Groove Port A here.
For serial communication you'd need a M5GO Bottom (or Bottom2) which provides you with the blue Groove port C.
RE: m5paper charging issues?
I am currently running a discharge experiment where I measure the battery voltage with a multimeter and compare the value to what
M5Paper is in deep sleep and I wake it from time to time and check the values.
So far the values are quite comparable. You can find the data here.
The battery in my M5Paper is a 3.7V type with an end charging voltage of 4.35V. You'll find some additional information in the above link.
RE: Deep Sleep with MicroPython
here is how I managed to get M5StickC Plus into deep sleep using MicroPython:
p37 = machine.Pin(37, mode = machine.Pin.IN, pull = machine.Pin.PULL_UP) p37.irq(trigger = machine.Pin.WAKE_LOW, wake = machine.DEEPSLEEP) machine.deepsleep(20000)
It wakes up from deep sleep either after 20 seconds or when button A is pressed.