# MCP3008 and transducers

**URL:** <https://forum.arduino.cc/t/mcp3008-and-transducers/1340024>\
**Category:** General Guidance\
**Created:** [January 7, 2025, 3:20pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024 "2025-01-07T15:20:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 3:20pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/1 "2025-01-07T15:20:16Z")

</div>

Hi all...

ok, full disclosure, not 100% Arduino based, but guessing most here will know electronics better than me.

Transducer is 5V DC input, output is 0-3.3V  
MCP3008 is 2.5 - 5.8V  
Want to power the MCP =\> VCC and vRef wit 3.3V  
Power the Transducer via a separate 5V.  
All grounds are to be connected,

I'm using Rpi platform, simply because I have allot of them and comfortable with Python.  
At the moment I've figured out I can introduce more stability on the MCP by grounding the unused analog inputs.

I am however having measurements that fluctuates like a wave... See below...

[https://www.aliexpress.com/item/1005006258321416.html?spm=a2g0o.order\_list.order\_list\_main.11.3e211802VNe9KH](https://www.aliexpress.com/item/1005006258321416.html?spm=a2g0o.order_list.order_list_main.11.3e211802VNe9KH)

[https://www.aliexpress.com/item/1005007554736988.html?spm=a2g0o.order\_list.order\_list\_main.15.3e211802VNe9KH](https://www.aliexpress.com/item/1005007554736988.html?spm=a2g0o.order_list.order_list_main.15.3e211802VNe9KH)

 ![Screenshot 2025-01-02 at 12.50.05](https://europe1.discourse-cdn.com/arduino/original/4X/7/7/1/7716421864428fa4315a1542ad7424571893cd1e.png)  
 ![Screenshot 2025-01-03 at 17.10.42](https://europe1.discourse-cdn.com/arduino/original/4X/5/f/0/5f0ef476a0ef7f4ec3c1eb19942b1ba0513d4e7c.jpeg)  
 ![Screenshot 2025-01-06 at 21.55.28](https://europe1.discourse-cdn.com/arduino/original/4X/7/3/6/7362eb7a0f436eadfc4ed3fcbdc9bf19dd1889ba.png)  
 ![Screenshot 2025-01-07 at 07.41.00](https://europe1.discourse-cdn.com/arduino/original/4X/f/f/f/fff08aa74396e8c3600d7e92567c9ca255cc7d1e.png)

See the first column, that was with the transducer powered by 3.3V

| 412 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 116 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 512 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 597 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 581 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 579 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 582 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 459 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 38 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 588 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 585 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 581 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 584 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 287 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 36 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 430 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 601 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 587 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 578 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 433 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 178 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 586 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 598 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 587 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 575 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 254 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 988 | 0 | 0 |  
| 43 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 481 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 598 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 584 | 0 | 0 | 0 | 0 | 989 | 0 | 0 |  
| 572 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 990 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 808 | 0 | 0 |  
| 0 | 0 | 0 | 0 | 0 | 576 | 0 | 0 |  
| 220 | 0 | 0 | 0 | 0 | 571 | 0 | 0 |  
| 591 | 0 | 0 | 0 | 0 | 572 | 0 | 0 |  
| 608 | 0 | 0 | 0 | 0 | 571 | 0 | 0 |  
| 596 | 0 | 0 | 0 | 0 | 571 | 0 | 0 |

Got the below when I powered it by 5V, channel 6 is a 10k pot powered by the 3.3V line.  
Need to retry and install the sensor in test pipe, power by 5V again and see if this 1023 (lying on desk with 0 pressure) translates to a stable reading when I add water to test pipe...

| 1023 | 3 | 2 | 2 | 2 | 740 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 739 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 740 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 738 | 3 | 3 |  
| 1023 | 2 | 2 | 2 | 2 | 731 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 740 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 743 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 740 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 743 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 741 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 743 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 733 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 743 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 744 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 747 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 746 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 747 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 746 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 746 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 746 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 745 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 700 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 522 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 430 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 426 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 427 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 347 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 94 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 50 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 93 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 290 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 514 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 608 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 617 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 617 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 617 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 620 | 3 | 3 |  
| 1023 | 3 | 2 | 2 | 2 | 620 | 3 | 3 |

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [January 7, 2025, 3:28pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/2 "2025-01-07T15:28:48Z")

</div>

What is the frequency of the "wave" in the first column? (timestamps?)  
Datasheet of the sensors?

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [January 7, 2025, 3:30pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/3 "2025-01-07T15:30:06Z")

</div>

The link to you sensor is 404 page not found.  
Please post the data sheet.

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 4:03pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/4 "2025-01-07T16:03:27Z")

</div>

The sensors are from AliExpress... they not good on data sheets...  
the wave is 0.5 seconds between each reading.  
but i have the same wavy if done via another program at 9second interval

lets try the links again.

This sensor is working as well as i can expect... and thats even on 3.3V DC input, even though my units are 5V input: This is channel 6 on the above.  
[Drop in sensor, channel 6](https://www.aliexpress.com/item/1005007554736988.html?spm=a2g0o.store_pc_home.0.0.3f047907rF7dXZ)

These units are just all over the place, this is the channel 0  
[Screw in sensor - 2, channel 0](https://www.aliexpress.com/item/1005006258321416.html?spm=a2g0o.detail.pcDetailTopMoreOtherSeller.1.78cdWV9jWV9j9p&gps-id=pcDetailTopMoreOtherSeller&scm=1007.40196.404796.0&scm_id=1007.40196.404796.0&scm-url=1007.40196.404796.0&pvid=66812373-c820-4696-94d2-47adbbb6b8ef&_t=gps-id:pcDetailTopMoreOtherSeller,scm-url:1007.40196.404796.0,pvid:66812373-c820-4696-94d2-47adbbb6b8ef,tpp_buckets:668%232846%238111%231996&pdp_npi=4%40dis%21ZAR%21730.65%21482.23%21%21%21275.00%21181.50%21%40211b61ae17362655409467922ea2fd%2112000036500164948%21rec%21ZA%21132265470%21XZ&utparam-url=scene%3ApcDetailTopMoreOtherSeller%7Cquery_from%3A)

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 4:09pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/5 "2025-01-07T16:09:12Z")

</div>

I got the screw in sensors cabled using 4 core phone cable.... but was wondering if thats the problem so the last test was using crocodile clamps directly onto the sensors contact pins, onto proto board pins,

G

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [January 7, 2025, 4:15pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/6 "2025-01-07T16:15:32Z")

</div>

> [@georgelza](#):
>
> The sensors are from AliExpress... they not good on data sheets...

That's a not a good supplier then,,,, Why buy things not having documentation unless You already know them?  
No device is jumping into position by itself.

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 4:24pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/7 "2025-01-07T16:24:15Z")

</div>

> [@georgelza](#):
>
> I got the screw in sensors cabled using 4 core phone cable.... but was wondering if thats the problem so the last test was using crocodile clamps directly onto the sensors contact pins, onto proto board pin

ok... butI now have 4 sensors for my home automation, 3 x 0.5bar for 3m high water tanks and 1 x 10bar for reading water line pressure after the booster pump.

Still need to fix this for the sensors.

G

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [January 7, 2025, 5:15pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/8 "2025-01-07T17:15:44Z")

</div>

It seems likely that you have a grounding and/or interference problem with long leads.

Please post the code, using code tags, a complete wiring diagram with pins and connections clearly labeled (hand drawn is fine), and a photo of the setup.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [January 7, 2025, 5:36pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/9 "2025-01-07T17:36:01Z")

</div>

> [@georgelza](#):
>
> now have 4 sensors for my home automation

Solve the fist problem before adding more stuff.

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 5:42pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/10 "2025-01-07T17:42:07Z")

</div>

I have one sensor, of the one type thats stable... and then 2 of the 2nd type not.  
same code.

Wiring diagrams.  
See below. the image showing 3 sensors... imaging thats 1 of the drop in type and 2 of the screw type.

 ![WaterSystem-1.0-G](https://europe1.discourse-cdn.com/arduino/original/4X/f/9/e/f9e7c4c756719d1a5486c8657617a1bde1507aa2.jpeg)  
 ![WaterSystem-1.0-Ken](https://europe1.discourse-cdn.com/arduino/original/4X/3/f/5/3f53c85bb18a3f868711c077ca700fb3aa4a5746.jpeg)

will upload code to git and post here in a second  
G

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 5:46pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/11 "2025-01-07T17:46:20Z")

</div>

[Waterlevel](https://github.com/georgelza/waterlevel.git)

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 7, 2025, 5:47pm UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/12 "2025-01-07T17:47:24Z")

</div>

this shows all connected to 3.3V.

As asked above.... if/can i connect sensors to 5v and MCP3008 to 3.3V.

G

---

<div class="post-metadata">

**Author:** ![georgelza](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/georgelza/32/813194_2.png) [@georgelza](https://forum.arduino.cc/u/georgelza)\
**Post date:** [January 8, 2025, 11:18am UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/13 "2025-01-08T11:18:36Z")

</div>

so…

Looks like i figured it out…

don’t trust markings on one part, take more and more apart…

As can be seen on this diagram, Notice the what looks like a Dot, a indicator mark… on the Left, between the Post top and Neg bottom,

as if when you take the top cover off, see mark little mark and then wire according to that, as there is no numbers… well that was exactly wrong way round…

if i take the top plastic off the bottom cylinder… bottom of that plastic was numbers… and this view… so user error, I swopped the cables around… re-installed and it read spot on, like to the cm of water…

 ![Screenshot 2025-01-02 at 12.50.05](https://europe1.discourse-cdn.com/arduino/original/4X/7/7/1/7716421864428fa4315a1542ad7424571893cd1e.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 7, 2025, 11:18am UTC](https://forum.arduino.cc/t/mcp3008-and-transducers/1340024/14 "2025-07-07T11:18:58Z")

</div>

Closed on July 7, 2025, 11:18am UTC

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