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. Bug Reports
  3. Potential Problem Reading VCC on NodeMCU

Potential Problem Reading VCC on NodeMCU

Scheduled Pinned Locked Moved Bug Reports
1 Posts 1 Posters 748 Views 1 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.
  • AffordableTechA Offline
    AffordableTechA Offline
    AffordableTech
    wrote on last edited by
    #1

    Hi All,
    On a NodeMCU Ver1, I was having problems with analogRead(A0) returning 65535 no matter what voltage I applied to the ADC pin?

    In researching the cause, I discovered that having MY_DEBUG and/or MY_SPECIAL_DEBUG defined causes the ADC_MODE to be configured by MySensors to read the CPU VCC and thus AnalogRead(A0) returns 65535 as a 'reminder' that the ADC port is not available, Fair enough....

    However, in my reading I noted that for the ESP8266 to read VCC correctly, the ADC pin must remain unconnected (floating). Here is where I see a potential MySensors problem, all the latest NodeMCU Ver 1 boards that I have been receiving have a resistor divider, making the ADC input range 0 to 3.3 Volts, therefore the MySensors VCC reading will not be reliable on these boards and there is no config setting etc that can resolve this.

    I've made this post to draw attention to this as I've not seen it addressed anywhere before (despite a full day's researching the issue (see references below).

    Perhaps one of the ArduinoESP8266 core developers can shed more light on this.

    Regards,

    Paul

    Background Reading:

    Bug Issues: #338 #575 #695 #696 #2672 #3168 #4009

    https://forum.mysensors.org/topic/5547/wemos-d1-mini-esp8266-mysensors-and-analog-a0/6

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


    17

    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