Navigation

    M5Stack Community

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

    Posts made by rob.biernat

    • RE: Using native idf instead of arduino

      Im using idf 4.1 whereas you guys are probrably on the older stuff which was crap.

      Its cmake based now. Python self installers etc.

      Anyway I have recompiled arduino as an idf component and got a couple of errors in some libraries but am working through it.

      I also converted m5 to an idf lib and most of that compiles to apart from the dependecy on arduino SD lib.

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Ok given the bloke who wrote the code has left can someone please at least document the i2c messages?

      posted in General
      R
      rob.biernat
    • RE: Using native idf instead of arduino

      @thrasher yeah i understand the background but 90 percent of the code should have been idf with a 10 percent layer for Arduino

      posted in General
      R
      rob.biernat
    • RE: Using native idf instead of arduino

      @lukasmaximus i just cloned their gig repo ran a script and away we went

      posted in General
      R
      rob.biernat
    • RE: Using native idf instead of arduino

      Idf works fine with m5 stack for everything on the esp32 chip.

      The issue is some bright spark assumed everyone uses arduino

      posted in General
      R
      rob.biernat
    • RE: Using native idf instead of arduino

      Ok having had no responses i think i will try and use the code for m5 as an idf component.

      If anyone has already done this then let me know. Idf is a much better environment then arduino however i do understand alot of people get scared writing code

      posted in General
      R
      rob.biernat
    • RE: Using native idf instead of arduino

      Has anyone been able to use the m5 stack arduino library in idf app?

      Using IDF i was able to get around the crappy ble issues that are in the arduino ble libs but i cant use the screen or buttons now.

      Thanks

      Rob

      posted in General
      R
      rob.biernat
    • Using native idf instead of arduino

      Hi

      Is there anything special I need to do to use idf instead of arduino?

      I realise Arduino is simpler but to be honest the programming for me is not an issue. I have a background in C programming amongst other languages.

      The main reason I am looking at switching is because the BLE libraries appear to be so flaky that for my use case I need to get back to basics and just use idf ble support.

      Rob

      posted in General
      R
      rob.biernat
    • RE: BLE arduino libraries crashing on M5 stack

      I have no control over the ble server device. It appears the ble libraries are just flaky

      posted in General
      R
      rob.biernat
    • Esp32 arduino library version- pre releases

      Hi

      Can i install esp32 libraries that are release candidates and the m5 arduino libraries will still function.

      At the moment I have esp32 1.0.2 but i want to try a newer version that has improved BLE support

      Rob

      posted in Arduino
      R
      rob.biernat
    • BLE arduino libraries crashing on M5 stack

      Hi,

      I'm writing some code that uses BLE to discover a couple of sensors. I've been able to initialise the BLE library, scan for a device and succesfully match the service UUID with the one I'm interested in. However once I want to do something with services characteristics my M5 crashes with the following error when I call

        std::map<std::string, BLERemoteService*>* servicesMap  = pClient->getServices();         
        for (auto &myServiceEntry : *servicesMap)   
        {
          BLERemoteService* svc = myServiceEntry.second;
          Serial.printf("Service found on Device: %s \n",  svc->getUUID().toString().c_str());
      
          if (svc->getUUID().toString() == myUUID)
          {   
            Serial.println("Searching for characteruistics");        
      
            std::map<std::string, BLERemoteCharacteristic*>* characteristics = svc->getCharacteristics();
            
            Serial.println("Finished search");
                
          }        
        }
      

      results in

      Finished search
      E (9180) FreeRTOS: FreeRTOS Task "loopTask" should not return, Aborting now!

      Backtrace: 0x40091e8c:0x3ffcaac0 0x400920bd:0x3ffcaae0 0x4008ddef:0x3ffcab00

      Rebooting...

      Has anyone used the BLE libraries with the M5? My understanding is the BLE libraries are now part of the ESP32 libraries for arduino and I am currently using ESP21 1.0.2

      Thanks

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Anything from the programmer?

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Any updates from the bloke who wrote the code?

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Ok so I have the dc motor controller working but when will the sample code be cleaned up and documented. At the moment it's a bit rough with lots of magic numbers scattered through the code. Ideally a proper api

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Ok no probs. For now I have stuff going with a jumper wire hack but I can buy some proper jst cables tommorow.

      Is the person who wrote the go plus firmware and sample code on this forum? I can understand most of the code but since the code is not documented and not included in the m5 stack arduino library I need some help understanding the messages that get sent out on the i2c bus and what they do.

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      My blower fan uses what I think is jst ph series which has a 2mm pitch.

      It seems like it's a fraction too large for the m5 stack though.

      Surely someone on this forum knows the specifics?

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      My goplus arrived yesterday so I'm going to have a play with it over the weekend.

      However I have a question regarding the two dc motor outputs. What physical connection do these use? From the pic I thought they were 2 pin jst but I just tried connecting up a dc blower fan that uses 2pin jst and it wouldn't fit.

      Also regarding the xt30u input for power it says 9v to 24v however I'm not planning on using anything larger then 5v. Is this an issue. In this case I plan on just powering the dc motors with a 5v usb power bank.

      Thanks

      Rob

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Hi

      Yeah it's a 5V blower. Doubt it will be more then 0.5A so should be good here

      You mentioned I will need to power my m5stack externally? Why can't I use one of the bases that has a battery?

      Or do you mean I need to provide separate power to the go plus module itself via the onboard servo power input. If that's the case then it's not that different to providing separate power to fan and using relay or mosfet.

      Anyway it usually takes a week to get to Australia so hopefully I can play with it next week

      Rob

      Rob

      posted in General
      R
      rob.biernat
    • RE: Goplus dc motor driver

      Thanks.

      Powering the blower fan was my next question.

      Right now when I use the mosfet module my fan is powered separately and isolated from the m5 stack. I use those cheap usb power banks the size of a big pen.

      Thanks

      Rob

      posted in General
      R
      rob.biernat
    • Goplus dc motor driver

      Hi

      I've just ordered the new goplus module. In the docs it says it can control 2x dc motors which is great as I want to use it to control a 5v dc blower fan. Is this a valid use case?

      My current approach for controlling the fan has been to use either a relay module (slow infrequent switching I.e on off with delay) or a grove mosfet module (higher frequency pwm)

      Can I remove the relays and mosfets now and use the onboard controllers to control the fan?

      Is there any code for this module with comments that actually tells me whst the code is doing? Ive worked out bits and pieces but it would be nice if the code examples had a bit more info in them.

      Thanks

      Rob

      posted in General
      R
      rob.biernat