# Use both MCP3008 Device IDs

**URL:** https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198
**Category:** General
**Created:** [2 November 2020 10:31 UTC](https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198 "2020-11-02T10:31:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan1](https://discourse.nodered.org/u/Stefan1)
#### Post date: [2 November 2020 10:31 UTC](https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198/1 "2020-11-02T10:31:53Z")

</div>

Hello,  
I have two MCP3008 and would like to read them out via Node-Red. My problem is that I can only read it out for one Device ID. If I set the first A/D-Converter to CE0, the second A/D-Converter also use CE0, although it is set to CE1. Is it possible to use both Device IDs?

I have installed: node-red-node-pi-mcp3008  
A Node-RED node to read from the MCP3008 Analogue to Digital Converter

Many thanks in advance.  
Stefan

---

<div class="post-metadata">

### Author: ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)
#### Post date: [2 November 2020 11:27 UTC](https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198/2 "2020-11-02T11:27:44Z")

</div>

Maybe this topic can help you; [Use SPI1 in Node-RED](https://discourse.nodered.org/t/use-spi1-in-node-red/3329)

---

<div class="post-metadata">

### Author: ![Stefan1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan1](https://discourse.nodered.org/u/Stefan1)
#### Post date: [2 November 2020 19:46 UTC](https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198/3 "2020-11-02T19:46:53Z")

</div>

Thank you for your answer. I tried to use the SPI1 bus for the second A/D-Converter, but I have the same result. My properties:

For the first mcp3008:  
Device: mcp3008  
Input pin: A6  
Device ID: CE1  
SPI Bus: 0

For the second MCP3008  
Device: mcp3008  
Input pin: A6  
Device ID: CE0  
SPI Bus: 1

For a Test i have an output at the debug window. I get the same value for the first and the second MCP3008. If i remove the first mcp3008 from the raspberry, I also get the value 0 for both.

---

<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: [1 January 2021 19:46 UTC](https://discourse.nodered.org/t/use-both-mcp3008-device-ids/35198/4 "2021-01-01T19:46:57Z")

</div>

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