Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. wadoadi
    W
    • Continue chat with wadoadi
    • Start new chat with wadoadi
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    wadoadi

    @wadoadi

    0
    Reputation
    12
    Posts
    171
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    wadoadi Follow

    Posts made by wadoadi

    • Move the screen position of the "TFT_Meter_linear" example

      Hi,
      in the Arduino IDE working with an M5Stack Grey I have reduced the size of the meter to 0.65
      // Define meter size as 1 for M5.Lcd.rotation(0) or 1.3333 for M5.Lcd.rotation(1)
      #define M_SIZE 0.65

      this gives me approx the correct size, however, I would like to move the meter from the top left of the screen to the bottom right. ideally, I would like to pass the XY to it.

      Ultimately I would like two 0.65 meters on the screen at the same time. bottom left and bottom right.

      I thought the parameters below would do this but alas they do not!
      float ltx = 0; // Saved x coord of bottom of needle
      uint16_t osx = M_SIZE * 120, osy = M_SIZE * 120; // Saved x & y coords

      any advice would be most welcome!

      posted in Arduino
      W
      wadoadi
    • RE: BMP180 Grove how to get it working on core2?

      @felmue I saw it in this thread commented out for the M5Stack
      https://community.m5stack.com/topic/255/m5cam-and-bmp180/3

      I now have my application working, I had stupidly loaded the BMP180 when in fact, I have BMP280! also it has the alternative slave address...

      posted in Arduino
      W
      wadoadi
    • BMP180 Grove how to get it working on core2?

      Hi,
      I have been trying to get the BMP180 connected via Grove I2C to work and failed, Yes I'm new to the M5Stacks and struggling!

      My code is below, anyone tell me what's wrong or point me at an M5Core2 example?

      #define M5STACK_MPU6886 
      
      #define SDA 25
      #define SCL 13
      
      #include <M5Core2.h>
      #include <Wire.h>
      //TwoWire Wire1 = TwoWire(1);
      
      #include <Adafruit_BMP085.h>
      Adafruit_BMP085 bmp;
      
      float pitch = 0.0F;
      float roll  = 0.0F;
      float yaw   = 0.0F;
      
      //averages 
      float pitcha = 0.0F;
      float rolla  = 0.0F;
      float yawa   = 0.0F;
      
      
      
        int i = 0;
        
      
      void setup(){
      
        // Initialize the M5Stack object
        M5.begin();
        Wire.begin(SDA, SCL);  //M5Stack SDA, SC  
        //Wire1.begin(SDA, SCL, 400000);
        M5.IMU.Init();
        delay(200);
        M5.Lcd.fillScreen(BLACK);
        M5.Lcd.setTextColor(GREEN , BLACK);
        M5.Lcd.setTextSize(2);
      
           if (!bmp.begin()) {
            M5.Lcd.println("BMP Error");
         
              }
      
      }
      
      // the loop routine runs over and over again forever
      void loop() {
          // put your main code here, to run repeatedly:1    
      
        M5.IMU.getAhrsData(&pitch,&roll,&yaw);
        
        pitcha += pitch;
        rolla += roll;
        yawa += yaw;
        
            if (i > 60) //average every i loops
              {
        
                pitch = pitcha/i;
                roll = (rolla/i)-90;
                yaw = yawa/i;
                
                pitcha = 0;
                rolla = 0;
                yawa = 0;
              
                i=0;
                
                M5.Lcd.setCursor(10, 20);
                M5.Lcd.printf(" Bank %3.0f   Pitch %3.0f   ", pitch, roll);
                M5.Lcd.println(bmp.readTemperature());
                
               }
        i++;
        delay(10);
      }
      
      posted in Arduino
      W
      wadoadi
    • RE: Hello World, or not Arduino

      that did it
      THANK you

      posted in Core 2
      W
      wadoadi
    • Hello World, or not Arduino

      Hello,
      so I can burn the Core2 test application without issue, and I can code Arduino's nano's without many issues, but I can't get the hello word example to work on the core2! i just get a black screen!

      What am I doing wrong?

      I can revert from Arduino to the test program by re flashing it from the burner...

      0_1605994738590_hello world.png

      0_1605994757165_core 2 board.png

      posted in Core 2
      W
      wadoadi
    • RE: 2 question while await my core 2, power and pinouts

      @felmue Wow thank you for all the information

      posted in Core 2
      W
      wadoadi
    • 2 question while await my core 2, power and pinouts

      Hi,
      after returning a faulty M5Stack grey I ordered an M5Stack core 2, it's due next week!

      I'm designing my own board for it and have the following questions:

      1. is the stackable header the same pinout on all of the core range?
      2. I don't want or need the internal battery instead I need to power from 12v so if I add a power regulator do I connect it to the 5V pin on the header? or I could build it to provide 3.3V and connect it to that pin! so I guess my question is how best to externally power an M5Stack via the header?
      3. lastly, if powered via the 5V header pin will it switch on and off with the power?
      posted in Core 2
      W
      wadoadi
    • RE: White screen for all the examples M5Stack Core Grey

      hi, yes I entered the SSID and PSK/password as prompted when burning the UIFlow image,

      I can see its IP address from the router and I know it is the device from its MAC address.

      The screen remains white with no visible text, even with the bottom part removed.

      anything else i can try?

      thanks

      posted in M5stack Grey
      W
      wadoadi