Also wondering the same. Did you ever find the UiFlow for LAN module?
Best posts made by microdynasty
-
RE: Lan Module - UIFlow Integration
Latest posts made by microdynasty
-
RE: Using ENV.III UNIT on M5StickC Plus:getting I2C error 19
Felix,
I'm only interested in temperature. They are both the same in that regard. SHT30:0x44
I am concerned it throws the error 19. I thought at least it would connect on the I2C :(
The ENVIII page states it is compaitilble with UiFlow.
If you look at the page for: ENV2](https://docs.m5stack.com/en/unit/envII)
M5 states "This product is EOL now, we've released the updated version ENV III Unit with Temperature Humidity Air Pressure Sensor (SHT30+QMP6988) which is fully compatible with this product."
I don't mind coding the I2C interface in MicroPython vs Blocky, but I don't know how. I have done write to i2C for the 4-unit relay. But I have never done READ.
i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x26, freq=400000)
i2c0.write_u8(0x11, 0x00) -
Using ENV.III UNIT on M5StickC Plus:getting I2C error 19
Hello,
I am trying to get the ENV.iii unit (not hat) to with on the M5 stickC (regular and plus).
I have got the ENV.ii hat to work fine (but accuracy is not great next to the hot LCD).
So I thought I would use the UNIT, which happens to be i2c.
Using UiFLow 1.7.5, 1.8.1 firmware.
The ENV.iii is not supported in blocky, but the ENV.ii is, and the specs say it is compatible, so...autogenerated code is:
from m5stack import *
from m5ui import *
from uiflow import *
import unitsetScreenColor(0x111111)
env20 = unit.get(unit.ENV2, unit.PORTA)
lcd.print((env20.temperature), 0, 0, 0xffffff)I get an error: "I2C bus error (19)"
I have tried different M5 stick, different wires, different ENV.iii units.Thanks for any help!
-
RE: How to power Core 2 from AC100v.
Well, I have perhaps 30 of the M5 units. All of them power using the AC power USB adaptor.
My advice is to be sure it has sufficient power (2.5A+)
-
RE: Lan Module - UIFlow Integration
Just for FYI, as of this date, the W5500 hardwire ethernet port is not well implemented in MicroPython (use wireless instead). The POE function works fine so you can use it to power your module, but communication is not working on the wired LAN.
It works fine in Arduino IDE.
-
RE: How to deal with Time DST (daylight saving time) ?
Not sure if it works for this application, but in another project we used an API from google that returns current time anywhere in the world.
Also as a general point, UTC+0 (Zulu) time is the way to go. It has no DST, and can be displayed as local time using an API such as the above to get the DST anywhere on earth on any day/time.
https://developers.google.com/maps/documentation/timezone/get-started
-
RE: Lan Module - UIFlow Integration
Felix,
Thanks for the reply.
I am trying to use the LAN (W5500) in MicroPython.
I am using the M5Stack grey.
I found the following in the MicroPython language reference, but how to use it in MicroPython for M5, this seems specific to Pyboard?
import network
nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.X5, pyb.Pin.board.X4)
print(nic.ifconfig())Thank you.
-
RE: Lan Module - UIFlow Integration
Also wondering the same. Did you ever find the UiFlow for LAN module?