Navigation

    M5Stack Community

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

    Nabeshin

    @Nabeshin

    2
    Reputation
    9
    Posts
    1305
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Nabeshin Follow

    Posts made by Nabeshin

    • RE: V-Training Service is active now??

      Hi, Now I got one solution by myself.
      We can build a private environment of K210 machine learning on Goggle colaboratory.
      Of course we can share.

      I wrote an article here.
      This can be used as an another way of V-Training for M5StickV and M5UnitV.

      Qiita

      • https://qiita.com/Nabeshin/items/d526a94b8f3be85bbb05

      Goggle colaboratory

      • https://colab.research.google.com/drive/1UdQV5nQMQy1ckJP0qdS3kS7sW6sEQyzs#scrollTo=prOt_VofnYCo

      Thank you.

      posted in M5Stick V
      N
      Nabeshin
    • RE: V-Training Service is active now??

      @Zontex
      Hi, I tried again now but It seems like still having problems...

      Can I build same environment in my computer?
      What should I install for this machine learning?

      If you can point the GitHub URL, Please let me help.

      Regards.

      posted in M5Stick V
      N
      Nabeshin
    • RE: V-Training Service is active now??

      @Zontex
      Now I can upload files. But Training always fails with this error.

      CONTENT: Unexpected Error Found During Triaining, A target array with shape (128, 6) was passed for an output of shape (None, 7) while using as loss categorical_crossentropy. This loss expects targets to have the same shape as the output.

      I uploaded following data.

      • 6 classes training data
      • Each class has 90 files(85 files in train folder. 5 + 1 files in each valid folder)
        • At first, using the result folder created by UnitV_boot_v1220.py, I got Error: Lake of Enough Valid Dataset, Only 30 pictures found, but you need 35 in total.
        • Maybe Lake of is typo of Lack of I think.
        • So I moved 1 file manually from train folder to valid folder for each class.(Then I made 5 + 1 files in each valid folder.(Total 36 in valid folder)
        • Then that goes fine.
      • But now I got that error about categorical_crossentropy.
        • I tried several cases and got same kind of error.
        • For 6 class case: A target array with shape (128, 6) was passed for an output of shape (None, 7)
        • For 4 class case: A target array with shape (64, 4) was passed for an output of shape (None, 5)

      I'm not sure but I think it's because,

      • At model.add(Dense(X)) script, X should be the same number of uploaded class folders of each request.
      • But maybe it is over counted from exact one in your script.
        • https://github.com/keras-team/keras/issues/3237

      Do you have any idea for fix it?

      Regards.

      posted in M5Stick V
      N
      Nabeshin
    • RE: V-Training Service is active now??

      Thank you.
      This is not serious at all.
      I will try it again in next year.

      Have nice holidays!!!

      posted in M5Stick V
      N
      Nabeshin
    • RE: V-Training server maintenance 2020/04. 15-04.18

      Thank you!

      posted in Official Updates
      N
      Nabeshin
    • GoPlus motor rotates only one direction

      I'm trying to control 130RA motors using GoPlus (not GoPlus2).
      But it rotates only one direction.
      Anyone have same problem??

      I'm using,

      • GoPlus controlled with M5Stack Fire
      • 130RA motors( https://akizukidenshi.com/download/ds/mercurymotor/FA-130RA-2270_20190306.pdf )
      • External stabilized power supply 5.5V

      My Investigation are following.

      I uploaded this simple code to my GoPlus module.

      //GoPlus Motor Debug code for Atmega328
      const int IN_0 = 9;
      const int IN_1 = 10;
      const int IN_2 = 11;
      const int IN_3 = 3;
      
      void setup() {
        pinMode(IN_0, OUTPUT);
        pinMode(IN_1, OUTPUT);
        pinMode(IN_2, OUTPUT);
        pinMode(IN_3, OUTPUT);
      }
      
      void loop() {
        digitalWrite(IN_0, LOW);
        digitalWrite(IN_1, LOW);
        digitalWrite(IN_2, LOW);
        digitalWrite(IN_3, LOW);
        delay(2000);
        digitalWrite(IN_0, HIGH);  //M0  ---NG--------
        digitalWrite(IN_1, LOW);
        digitalWrite(IN_2, HIGH);  //M2  --OK: but rotates Intermittently--
        digitalWrite(IN_3, LOW);
        delay(2000);
      
        digitalWrite(IN_0, HIGH);
        digitalWrite(IN_1, HIGH);
        digitalWrite(IN_2, HIGH);
        digitalWrite(IN_3, HIGH);
        delay(2000);
        digitalWrite(IN_0, LOW);   //M0  --OK: but rotates Intermittently--
        digitalWrite(IN_1, HIGH);
        digitalWrite(IN_2, LOW);   //M2  --NG--------
        digitalWrite(IN_3, HIGH);
        delay(2000);
      
        digitalWrite(IN_0, LOW);
        digitalWrite(IN_1, LOW);
        digitalWrite(IN_2, LOW);
        digitalWrite(IN_3, LOW);
        delay(2000);
        digitalWrite(IN_0, LOW);   //M0  --OK: rotates Continuously--
        digitalWrite(IN_1, HIGH);
        digitalWrite(IN_2, HIGH);  //M2  --OK: rotates Continuously--
        digitalWrite(IN_3, LOW);
        delay(2000);
      
      }
      

      Only following case works well, but others don't...

        digitalWrite(IN_0, LOW);   //M0  --OK--
        digitalWrite(IN_1, HIGH);
        digitalWrite(IN_2, HIGH);  //M2  --OK--
        digitalWrite(IN_3, LOW);
      
      • The voltage(HIGH / LOW) of IN_0 to IN_3 of LV8548 are correct for all cases.
      • I replaced to another GoPlus module, but it was exactly the same.

      To drive 130RA motor, GoPlus is too weak??

      posted in Modules
      N
      Nabeshin
    • RE: V-Training server maintenance 2020/04. 15-04.18

      Hello, Is the V-Training Service working now??

      I think its tasks are stopped from 2020/12/24....

      Thanks.

      posted in Official Updates
      N
      Nabeshin
    • V-Training Service is active now??

      I uploaded files to the V-Training service but it seems not running....
      Currently Task No.6(2020/12/29) is mine,
      but task No.1 which was uploaded in 2020/12/24 still remaining.

      Anyone can help please?

      http://v-training.m5stack.com

      0_1609213475638_スクリーンショット 2020-12-29 12.44.09.png

      Thank you.

      posted in M5Stick V
      N
      Nabeshin