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

    Power on and off with an external switch when panel mounted

    PROJECTS
    2
    3
    4.6k
    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.
    • J
      jnicol
      last edited by jnicol

      Hi Guys,
      I would like to panel mount a couple of the M5Stacks in an instrument cluster. I am trying to figure out how to power these on and off when I don't have access to the power button when it is behind the panel. I can run a usb cable to small UPS back-up battery (actually for a raspberry pi) and this feeds power to the M5Stacks. As soon as I turn on the UPS power switch, all is good that the M5's power on, but I have no way to turn them off. Is there a way to mount an external switch on the panel that will turn the M5's on and off without hacking into the mounted push-buttons?

      Also, just to add more info, the current buttons are used like this: The middle button selects the different sensor readings from the engine and the left and right buttons are used to change the brightness of the screen.

      Cheers
      John

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        feed power to the bus connection inside the m5stack (2x15 pin connection) as long as no battery is connected then that should work as you need.

        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
        • J
          jnicol
          last edited by

          Thanks for the info. Solves the issue. So looking at the schematic I would connect to pin 28 for 5V and pin 1,3 or 5 for GND.

          Cheers.

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