Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. theMusicMan
    3. Posts
    T
    • Continue chat with theMusicMan
    • Start new chat with theMusicMan
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by theMusicMan

    • RE: Alternative code for the M5Stack BCT Standing Base with built in SHT30 temp/humid sensor

      @teastain said in Alternative code for the M5Stack BCT Standing Base with built in SHT30 temp/humid sensor:

      @themusicman Nice graphics!

      Thanks Terry. Looks like you've a nice implementation of temp control system there.

      I just thought this alternative to the factory code might help some to dive in and make their own look's and feel's :)

      posted in PRODUCTS
      T
      theMusicMan
    • Alternative code for the M5Stack BCT Standing Base with built in SHT30 temp/humid sensor

      Nothing complex, just a few very simple alternative lines of code to use when you have the M5Stack device connected to the M5Stack BCT Standing Base - with SHT30 temperature and humidity sensor. This is what you should see on your M5Stack device when running this code. Feel free to grab from my GitHub repository page and use as you wish.

      https://github.com/reflectingme/M5Stack_Standing_Base_SHT30

      0_1680556912941_M5Stack_Standing_Base.jpg

      posted in PRODUCTS
      T
      theMusicMan
    • ENVIII Hat not responding on M5StickCPlus

      Has anyone managed to get the ENVIII hat temp/pressure/humid sensor working on their M5Stick device please? I have an unusual issue in that the M5Stick device works fine, but I get no readings from the ENVIII hat!

      When I connect another device hat to the M5Stick (I have the rotary encoder) it works perfectly, and also when I attach an alternate ENVIII sensor that I have to the 4-pin grove connector on the bottom of the M5Stick, it works and displays readings correctly.

      So, I am guessing it is possibly an I2C issue where the incorrect address is set somewhere in the code. I have tried several versions of the code from various repo's on the M5Stack GitHub pages, and have checked the I2C address and changed it myself etc, and I can't get the ENVIII Hat sensor to show any readings at all.

      0_1680514681155_IMG_1048 copy.jpg 0_1680514688007_IMG_1049 copy.jpg 0_1680514696376_IMG_1050 copy.jpg

      posted in M5 Stick/StickC
      T
      theMusicMan
    • Multiple errors when using <M5GFX.h> and MM5Stack.h> in same program

      Hey all - sounds like a daft question but does anyone know if it is not possible to use both the M5Stack.h and M5GFX.h libraries in the same code please?

      I am simply starting to write code that plots a graph of temp from the ENVIII sensor. The factory code for this uses the M5Env and M5Stack libraries, and I want to also use the M5GFX library to plot data to the screen. However, when I add the M5Stack library to the code - and without changing anything else in the code at all - I get multiple errors upon compile. Now, I can post the code, but I have literally just started writing it and there's loads to do before I end up with the final version, so there's much not even penned as yet however it appears I have hit a hurdle at the very start.

      Simply adding #include <M5Stack.h> to this code created many many errors...

      #include <M5GFX.h>
      #include "M5_ENV.h"
      #include <M5Stack.h>

      M5GFX tft;
      SHT3X sht30;

      float tempC = 0.0;
      float tempF = 0.0;
      float hum = 0.0;

      void setup(void) {
      Wire.begin();
      M5.Power.begin();
      tft.init();
      tft.setTextDatum(textdatum_t::middle_center);
      tft.drawString("Temp Plot Test", tft.width() / 2, 20, 4);
      tft.drawLine(10, 10, 10, 100);
      }

      void loop(void) {
      tft.drawCircle(100, 100, sht30.cTemp, TFT_YELLOW);
      tft.println(sht30.cTemp);
      }

      posted in PRODUCTS
      T
      theMusicMan
    • barometer in ENV III Temp/Humid/Baro sensor QMP6988 for calculation of altitude

      Hi All

      In the ENVIII unit temp/humidity/baro sensor, the barometric sensor is the QMP6988, and this can also be used to calculate altitude. In the QMP6988.h file line 138, there is a line for this:

      float calcAltitude(float pressure, float temp);
      

      ... meaning you can call that method (calcAltitude) from the class in your .ino file.

      Does anyone know which are the correct units (degC or degF) required for the float temp entry please? And also what units are returned for the calcAltitude (feet, meters etc)?

      Many thanks.

      posted in Units
      T
      theMusicMan
    • Unterminated /* comment clang(unterminated_block_comment) error with red squiggle

      I am seeing a red squiggle in my code. Now, the code still needs development and is nowhere near completed, but it compiles and uploads to my M%Core5 fine, however I see a red squiggle on the first line of the code which when I hover over, gives this result.

      0_1680019166485_Screenshot 2023-03-28 at 16.54.36.png

      I cannot see any unclosed /* lines in my code. Can anyone shed some light on why I am seeing this please?

      Also, when I now add any blank lines at the top of my code, the code no longer compiles

      Thanks

      posted in PRODUCTS
      T
      theMusicMan
    • How do I draw an arc using M5CORE2 - can't find method in m5core2 or m5gfx

      Apologies if I should know this folks, but how do I draw an arc using the internal M5CORE2 libraries please?

      I can't seem to find that method in any of the documentation or in the include files.

      Should I simply include the TFT_eSPI.h library and use that one?

      posted in PRODUCTS
      T
      theMusicMan
    • RE: How do I enter BOOT mode on M5Core2: Wrong boot mode detected (0x0)! The chip needs to be in download mode

      @ajb2k3 said in How do I enter BOOT mode on M5Core2: Wrong boot mode detected (0x0)! The chip needs to be in download mode:

      @themusicman This means that something else in OSX is access the USBport via a terminal preventing M5Burner from being able to access the port.

      Please make sure only M5Burner is running and that no other terminal software is running.

      I tried on my MacBookPro (original issue was on iMac) with no other serial terminal software running, exactly the same issues unfortunately. I have now returned the M5Core2 device back to thePiHut and am awaiting a replacement.

      Thanks for your support though @ajb2k3 - it is much appreciated.

      posted in PRODUCTS
      T
      theMusicMan
    • RE: Nothing showing on M5Core2 when connected to USB power and unable to upload

      Update: I have returned the M5Core2 device purchased last week to the dealer I bought it from, something they had absolutely no issue with doing for me. They are going to issue a replacement. Now I need to try to identify what caused the M5Core2 to go into this rather ridiculous fail mode. I simply left it running overnight with code that was working the previous evening, and when I came to use it the following afternoon it was unresponsive.

      Let's hope the same thing doesn't happen again, which if it does, will sadly prematurely end my relationship with M5Stack devices :)

      posted in Core 2
      T
      theMusicMan
    • RE: Core2 buttons don't work after M5.Lcd.setRotation(3)?

      @teastain said in Core2 buttons don't work after M5.Lcd.setRotation(3)?:

      @themusicman This is "The Community" website supported by user volunteers.
      You should raise an Issue over on the M5Stack Github page,
      https://github.com/m5stack/M5Core2
      -Terry

      Hi Terry, sure will do. I simply followed the links on the official M5Stack page where 'Forum' is listed under the 'Explore' menu hence considered this an official forum of M5Stack. There's no indication on the M5Stack page that this is anything other than an official page of theirs, quite misleading many would agree I am sure, especially considering each of the other links on that page head to official M5Stack pages such as GitHub, News, YouTube etc.

      In any event, many thanks for the clarification that this is a site run by the community, that's good to know.

      Also, unfortunately, on GitHub I see infrequent replies to issues posted. It appears M5Stack are not particularly supportive to customers when it comes to official replies to issues. I've returned a device to the company I bought it from which was purchased only last week due to what appears to be a strange and possible design issue where the M5Core2 device is unable to be placed into BOOT mode in order to recover/restore factory settings. At £45... bricked after a week is not something I expected for what is essentially a very high spec ESP32 board!

      The issue I have overall with M5Stack is that their devices are not cheap low cost £3.50 ESP32 boards, they are quite expensive items relative to what they are and as such M5Stack don't appear to run an acceptable official after-sales support service. This makes this community even more valuable.

      Thanks again Terry.

      posted in Core 2
      T
      theMusicMan
    • RE: Nothing showing on M5Core2 when connected to USB power and unable to upload

      @wsanders Can I ask what you mean by reinstalling the "BIOS" please? Do you mean the factory image? If so, M5Burner isn't able to connect to the M5Core2, hence my thinking that this board is actually 'hard' bricked i.e. irrecoverable.

      Again, if this is so, it is a pretty nasty design flaw by M5Stack in M5Core2 users not being able to place their ESP32S3 board into BOOT mode which would allow a recovery/restore to take place. As far as I can tell, BOOT mode on the M5Core2 is simply not possible.

      posted in Core 2
      T
      theMusicMan
    • RE: Nothing showing on M5Core2 when connected to USB power and unable to upload

      So cold boot the core2 you mean? Your previous post said cold boot the computer which I thought you meant my iMac!! Sorry.

      OK, I will try this approach. So I understand, launch m5burner, select factory firmware, but select erase before trying to burn factory image. When selecting erase, press the reset button on the core2 at a time when the M5burner has just accessed the core2. Is that correct?

      Also, the code that was running on the M5Core2 previously was running fine without issue so not sure where any buggy code came from.

      Thanks for the suggestions though @ajb2k3 - I will try this shortly.

      posted in Core 2
      T
      theMusicMan
    • RE: Nothing showing on M5Core2 when connected to USB power and unable to upload

      I guess I have posted twice more or less about the same thing @ajb2k3 sorry. I installed the ArduinoIDE on to my MacBook Pro, followed the M5Stack instructions again to install the boards, library and drivers, and I get the same thing on this machine as I do on my iMac. here's the error...

      I genuinely think my M5Core2 is bricked. I tried to do some research and it appears there's no successful way to get the core2 into BOOT mode. Sigh...

      Erase Flash
      esptool.py v3.3.2-dev
      Serial port /dev/tty.wchusbserial54FC01826501
      Connecting...
      .
      .
      .

      A fatal error occurred: Failed to connect to Espressif device: No serial data received.
      For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html

      posted in Core 2
      T
      theMusicMan
    • RE: How do I enter BOOT mode on M5Core2: Wrong boot mode detected (0x0)! The chip needs to be in download mode

      Thanks @ajb2k3

      I tried this earlier too, these are the results of trying that... any suggestions?

      esptool.py v3.3.2-dev
      Serial port /dev/tty.wchusbserial54FC0182651
      Traceback (most recent call last):
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/serialposix.py", line 265, in open
      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
      OSError: [Errno 16] Resource busy: '/dev/tty.wchusbserial54FC0182651'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 5399, in <module>
      _main()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 5392, in _main
      main()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 4699, in main
      esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 110, in get_default_connected_device
      _esp = ESPLoader.detect_chip(each_port, initial_baud, before, trace,
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 363, in detect_chip
      detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 320, in init
      self._port = serial.serial_for_url(port)
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/init.py", line 88, in serial_for_url
      instance.open()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/serialposix.py", line 268, in open
      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
      serial.serialutil.SerialException: [Errno 16] could not open port /dev/tty.wchusbserial54FC0182651: [Errno 16] Resource busy: '/dev/tty.wchusbserial54FC0182651'

      posted in PRODUCTS
      T
      theMusicMan
    • How do I enter BOOT mode on M5Core2: Wrong boot mode detected (0x0)! The chip needs to be in download mode

      Having a nightmare with my new M5Core23 device which decided it no longer wanted to play! It has been working for the first few days but as of today I am unable to restore the factory image using M5Burner, and any sketch I load into ArduinoIDE simply does not upload. I see nothing on the screen even when plugged into USB.

      I have uninstalled and reinstalled the correct serial port drivers, restarted my Mac and still get nothing.

      So... how do I enter BOOT mode on the M5Core2 please? I gather on the M5Stack it was via one of the three hardware buttons, which I believe have been replaced by the three built in touch screen software buttons on the M5Core2. So, does this mean I need to open up the device and wire whichever the BOOT pin is to ground when I upload? Is that the way to get this device into BOOT mode?

      if so, what is the BOOT pin I should ground for the M5Core2 please?

      Hoping someone can help. Many thanks.

      posted in PRODUCTS
      T
      theMusicMan
    • Nothing showing on M5Core2 when connected to USB power and unable to upload

      So, after a week with the board running fine, I attempted to upload a sketch today and the unit is blank. When I press the power button the unit does not turn on, neither does it turn on when I connect to USB.

      I have tried M5Burner to restore the factory image but I also get an error there too, the full error log is here:

      ====================================
      --chip auto --port /dev/tty.wchusbserial54FC0182651 --baud 1500000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x000 /Applications/M5Burner.app/Contents/Resources/packages/firmware/1f6084853a1fac200d66584a1a405017.bin
      esptool.py v3.3.2-dev
      Serial port /dev/tty.wchusbserial54FC0182651
      Traceback (most recent call last):
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/serialposix.py", line 265, in open
      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
      OSError: [Errno 16] Resource busy: '/dev/tty.wchusbserial54FC0182651'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 5399, in <module>
      _main()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 5392, in _main
      main()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 4699, in main
      esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 110, in get_default_connected_device
      _esp = ESPLoader.detect_chip(each_port, initial_baud, before, trace,
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 363, in detect_chip
      detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/esptool.py", line 320, in init
      self._port = serial.serial_for_url(port)
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/init.py", line 88, in serial_for_url
      instance.open()
      File "/Applications/M5Burner.app/Contents/Resources/packages/tool/serial/serialposix.py", line 268, in open
      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
      serial.serialutil.SerialException: [Errno 16] could not open port /dev/tty.wchusbserial54FC0182651: [Errno 16] Resource busy: '/dev/tty.wchusbserial54FC0182651'

      Not sure what to do now... is my M5Core2 bricked...?

      posted in Core 2
      T
      theMusicMan
    • RE: M5Stack Core2 Factory Test Timer

      @chuck808 said in M5Stack Core2 Factory Test Timer:

      Hello,

      I realise this is probably a dumb question, but has anyone split the Timer function and screen from the factory test? I've spent a couple of days trying but not having much luck, though I have got the numbers and bar graph to show but not functioning. I am using Arduino IDE.

      Thanks

      Did you manage to achieve this, Chuck? I’d be interested to find out. I’ve just today received my m5core2 and am starting to dive into the code. Great documents, nice libraries, nice product but poor support on here I’m finding. It’s a shame.

      posted in Core 2
      T
      theMusicMan
    • RE: Core2 buttons don't work after M5.Lcd.setRotation(3)?

      Guys at M5Stack… come on folks, we really need answers to these type of questions please. We’ve invested in your devices, please reciprocate with Informa and answers when asked. Thanks.

      posted in Core 2
      T
      theMusicMan
    • RE: RESOLVED: Blank screen upon compile and upload of first sketch listed on M5-docs page

      So, I resorted to M5burner to restore the factory image which works, so it is something to do with the upload process.

      This was 100% new user error!!!!!

      Note to self: Read the set up instructions carefully, and don't follow the instructions for the M5Stack when you have an M5Core2 :)

      Resolved.

      posted in Arduino
      T
      theMusicMan
    • RESOLVED: Blank screen upon compile and upload of first sketch listed on M5-docs page

      Hi All

      So, I took delivery of my new M5Stack Core2 device, and when I powered it on I saw the regular factory script running fine. Reading through the M5-docs Arduino set-up pages, I followed the instructions, the last of which asked to paste this into a new sketch:

      #include <M5Stack.h>

      /* After M5Core is started or reset
      the program in the setUp () function will be run, and this part will only be run once.
      After M5Core is started or reset, it will start to execute the program in the setup() function, and this part will only be executed once. /
      void setup(){
      M5.begin(); //Init M5Core. Initialize M5Core
      M5.Power.begin(); //Init Power module. Initialize the power module
      /
      Power chip connected to gpio21, gpio22, I2C device
      Set battery charging voltage and current
      If used battery, please call this function in your project */
      M5.Lcd.print("Hello World"); // Print text on the screen (string) Print text on the screen (string)
      }

      /* After the program in setup() runs, it runs the program in loop()
      The loop() function is an infinite loop in which the program runs repeatedly
      After the program in the setup() function is executed, the program in the loop() function will be executed
      The loop() function is an endless loop, in which the program will continue to run repeatedly */
      void loop() {

      }

      When I click upload using the ArduinoIDE2, the code compiles, and uploads via the serial port, then the usual ...

      Writing at 0x0005e0ba... (78 %)
      Writing at 0x00065d85... (85 %)
      Writing at 0x0006b48f... (92 %)
      Writing at 0x00070ea9... (100 %)
      Wrote 406000 bytes (219673 compressed) at 0x00010000 in 3.9 seconds (effective 842.2 kbit/s)...
      Hash of data verified.

      Leaving...
      Hard resetting via RTS pin...

      ... but all I see is a total blank screen on my Core2.

      Could someone help me shed some light on this please, many thanks.

      posted in Arduino
      T
      theMusicMan