Avatar for Ptitonio

Ptitonio

Member since Nov 2019 • Last active Dec 2019
  • 1 conversations
  • 10 comments

Most recent activity

    • 16 comments
    • 475 views
  • in General
    Avatar for Ptitonio

    Gordon ! We are a genie !
    Indeed the setting of Chrome Web store IDE was : .js.|min.j
    Yet I had control over the setting of both IDE.
    I do not remember having modified this parameter on Chrome Web store IDE.
    Now Both of IDE works fine.

    Thanks a lot

    PS: WEB IDE = Chrome Web store IDE

  • in General
    Avatar for Ptitonio

    Screenshoots ...

  • in General
    Avatar for Ptitonio

    Here is the result of my tests with 2 IDEs: WEB IDE 0.72.1 and Espruino Native IDE 0.72.1
    I use the same hardware based on PICO, with the following code:

    I2C3.setup({scl:A8, sda:B4, bitrate:100000});
    const MPU = require("MPU6050").connect(I2C3);
    // 2nd parameter is the fifoRate. The DMP output frequency = 200Hz / (1 + fifoRate)
    const DMP = require("MPU6050_DMP").create(MPU, 3);
    
    function pidLoop(args) {
      var data = DMP.getData();
      if(data !== undefined) console.log(DMP.getYawPitchRoll(data));
    }
    
    setWatch(pidLoop, B5, { repeat:true, edge:'rising' });
    

    We see:

    • 1 - WEB IDE without Minification
      An error LOW_MEMORY

    • 2 - Espruino Native IDE without Minification
      No error, Upload ok, working ok

    • 3 - WEB IDE with Minification (Esprima Offline)
      "TypeError" errors on MPU6050 module but not on MPU6050_DM module whose size is 31561 bytes
      A syntax error ...

    • 4 - Espruino Native IDE with Minification (Esprima Offline)
      No error, Upload ok, the size of the module MPU6050_DM = 17182 bytes
      Operation ok

    It's strange the modules do not have the same size.
    Apparently the 2 IDEs do not use the same modules.

  • in General
    Avatar for Ptitonio

    Yes Pico (and EspruinoWifi) works when I use IDE Native 0.69.0 (and 0.72.1) to transfert code.
    Its just longer , about 1 mn forthis code :

    I2C3.setup({scl:A8, sda:B4, bitrate:100000});
    const MPU = require("MPU6050").connect(I2C3);
    // 2nd parameter is the fifoRate. The DMP output frequency = 200Hz / (1 + fifoRate)
    const DMP = require("MPU6050_DMP").create(MPU, 3);
    
    function pidLoop(args) {
      var data = DMP.getData();
      if(data !== undefined) console.log(DMP.getYawPitchRoll(data));
    }
    
    setWatch(pidLoop, B5, { repeat:true, edge:'rising' });
    

    No I didn't use the option "Module uploaded as functions". The code is uploaded in RAM .

    When I was doing tests with different IDE, I noticed some strange things. I'm going to synthesize all this in a new post.

  • in General
    Avatar for Ptitonio

    I installed Espruino IDE Native version 0.72.1 and it works well with the MPU6050 module.

  • in General
    Avatar for Ptitonio

    Hi AkosLukacs,

    Turn off minification only deletes the message :

    TypeError: Cannot read property 'length' of undefined

    I have Web Ide 0.72.1

    I have also a Espruino IDE Native version 0.69.0 for my MDBT42Q Bluetooth Module.
    I made tests with it on Pico this morning, and COOL ! It works fine ?

    There are some issues with Web Ide 0.72.1

  • in General
    Avatar for Ptitonio

    Here's the dump()

    dump() var mpu = undefined; I2C1.setup({"scl":B6,"sda":B7}); pinMode(B6, "af_opendrain", true); pinMode(B7, "af_opendrain", true);
    =undefined

    mpu
    =undefined

    I put the minification off (the second red error message disappears).
    I controlled the wiring well.
    I made tests with firmware 1.97, 2.00, 2.02 & 2.04, without success.
    Attached a copy of the console

  • in General
    Avatar for Ptitonio

    screenshots...

  • in General
    Avatar for Ptitonio

    Thank you Robin for your response.

    Good test with the HR-SR04 module :
    https://www.espruino.com/HC-SR04

    Bad test with MPU6050 module :
    https://www.espruino.com/MPU6050

    I did tests on PICO and ESPRUINOWIFI with the same problem.
    (screenshot of tests with ESPRUINOWIFI).

Actions