Unfortunately as of today, my Battery isn't working again. I can update and run will using USB power but unplugging kills the M5Core.
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
-
How to use multiple Units wired via GROVE? PbHub?
I've been using the HAT for the M5 successfully but there is only one at a time. I just got my first UNIT running connect to the M5 (the Key Unit touch button).
My question is how am I supposed to run multiple sensor UNIT's using all the daisy chaining of the GROVE wires? I just came upon the PbHUB concept that seems to be needed. Can someone explain the PbHUB?
My real question is how does the code work when almost all are using the same PIN numbers - and now there will be multiple UNIT's running at the same time. What PINS do they user? Is the PbHUB the way to change those PIN numbers for say 4 push button Keys?
Please help enlighten me on how one develops code for this plug-n-play variability?
Thanks.
-
RE: Core 2 bricked after attempting to install firmware
Can you use arduino and load say the factory test? I've been having great success with the Core2 running almost identical code as my M5 (but using their M5Core2 library - which supports the M5Stick api's.)
I'm using a mac not windows.
-
RE: Retrieving data over HTTPS (M5 Paper, but I think this is a generic question)
@casascius Interesting. In my case I'm using real certs from my cloud and it works. I don't know how a DNS name would work outside of localhost names.
My main issue stated above was that I want a connection to stay open, and I wasn't able to figure that out.
thanks.
-
Can Core2 Capacitive Touch Buttons be colored?
I have the Core2 working with almost the same display as the M5 and the 3 capacitive touch buttons are working (as M5.BtnA and M5.BtnB in my case). So I can mimic the M5's A and B buttons.
My question is whether the small circles can be colored so they can be seen, as this is outside the LCD display drawing.
Note: I had been trying to get the M5StackC-Plus to absorb the M5Display from the Core2 - but that was not going anywhere. Turns out the M5Core2 libraries had most of the M5Stack code so things compiled and worked (including MQTT, etc).
-
RE: so exicted to verify the IR unit is working on AtomLite
I have almost all of them but in this case the M5Stick CPlus. It says IR is G9.
-
RE: so exicted to verify the IR unit is working on AtomLite
@dawncold cool. I'm just trying to get the IR to work as well on the ATOM or M5. Well I only have M5 for now with IR. Do you know how that might work on M5 as there are no pins?
You also exposed the issue I'm having is that my code base uses M5Stack.h and all these other libraries, like M5Atom don't work nicely together (different pin numbers for same name, etc). Outside of the complicated M5United, it sure seems the M5 community could do a better way of separating their libraries and not overload M5. I'm still stuck on the M5Core2 merge with M5Stack.
thanks. -
RE: Trim end of string
@annagat_nabolcat It would help to know what language are you using?
-
RE: Infrared on the M5StickC+ and UIFlow, is it me or?
@erich could you share some of your IR code? I would like to send the IR commands so
my disabled brother-in-law can get the weather channel on TV.I've been coding to the ESP32 devices and have an extensive capability for MQTT messaging, support of numerous HAT's, the ATOM Socket, driving stepper motor, OTA updates and BLE.
But I've never done any of the IR work. It seems if I can get the right codes it would be easy
to send a message (via MQTT) to trigger doing just that (even from a motion sensor or QR code).I assume I need to receive the IR first, and then play them back.
Any help would be appreciated.thanks,
scott -
RE: Mixing M5Atom.h and M5StickCPlus.h
I'm now onto getting the M5Core2 to work with my existing infrastructure. Looking at the M5United, I cannot see how that would be used (as the readme doesn't have a Core2 define).
It sure seems that the M5 code provided by M5Stack and others shouldn't reuse the M5 class name. Instead they should have say M5Core2 instead of M5, and M5Core2Display not M5Display.
Sure it works for the standalone programs, but trying to merge code would need something like
your M5United. Looking under the covers of say M5Core2's M5 class, they include their own Lcd (for example) which isn't compatible with other Lcd's.As I mentioned in the previous post, for the ATOM pulling over the LED was relatively easy. But for the M5Core2 there is a lot of code that overlaps with the M5 base (starting with M5Display).
eg. M5Display.h is defined 3 places (and I use the M5StickCPlus in my main code base).
./libraries/M5Core2/src/M5Display.h
./libraries/M5StickCPlus/src/M5Display.h
./libraries/M5Stack/src/M5Display.hI'll look more at M5United and if you can point to getting their M5DIsplay working that would help.
thanks -
RE: Mixing M5Atom.h and M5StickCPlus.h
The M5United looks impressive. I'll look at migrating if it fits my size constraints.