You are reading a single comment by @GeorgeM and its replies. Click here to read the full conversation.
  • Hi All,

    Just a quick one with regards to analogRead() values I'm getting back from pin A5 on the Pico:

    	const solarIn = analogRead(A5);
    	const dataRead = () => {return (solarIn * 3.3) / 65536;};
    • console.log output being this:
      0.00005031789 or 2.45872911421e-8

    -using the terminal for querying gives me an output between 0 & 1:


    any ideas? I'm sure I'm doing something wrong but can't figure out where...

    George M.


Avatar for GeorgeM @GeorgeM started