Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. USB PowerMeter

USB PowerMeter

Scheduled Pinned Locked Moved My Project
8 Posts 3 Posters 1.9k Views 3 Watching
  • 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.
  • Dominic BonneauD Offline
    Dominic BonneauD Offline
    Dominic Bonneau
    wrote on last edited by
    #1

    Hi, This Is my project : I want to know if my phone is plug. ( and then make some rule in my home automation)

    I was thinking to buy cheap usb cord then plug it to my Arduino then plug my Arduino into usb wall plug. then if my phone is plug send "1" to my gateway

    My issue is I don't know if it can be done this way, I don't know how to do it, and I don't know how to code it ...

    A litre bit of help would be really cool ! 😊

    Also, I have a lot of Arduino Mini pro can I use this or I need a different model ?

    THANKS YOU !!

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by gohan
      #2

      I'd suggest you to look at Tasker app, otherwise it could get a little complicated and if you aren't very familiar with mains power it's better to stay away from it ☺️

      1 Reply Last reply
      2
      • Dominic BonneauD Offline
        Dominic BonneauD Offline
        Dominic Bonneau
        wrote on last edited by
        #3

        I already know Tasker but I have Iphones so I need another solution

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          You can make a box with an USB input and a USB socket with inside an Arduino with an Hall sensor that measures the current flowing to USB socket that is charging phone. Keep in mind that it may give some issues since iPhone is very picky about charging. The other option could be a sonoff pow that could trigger something when power used goes over a certain threshold. The problem with both is that when charge is complete the phones uses very low power so you can have hard time getting the right mininum threshold to understand if phone is actually connected to charger or not

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by hek
            #5

            You could probably hack one of these:

            http://www.ebay.com/itm/USB-Charger-Doctor-Voltage-Current-Meter-Mobile-Battery-Tester-Power-Detector/302160299565?_trksid=p2047675.c100005.m1851&_trkparms=aid%3D2220072%26algo%3DSIC.MBE%26ao%3D2%26asc%3D40130%26meid%3D88f9de8235f04ab2a1b29fb1f0c07d87%26pid%3D100005%26rk%3D2%26rkt%3D6%26sd%3D132153558919

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by gohan
              #6

              And don't forget that charging after 80% is done with pulses to make things more complicated. If I were you I'd make a dash button next to the phone charger 😁

              1 Reply Last reply
              0
              • Dominic BonneauD Offline
                Dominic BonneauD Offline
                Dominic Bonneau
                wrote on last edited by
                #7

                Yeah... I forgot about full charge phone ... I'm gonna try to find something else to find who is in bed and who is awake ...

                1 Reply Last reply
                0
                • gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #8

                  I saw few videos about bed occupancy sensors, maybe you could take some ideas from those

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  20

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular