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

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

    Scheduled Pinned Locked Moved 日本語フォーラム
    5 Posts 2 Posters 3.4k Views
    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 Offline
      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 Offline
        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, M5Tab, M5CardputerAdv, M5StackChan

        E 2 Replies Last reply Reply Quote 1
        • E Offline
          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 Offline
            Ebitenanco9 @robski
            last edited by

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

            robskiR 1 Reply Last reply Reply Quote 0
            • robskiR Offline
              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, M5Tab, M5CardputerAdv, M5StackChan

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post