Unfortunately as of today, my Battery isn't working again. I can update and run will using USB power but unplugging kills the M5Core.
konacurrents
@konacurrents
Architect and developer, especially of IoT applications.
Posts made by konacurrents
-
RE: Core2 V1.1 Battery not working if unplugged
-
RE: Core2 V1.1 Battery not working if unplugged
That's very enlightening. I've since got the battery to work but it seems to be working along the lines you mention. I actually exchanged batteries with Core 1 and it worked perfectly. But the Core 2 has some issues.
When the battery is dead, plugging in won't bring ut alive until maybe 20 minutes.
So I don't think it's totally the battery but rather how it connects and Core 2 management of the power.
Strange.
Thanks -
RE: Example of arduino code for recording arbitrary 433mhz RF remote?
@teastain The 4 devices I'm using are the ESP-32 board, M5ATOM, M5Core2 and M5StickC-Plus. Are all three M5's with their 1 GROVE connection all called Port B? I use the HAT as well.
Reading the code of the RF433 provided by M5Stack, it says Port B (which the M5Stack is using). So I confirm @ignoramati results of nothing.
Separate topic is needed for all the Port and I2C designs.
Thanks for the port info. I've had trouble figuring that out. I'm also trying to figure out the I2C design. I have a PbHUB to use too. I really want the many sensors to be available and dynamically turned on based on a configuration file (so all compiled into the same executable). -
RE: Example of arduino code for recording arbitrary 433mhz RF remote?
I'm just now trying to do the same thing, and the sample code doesn't do anything (as you pointed out). I'm using an M5Stick-C-Plus and I'm still confused on the Port A/B thing. So maybe it's not using Port B correctly?
A better example program would really go a long way!
-
RE: How to use RF Unit RF433T and RF433R
I'm also looking at what to do with these two RF433 units. I want to send a RF signal to the TV to change the channel. I assume this is what can be achieved (after I know the correct codes).
The following example looks like going down the right direction (albeit with a different RF device).
If anyone has other examples for the M5Stack and RF433 units specifically that would be great.
-
Core2 V1.1 Battery not working if unplugged
I have the Core2 original and now the v1.1. But the new unit is not working
when unplugged.Are there any special v1.1 calls to get the battery to work? Just like the
vibration needing a new call in v1.1, is there something special?The battery voltage is working (which I've used for battery percentage).
batVoltage = M5.Axp.GetBatVoltage(); batPercentage = (batVoltage < 3.2) ? 0 : ( batVoltage - 3.2 ) * 100;
I've tried the following to no avail.
M5.Axp.SetLcdVoltage(3300); M5.Axp.SetBusPowerMode(0); M5.Axp.SetCHGCurrent(AXP192::kCHG_190mA);
Is it possible the battery isn't working? It's plugged in (after opening the unit).
thanks. -
RE: How to use multiple Units wired via GROVE? PbHub?
Thanks, that helps a lot. This is my first use of the Unit devices. I've use the HAT on the M5
which obviously is only 1 at a time.I'll get the PbHUB and the I2C version of the Ultrasonic Distance Unit.
I'm working on many sensors to help disabled users. These sensors help those in
wheelchairs where they might not be able to even touch buttons. So providing a multitude
of options (motion, tilt, distance, LUX, buttons) - even the touch of the Core2 is very sensitive
which is good.Thanks,
-
RE: How to use multiple Units wired via GROVE? PbHub?
Thanks for the detailed replies to my wire questions. Maybe with
this more concrete example you could let me know what I need.I have the following:
- M5 Atom Lite (or M5 or Core2)
- Key Unit (Button)
- PIR Motion Unit
- Ultrasonic Distance
4.a Unit I/O
4.b I2C
I can get the Key Unit working using 1 GROVE wire.
#define KEY_PIN 33I assume to connect the other Units I use the Grove-T Connector.
But how do I talk to the PIR and other Units?
a: To connect the PIR motion sensor, do I need a HUB?
b: Adding the Distance Unit: Would the I/O (4a) or I2C (4b) be
easier to integrate?In this example,
a. is the PbHUB required?
b. Or is the PaHUB better?I'm using straight Arduino C as I have a complex
capability built already. I just want to add some
of these Unit sensors.Thanks.
scott -
RE: How to use multiple Units wired via GROVE? PbHub?
Ok, now I'm confused. Can you explain the difference between I2C and Unit I/O? I just want to plug in the the HUB and have multiple Unit's.
I'm ordering the PbHUB but also want the Ultrasonic Distance, but it comes in 2 modes:
Ultrasonic Distance Unit I/O (RCWL-9620)
Ultrasonic Distance Unit I2C (RCWL-9620)Or do I get the PaHUB ??
-
RE: How to use multiple Units wired via GROVE? PbHub?
Will need to try it out (once I get one). But how would C code know which PIN is for which device? The examples all use a specific pin, so I assume there is a way to specify once they are plugged in?
My challenge in general is to extend my M5 with plug-n-play sensors - but without modifying the base code. The HAT on M5 works but some devices are too slow if they aren't plugged in (PIR is fast but LUX is slow).
So it would be great if there was a way to know what sensors are active. Worst case is a configuration message over BLE or MQTT denoting what's plugged in and which pins, etc. I'm doing that with LUX as once it gets a bad reading, it turns that code off. But a MQTT message can ask to recheck and turn it on.
Finally is PbHUB required to plug in a couple sensor units? (A) if same unit kind, (b) different unit. PIR and KEY for example.
Thanks