MCP3008 for Weather Station values different Python/Node-Red

Hi all, I'm trying to build a weather station, one of my components is a weathervane showing wind direction, I'm following the instructions here Raspberry Pi Weather Station. The project is going well however my problem is when reading the value of the MCP3008 chip in python the values I'm getting do not match the values I'm getting when trying to read them into Node-Red.

I'm using the node-red-node-pi-mcp3008 node to read the values.

Anyone any ideas what I'm doing wrong?

As per the readme the node produces numbers from 0 - 1023 full scale... so you may want to divide by 1024.

Ah stuff, how embarrassing for me! Well spotted thank you. :flushed:

np - I like the easy ones :-)... of course what 841 and 0.8221 etc mean depends on voltage dividers etc anyway. (so the range node may also be useful...)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.