@peter There is an offline version of UIFlow that you can use to program the M5Stick when set in USB mode but you can also access the M5Stick and run Micropython in repl over usb mode.
Glad you got it working now
From what I understand 192.168.4.1 is the host address of the network master. After initial setup where you connect the stick to you network, the modem should reallocate an address as the stick is no longer a master device and is now a slave.
My modem does.
@rop Any intention of a stick version?
@Rop is M5EZ supporting the Stick C?
I have had a query from the Facebook group.
It seems that the ESP32 (M5Stack and M5Stick) Groove I2C pins (and all GPIO pins of the ESP32) are 5 Volt tolerant.
The M5 16-Key Capacitive Touch Unit uses a MEGA328 Chip directly connected to the Groove I2C connector of the M5Stack/Stick. The 328P runs on 5 Volts. The SCL / SDA connectors are protected with inline 470 Ohm resistors limiting the current to the ESP32 GPIO Inputs (21,22 resp. 32,33). You will find the full schematic in https://m5stack.com/collections/m5-unit/products/makey-unit under the "More information" tab. (The 328P is programmed to behave as an I2C slave).
Baoshi in his blog (https://www.ba0sh1.com/blog/2016/08/03/is-esp8266-io-really-5v-tolerant/) found some old datashees from expressif describing the ESP8266: "All digital IO pins are protected from over-voltage with a snap-back circuit connected between the pad and ground. The snap back voltage is typically about 6 Volts, and the holding voltage is 5.8 V".
Conclusion: If you are using external 5 Volt devices with an I2C Groove bus attached to the M5Stack, you will be on the safe side by limiting the current to the SCL/SDA inputs to the M5 Stack passing through 470 ohm resistors. There is no need to implement level shifters. You may even put 4K7 resistors on the SDA/SCL lines as pull up resistors to 5 Volts.
A point of notice here that the signal lines are not always 5v as the units often have their own 3v3 voltage regulator fitted to them.
A second point of notice with the makey makey, it is possible to "Short Out" some of the pins which can cause the M5Stack to restart or just shut down.
First time I did this i though i had killed my M5Core.
@mawg Both the raspberry pi and M5Stack have 3.3v io pins and 5v supply pins.
Most M5Stack units and modules have their own 5v >3.3v regulator but in.
Take a look at my wip book here.
Flipped USB-C cable around, now it is showing up in OSX.
Going to stick ... ha... with Arduino IDE for now.
I'm assuming you are you the lead that came with the Stick?
If the issue pops up again try a new high quality lead as this is a known issue with cheep leads.
Also mark the usbc end so that you know which way around it should be.
@mawg They should be as the follow the grove standard for pin connection.
@shintobi that is a good idea but for a more local version, you could used an M5Stack as a hub that connects to the pc over uart and have the sticks send the data to the stack.
UIFlow has peer to peer connections between units.
It should be possible. You will need to connect the stickC’s to a server to receive the data and send it to unity and then something in unity to receive the data a deal with it. You can make a basic tracker in UIFlow which will record movement and transmit the values.