Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. turaiel
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 1
    • Groups 0

    turaiel

    @turaiel

    1
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    turaiel Unfollow Follow

    Best posts made by turaiel

    • RE: Determine power source on TTGO T7 v1.5

      Thanks for that info.

      For anyone else that stumbles across this in the future: what I ended up doing was setting up a simple voltage divider (https://randomnerdtutorials.com/how-to-level-shift-5v-to-3-3v/) and connecting the 3.3V output as an input to one of the GPIO pins, set to pull down.

      When the TTGO board is running on battery, the 5V pin I'm using for input from the external power supply becomes a 5V output, which backfeeds into the 5V rail I'm using to detect external power. To solve this, I put a diode between the external power rail and the 5V pin on the TTGO board. This does result in some voltage loss when operating on external power, so I've been advised to use a Schottky diode instead, but I haven't tried that yet.

      So far, so good!

      posted in Technical Discussion
      T
      turaiel

    Latest posts made by turaiel

    • RE: Determine power source on TTGO T7 v1.5

      Thanks for that info.

      For anyone else that stumbles across this in the future: what I ended up doing was setting up a simple voltage divider (https://randomnerdtutorials.com/how-to-level-shift-5v-to-3-3v/) and connecting the 3.3V output as an input to one of the GPIO pins, set to pull down.

      When the TTGO board is running on battery, the 5V pin I'm using for input from the external power supply becomes a 5V output, which backfeeds into the 5V rail I'm using to detect external power. To solve this, I put a diode between the external power rail and the 5V pin on the TTGO board. This does result in some voltage loss when operating on external power, so I've been advised to use a Schottky diode instead, but I haven't tried that yet.

      So far, so good!

      posted in Technical Discussion
      T
      turaiel
    • Determine power source on TTGO T7 v1.5

      Hello,

      I'm working on a project using the TTGO T7 v1.5 board, using the Arduino IDE. When the board is running only on battery power, I want to be able to turn off some devices that use a lot of power. However, I'm not sure how to detect whether the board is running on battery power or on USB/wall power.

      I took a look at the schematic for the board but I'm a complete novice when it comes to electronics, so I couldn't figure anything out from that.

      Is it possible to detect which power source the board is using in software? If so, how can I do that?

      Thanks!

      posted in Technical Discussion
      T
      turaiel