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

    Servos for S3 in uiflow2

    UiFlow 2.0
    7
    12
    3.8k
    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.
    • ajb2k3A
      ajb2k3
      last edited by

      I think I found it under the hardware icons as in or PEM

      UIFlow, so easy an adult can learn it!
      If I don't know it, be patient!
      I've ether not learned it or am too drunk to remember it!
      Author of the WIP UIFlow Handbook!
      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

      1 Reply Last reply Reply Quote 0
      • S
        Schorsch
        last edited by

        Hi @gavin67890

        I also can not find the RFIDs...
        My servo is behind a PaHub on Channel1!
        I found a similar project, but directly in phyton, no uiflow2:
        https://www.hackster.io/386917/3-in-1-sanitiser-dispenser-d18432

        G 1 Reply Last reply Reply Quote 0
        • G
          gavin67890 @Schorsch
          last edited by

          Hi @Schorsch,

          Hmm, that's a little frustrating on the RFID front. I can only assume it's in progress with M5Stack for release (I couldn't see it either in UIFlow2).

          I had a look at the Hackster project, and I think they've been a little tricky with the hub implementation. If you look closely at the images the hub appears to be the 1-to-3 Hub (which operates differently to either the PaHUB or PbHUB).

          I think they have connected the Servo and PIR to the hub Groove connector:
          Pin 1/White input from PIR (Pin 2/Yellow not used)
          Pin 2/Yellow output to Servo (no Pin1/White)
          5V and GND in parallel. Connected to GPIO Port B (Black) on Core.
          Then they've gone for the PaHUB (PortA-Hub) I2C (Red) to connect the other sensors.

          I don't think you will be able to daisy chain your Servo via the PaHUB because it is I2C not GPIO. The good news is the CoreS3 has more ports to play with. Looking at the very tiny image on the CoreS3 documentation, I think Port B GPIO (Black) I/O is on G8/G9 respectively i.e. connect output/G9 to the control line of your servo.

          Port Pin NOTE
          PORT-A(RED) G2/G1 I2C
          PORT-B(BLACK) G9/G8 GPIO
          PORT-C(BLUE) G18/G17 UART(RX/TX)

          It might be worth a try with your servo connected to Port B GPIO (Black) then introduce the other hardware.
          G8/I (White) --> Not connected
          G9/O (Yellow) --> Servo control
          Red--> Red
          Black --> Black

          And then try the PWM blocks in UIFlow2 Blocky with some pauses in between. I don't know what the duty and frequency will be for your servo, so I've shown values copied from the Hackster example.
          0_1696189631602_Screenshot 2023-10-01 at 20.45.38.png

          Shout back if you can at least get some movement out of it. Best of luck.

          Atom LITE | Atom Matrix | StickC | CORE2 | Paper | ...

          S 1 Reply Last reply Reply Quote 0
          • S
            Schorsch @gavin67890
            last edited by

            @gavin67890
            Thanks for your time. I will try different stuff. But it seems to be not yet implemented in uiFlow2!

            1 Reply Last reply Reply Quote 1
            • S
              Schorsch
              last edited by

              The "problem" is, that I really need a 360 servo. To open something by different sensor. It doesnt matter wich one, I like to play with them and sketching my ideas. But without a servo, nothing make sense...
              So please, dear UiFlow2-Alpha developers, Vers. 27 hopefully includes the servos!
              ;-)

              1 Reply Last reply Reply Quote 3
              • M
                M5Joe
                last edited by

                Are there any news according Servo support?
                I still do not find any way of support (Pin servo or module).
                It's been over an year now and should be an easy task to support it in UiFlow.
                Did anybody find a solution to control 180° / 360° servos with UiFlow 2?

                1 Reply Last reply Reply Quote 0
                • D
                  danber
                  last edited by

                  I'm looking for it too. Unfortunately, I can't find anything about it anywhere.

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jpilarski @danber
                    last edited by

                    @m5stack any updates on servo blocks for uiflow2.0. If they aren’t going to made available what is the suggested way to program the core s3 to use blocks to rotate the M5stack 9g servos available at the m5store to specific angles.

                    felmueF 1 Reply Last reply Reply Quote 0
                    • felmueF
                      felmue @jpilarski
                      last edited by felmue

                      Hi guys

                      please find an M5CoreS3 example in UIFlow2 Project Zone controlling a servo. It's named: M5CoreS3_Servo_Example_UIFlow2.2.2

                      Thanks
                      Felix

                      GPIO translation table M5Stack / M5Core2
                      Information about various M5Stack products.
                      Code examples

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jpilarski @felmue
                        last edited by

                        @felmue thanks I will check it out and make better use of the project zone as a how to learning aid.

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