@zontex Thanks. Hopefully this will be soon. Especially useful for controlling devices via smartphones.
Posts made by Kees
-
RE: Is Wifi Direct available for any of the M5Stack esp32 devices?
-
Is Wifi Direct available for any of the M5Stack esp32 devices?
As the title says. Is Wifi Direct available, now or in the future?
-
RE: Control first LED on neopixel strip with FastLED with M5Stack
On Arduino using the M5Stack (in my case the Gray version) pin 21 is the pin to pass on to FastLed. For M5StickC it is pin 32.
That the M5Stack shows a bright white light for the first LED seems to occur when one also uses the M5.Power.begin() command.
This piece of code should work on both devices adjusted for the device in use://#include <M5StickC.h> #include <M5Stack.h> #include "FastLED.h" CRGB leds[15]; void setup() { M5.begin(); FastLED.addLeds<NEOPIXEL, 21>(leds, 15); // M5Stack Gray //FastLED.addLeds<NEOPIXEL, 32>(leds, 15); // M5StickC } void loop() { static uint8_t hue = 0; if (255 == hue) hue = 0; else FastLED.showColor(CHSV(hue++, 255, 50)); delay(50); }
-
Control first LED on neopixel strip with FastLED with M5Stack
Some simple questions:
Controlling the LEDs works well, but how can I control the first LED? Most of the time it is a very bright white, but it can change.
How can I use the strip on a M5Stick C? -
RE: M5StickC and 18650C endurance
@Pepsi Thanks, I could not find the call to decrease the speed. Not very much, but it helps.
-
RE: M5StickC and 18650C endurance
@liemph and @ajb2k3 Thanks. I ordered a few. It will take several weeks, but they will be useful. Also for other projects I am working on.
-
RE: M5StickC and 18650C endurance
@ajb2k3 said in M5StickC and 18650C endurance:
kewize
Can you be a bit more specific? I can not find any information with that name.
-
RE: M5StickC and 18650C endurance
@liemph Ah, nice device. Been searching the internet and found one brand with interesting devices (even with blue tooth data gathering) but the shipping costs are ridiculous. Could you tell me what brand you have. Makes searching less difficult.
-
RE: M5StickC and 18650C endurance
@crami25 . Thanks for the video. Could be useful for another project I am working on. But for this I can not let an elderly person remove the battery for charging as Pepsi wrote.
@Pepsi I can not find anything on corespeed. How did you lower this? Maybe this will give just enough endurance.
@liemph Thanks. I did a number of simple tests and got rather varying results. Ranging from 8 to 22 hours (only once), but mostly around 12 hours, but with large charging times indeed. I also used two different charging devices. How ever I would like to measure these values (charging and discharging) for better tests, but not on the screen. I want to send them using the BLE I already use. Could you share with me how you read these values.
-
RE: M5StickC and 18650C endurance
@Pepsi BTW, how much time does it take to fully charge the battery? Does probably depend on the charger, but just to have an idea.
-
RE: M5StickC and 18650C endurance
@crami25 thanks for the information. If I understand the discussion between you and Pepsi correctly I could use an older type power bank!? Nice to know but I wanted to use the supplied battery because combined it is still easy enough to carry around. I am making a simple device for my mother to carry around and use as alarm device in case of emergency for the spare days no one else is around. The device passes the emergency to a local smartphone/tablet which passes the messages to a select group of people who can assist using Google Firebase. One of them responds and this action will be reported back to the local server and then to the device and shown on the LCD. A separate power bank is possible, but less easy to carry around.
@Pepsi Nice project! So you send more messages per time interval and you use the LCD all the time and you also use both cores. The only difference is the speed of the core(s). The battery indicator (what do you use for measurement?) was at first part of my plan, but I skipped that for saving the battery. How do I change the speed? I could test with that. However it feels like there is something I am missing. It seems I should at least get the same results. Thanks anyway.
-
RE: M5StickC and 18650C endurance
@Pepsi Thanks for the information. Please confirm you use BLE and you have the LCD on on and you measure/estimate 24+ hours of battery lifetime. Is this correct?
Did you specifically exclude anything else instead of just not using it?
I use BLE as a client that sends one simple characteristic every 5 minutes. Once in 6 seconds I flash the LED for 100 msec. That is all. The LCD is set off (using some informattion I found in the forum). I do use both cores (one for BLE and one for buttons and screen (only exceptional states)). I tested a few times without further optimizing and did not get much more than 11 hours. I hope to get something like the 24+ you mention. Is there a major diiference with your setup that could explain this?
-
M5StickC and 18650C endurance
Does anyone has experimented with the 18650C battery? Can it be charged without the M5StickC. How long will charging take? How to measure battery level reliably? How long did it last on 1 charge and in what setting. I did a few simple tests with BLE (shutting down the LCD as much as possible), but the results where bit disappointing. So I am would like to here from others.
-
RE: How to detect button press with blocking call.
Thanks lukasmaximus and m5stack. Combining the two answers solved my problem. Split the work over two cores and added a suggested delay between calling M5.BtnA.wasPressed() and it seems to work as hoped for. Did not use the interrupt solution though interesting.
-
How to detect button press with blocking call.
While using BLE features the scanning for services method uses a blocking call. During that time a button press is not caught using M5.BtnA.wasPressed(). However the button press needs to be recorded and handled after returning from the blocking call.
Is that possible and how? I am using Arduino in Visual Studio IDE.
Any suggestions are welcome. -
RE: [Solved]M5Stack, Arduino, RFID Module example needed
@ajb2k3 To understand correctly. The M5Stack can use both SPI and I2C (as does the ESP32), however the RFID device I have (and you ordered) only uses I2C, and the code for the library I mentioned only supports SPI. The code you both mentioned supports I2C (Grove Port device). So assuming the tag functions suffice I should use that. Correct or nonsense.
-
RE: [Solved]M5Stack, Arduino, RFID Module example needed
Thanks, both(?). I ran the example and it does seem to work. I also saw that an addition for this library is in the pipeline: https://github.com/miguelbalboa/rfid to also support ESP32.
I can continue building software for the M5Stack hardware with my requirements using, among others, the RFID module, the same ajb2k3 ordered.
Again, thanks!!! -
RE: [Solved]M5Stack, Arduino, RFID Module example needed
Thanks, this was very helpful. So now the problem is software. As I stated in the first part of the topic: I use software found at https://github.com/miguelbalboa/rfid. Has anyone experience with this in combination with Arduino, M5Stack and the RFID Module with RC522? Or perhaps anyone tells me to use a different IDE and language (I have enough experience with C, but not C++). All suggestions are welcome.
-
RE: [Solved]M5Stack, Arduino, RFID Module example needed
@ajb2k3 Okay, I found the I2C tester and ran it. It shows the addresses 0x68 and 0x75. With the device attached it also shows 0x28. When not attached this disappears. Does this mean the device can be found and the hardware wiring is okay? If so the focus is on a software problem.
-
[Solved]M5Stack, Arduino, RFID Module example needed
Hi there, is there an example somewhere that shows how to use an RFID rc522 i2c module (module like in this post: M5Stick-C can not detected RFID Unit). I have no idea what I need to make it working (libraries and possibly other wiring). I am using the M5Stack with Arduino and installed software from here: https://github.com/miguelbalboa/rfid. Probably not usable because it shows the library might be incompatible.
Someone out there that can give me a kickstart with tutorial example how to use these three together (Arduino, M5Stack and RFID module)?