# Is it possible to run the Node MCP3008 & run spidev Script at the same time?

**URL:** https://discourse.nodered.org/t/is-it-possible-to-run-the-node-mcp3008-run-spidev-script-at-the-same-time/50184
**Category:** General
**Created:** [25 August 2021 20:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-the-node-mcp3008-run-spidev-script-at-the-same-time/50184 "2021-08-25T20:09:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff1](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jeff1](https://discourse.nodered.org/u/Jeff1)
#### Post date: [25 August 2021 20:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-the-node-mcp3008-run-spidev-script-at-the-same-time/50184/1 "2021-08-25T20:09:00Z")

</div>

Hey everyone,

I'm running a project on raspy using Node-Red & the externer ADC MCP3008.  
I used to get the digital values of the Sensors via ADC using the Node "node-red-node-pi-mcp3008". I tried to increase the sampling rate of the adc using python script "SPI SW using Spidev" on the Pi, but suddenly my NodeRed is not able to work anymore.  
Are the Node "node-red-node-pi-mcp3008" and the python script "SPI SW" using the same libraries?  
Is there a chance to increase the sampling rate by decreasing the delay between the interrupts using NodeRed?

Best Regards,  
Jeff

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 August 2021 09:14 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-the-node-mcp3008-run-spidev-script-at-the-same-time/50184/2 "2021-08-26T09:14:26Z")

</div>

I don't use that node, to help me understand the problem, how do you trigger a conversion and what limits the max rate?

In your question do you mean you are trying to access the same device from two applications at the same time? I can see that might not be possible.

---

<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: [25 October 2021 09:14 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-the-node-mcp3008-run-spidev-script-at-the-same-time/50184/3 "2021-10-25T09:14:26Z")

</div>

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