# Node-red-node-pi-mcp3008 v0.5.0 problem

**URL:** https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137
**Category:** General
**Created:** [2 November 2021 17:38 UTC](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137 "2021-11-02T17:38:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Piotr\_Rutkowski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/piotr_rutkowski/32/50375_2.png) [@Piotr\_Rutkowski](https://discourse.nodered.org/u/Piotr_Rutkowski)
#### Post date: [2 November 2021 17:38 UTC](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137/1 "2021-11-02T17:38:54Z")

</div>

Hello,  
It seems that version 0.5.0 is not stable (or something).  
After a crash of RPi CM4 I made a fresh installation of Raspi OS with Node Red and few other things. As usual I enabled SPI using raspi-config tool. Because it was fresh installation I installed mcp3008 module with version 0.5.0.  
All I could get regarding ADCs was something like this: "Error : Can't find SPI device - is SPI enabled in raspi-config ?ReferenceError: mcp3xxx is not defined".  
After reverting to v 0.3.0 situation got back to normal and I'm getting measured values. Sadly, I lost almost whole day finding out what's wrong.  
BTW I would like to ask for a feature to utilize MCP3xxx series ADCs to use it for quasi-differential measurements. [https://www.microchip.com/content/dam/mchp/documents/APID/ProductDocuments/DataSheets/21298e.pdf](https://www.microchip.com/content/dam/mchp/documents/APID/ProductDocuments/DataSheets/21298e.pdf) - table 5.2 shows how to use it. Unfortunately I'm not experienced with JS and I can't do it by myself (or at least I can't do it without some guidance).  
Regards,  
Piotr

---

<div class="post-metadata">

### Author: ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)
#### Post date: [6 November 2021 16:08 UTC](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137/2 "2021-11-06T16:08:13Z")

</div>

Take a look at [http://abyz.me.uk/rpi/pigpio/pigs.html](http://abyz.me.uk/rpi/pigpio/pigs.html). Use pigs to drive SPI on almost any pins. Test out pigs in a terminal first and then just use a file out node and write the commands to /dev/pigpio. You can read the results from file /dev/pigout. You can also use the tcp node.

This library does not need sudo and can generate and measure signals to an accuracy of a few 10uS.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [5 January 2022 16:08 UTC](https://discourse.nodered.org/t/node-red-node-pi-mcp3008-v0-5-0-problem/53137/3 "2022-01-05T16:08:40Z")

</div>

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