🤖Have you ever tried Chat.M5Stack.com before asking??😎
  • Dices example not working on M5Stick C

    8
    0 Votes
    8 Posts
    16k Views
    I
    @noiseislife said in Dices example not working on M5Stick C: To get around this I saved the Example sketch to disk, deleted the file Dices.ino and then opened Dices_MPU6886.iso. You will get a message about requiring that the directory name be changed, which it does for you. You should now be able to successfully compile the sketch to the m5stick. Thank you. Now it works !
  • M5StickC, macOS and USB-C to USB-C cable

    4
    0 Votes
    4 Posts
    10k Views
    P
    @macsbug Thank you. I installed the update already, and it works (I no longer need to jump G0 to GND to flash). However, I still can't use a USB-C to USB-C cable directly, need to go through a USB-C hub.
  • M5Stick C - ESPHOME- Home Assistance Integration

    2
    0 Votes
    2 Posts
    5k Views
    m5stackM
    could you try to use baud rate 115200.
  • BugC problems

    3
    1
    0 Votes
    3 Posts
    7k Views
    D
    Thanks for the reply. Got the Arduino library example to work. Looking forward to a UIFlow fix. See my review at: Another Uncontrollable Bug: BugC from M5Stack: https://www.facebook.com/thomas.andrews.357/media_set?set=a.2587374321367103&type=3
  • M5 Stickc Arduino samples - Temperature reading issue

    8
    0 Votes
    8 Posts
    14k Views
    R
    It will be best if the sensor is connected 5-10cm away from the device. The sensor connected directly to the connector will be heated by the device through paths and goldpins and you can not help it. As far as dht11 / 12 is concerned, I already subtract these 2-3 degrees in the program from the read temperature, which are overstated. But you have to check it yourself experimentally if the result is overstated with any other sensor in the temperature range you want to measure. Unfortunately, I don't have dht22, so I won't tell you anything specific about its accuracy or results.
  • M5StickC + 18650C (HAT external battery) BAT pin

    3
    0 Votes
    3 Posts
    5k Views
    liemphL
    @m5stack This means that when the Stick is plug to the 18650C accessory, the 18650C accessory will not charge the internal battery?
  • Using CardKB (not hat) with M5StickC

    3
    0 Votes
    3 Posts
    6k Views
    M
    Thanks! it works.
  • Basic question about input from Arduino to M5Stick C

    4
    0 Votes
    4 Posts
    6k Views
    G
    Hi again ajb2k3, I am not sure why but it does not seem to work with my set up. Here is the code I am using for the stickC to trigger camera. Where would I put the code you suggested? Thanks in advance! #include <M5StickC.h> #include <BlueMagic32.h> #define LED_PIN 10 #define TRIGGER G0 void setup() { M5.begin(); Serial.begin(115200); pinMode(LED_PIN, OUTPUT); digitalWrite(LED_PIN, HIGH); BMDConnection.begin("BlueMagic32"); BMDControl = BMDConnection.connect(); M5.Lcd.setTextColor(TFT_WHITE); M5.Lcd.setTextSize(2); M5.Lcd.setRotation(3); M5.Lcd.fillScreen(TFT_BLUE); } void loop() { // read data int value = digitalRead(36);// read the pin(0: not detectd 1: detected) M5.update(); if (M5.BtnB.wasPressed()) { ESP.restart(); } if (BMDConnection.available()) { M5.Lcd.drawCentreString(BMDControl->timecode(), 80, 34, 2); if (M5.BtnA.wasPressed()) { BMDControl->toggleRecording(); } if (BMDControl->isRecording()) { M5.Lcd.setTextColor(WHITE); digitalWrite(LED_PIN, LOW); } else { M5.Lcd.setTextColor(TFT_GREEN); digitalWrite(LED_PIN, HIGH); } M5.Lcd.fillScreen(TFT_BLACK); } if (M5.BtnA.wasPressed()) { BMDControl->toggleRecording(); } if (BMDControl->isRecording()) { M5.Lcd.setTextColor(RED); digitalWrite(LED_PIN, LOW); } }
  • Detecting USB power supply

    3
    0 Votes
    3 Posts
    5k Views
    S
    Thanks for the hint. I got the script working now!
  • M5 stick (non C) - Can't find Arduino frimware for the screen

    3
    0 Votes
    3 Posts
    5k Views
    lukasmaximusL
    I made these examples quite some time ago https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Core/M5Stick/Arduino using u8glib library to display text is quite easy but I could never get my head around the glyph drawing
  • Problem with M5TextBox

    8
    0 Votes
    8 Posts
    16k Views
    M5StickFreaklerM
    @noiseislife With a little "wait_ms()" its more clear what you mean :-) from m5stack import * from m5ui import * from uiflow import * setScreenColor(0x111111) label1 = M5TextBox(05, 05, "a", lcd.FONT_Default,0xFFFFFF, rotate=0) label2 = M5TextBox(05, 20, "x", lcd.FONT_Default,0xFFFFFF, rotate=0) label0 = M5TextBox(16, 50, "A", lcd.FONT_DejaVu72,0xFFFFFF, rotate=0) for angle in range(91): label0.setRotate(angle) label1.setText('angle:' + str(angle)) wait_ms(50) for posX in range(16, 256): label0.setPosition(x=posX) label2.setText('pos-x:' + str(posX)) wait_ms(100) I am sure it is ones more a bug :-) You can check this, if you let the angle zero. You can see that the char disappears at pos-x = 33. And the same behavior occurs, if you have rotated the char. It is obviously one more of the uncountable bugs. @M5Stack: Why does the M5Stack not draw a char if a small part is outside of the screen? We can display a char half way, if it is rotated, but not if it is at angle 0 degrees. That makes no sense. Maybe someone would like to program a scrolling text so that chars appears on the right and disappears on the left. Best regards Thomas
  • Looking for MicroPython module documentation

    5
    0 Votes
    5 Posts
    14k Views
    lukasmaximusL
    You can also check out the wiki page on uiflow github page, it's pretty old and a lot of things are missing but you may find what you are looking for there https://github.com/m5stack/UIFlow-Code/wiki/M5UI
  • Battery current gets abnormally high when pressing button B

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem (Re)Loading UIFLow firmware.

    8
    0 Votes
    8 Posts
    14k Views
    ajb2k3A
    @noiseislife Glad you got to the bottom of it. I keep forgetting that option.
  • Analog Pin

    4
    0 Votes
    4 Posts
    9k Views
    sysdl132S
    My earth unit can work on stickC with analog reading. [image: 1583563553793-6dcceb3f-0d82-4a36-879f-7f342fa224e5-%E5%9B%BE%E7%89%87.png] (Maybe is G33) #define analogpin 33 //maybe it's 32
  • Wake Up M5StickC via USB Power from Deepsleep

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Remote function on M5stickC

    7
    1 Votes
    7 Posts
    14k Views
    lukasmaximusL
    I was able to get a simple example of turning the stick LED on and off with a slider switch. You need to alter the coordinates and size of the qr in order to make it visible on the screen [image: 1583288007416-screen-shot-2020-03-04-at-13.11.55.png] Response is a little slow though, you may want to try IFTT or try to use http request and control from the browser or make an app with mit app inventor, I made a guide here a while ago, It's using arduino but I hope to do an updated version once I get an android phone. https://www.hackster.io/lukasmaximus89/m5stack-and-mit-app-inventor-47bd32
  • Is it normal to lose UIFlow program after shutdown/battery discharge?

    3
    0 Votes
    3 Posts
    3k Views
    S
    @ajb2k3 that worked, thanks
  • Input voltage and powering StickC

    4
    0 Votes
    4 Posts
    7k Views
    ajb2k3A
    @clocey 5V to 5<- (pin 8) and gnd to gnd (pin1)
  • How to detect button press with blocking call.

    4
    0 Votes
    4 Posts
    9k Views
    K
    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.