🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5stack BASICでEARTHユニット(portB)を使用する方法について

    日本語フォーラム
    2
    5
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Ebitenanco9
      last edited by

      M5stack BASICでEARTHユニットを使用しようとしたのですが、UIflowのユニットのサンプルプログラム(Units→アース→load Examplesを押すと出るもの)を実行し、センサーを水に漬けてもセンサーが反応せず、0.0から数値が変化しません。

      Earthユニットは「GROVE - 4ピン - ジャンパオスケーブル」を使用して、本体側面の36、26、5v、gndに接続しています。
      UnitのPortは「B(36,26,v,g)」を選択しました。

      この接続方法は正しいでしょうか。
      あるいは、そもそもM5stack BASICはEARTHユニットに非対応なのでしょうか。
      解決の手がかりがありましたら、ご教示いただけますと幸いです。
      どうぞよろしくお願いいたします。

      UIflowのバージョン: 1.13.7
      36231.jpg 36230.jpg uiflow_block_1724143725680.png

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR
        robski @Ebitenanco9
        last edited by

        @Ebitenanco9 sticker colors for pins on earth unit are: white/yellow/red/black = adc/dac/5v/gnd
        from what I can see:
        on your setup unit earth analog signal is going thru yellow wire to pin 26 which is digital input, unit earth digital signal is going thru white wire to pin 36 which is analog input

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

        E 2 Replies Last reply Reply Quote 1
        • E
          Ebitenanco9 @robski
          last edited by

          @robski Thank you for your reply. I made a mistake. I will fix it later and try again.

          1 Reply Last reply Reply Quote 0
          • E
            Ebitenanco9 @robski
            last edited by

            @robski The sensor has moved. Thank you very much.

            robskiR 1 Reply Last reply Reply Quote 0
            • robskiR
              robski @Ebitenanco9
              last edited by

              @Ebitenanco9 just be carefull as earth sensor corodes if left in soil for long time (days)

              M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

              1 Reply Last reply Reply Quote 0
              • First post
                Last post