I’ve been trying for several hours to figure out why the MCP3008 always read “0” on node-red.
I’ve confirmed with many site and also using the Adafruit Library ( https://learn.adafruit.com/raspberry-pi-analog-to-digital-converters/mcp3008 ) that my connection are okay. I can get/read value with the Adafruit librairy using the simpleexample.py .
I just started fresh, so let me know what I should try or do
I’m using a RPi Zero W
- Installer Raspian
- raspi-config, enable “SPI” in “Interface Options” and reboot
- Using curl command ( https://nodered.org/docs/hardware/raspberrypi ) to install node-red (I tried with and without RPi specific nodes).
- Install “node-red-node-pi-mcp3008” using Pallet Manager
- Add an inject node (let at timestamp), add the MCP3008 (lets A0 and CE0), add a debug.
I tried on CE1 and all the others Ax ports… always return Zero.
Any idea ?