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:

    >analogRead(A5);
    =0.99879453727
    >analogRead(A5);
    =0.41113908598
    >analogRead(A5);
    =0.00073243305
    

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

    Regards,
    George M.

About

Avatar for GeorgeM @GeorgeM started