Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [mcp3008]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
57 views

Raspberry PI noise reduction on analogue sensors

I am trying to reduce noise on an analogue sensor. I have scanned many forums for answers and spent multiple hours / days on finding the optimum solution. I am using ACS712-based sensors and the need ...
user avatar
1 vote
0 answers
25 views

Detect an unconnected pin on an MCP3008 [closed]

I have a couple moisture sensors loosely connected to an MCP3008 and was wondering whether it was possible to detect if a sensor is unconnected. I then tried to detect it with the channel voltage in ...
user avatar
  • 11
1 vote
1 answer
77 views

Could Not Determine Platform Error

I am using the following tutorial to make a moisture sensor using a Raspberry Pi 4: https://www.instructables.com/Measuring-Soil-Moisture-Using-Raspberry-Pi/ When I have run my code, I get the ...
user avatar
  • 13
0 votes
1 answer
35 views

Odd SPI issue only works when toggled

I'm running a pi 3b+ and I'm having a weird issue with SPI. I have a breadboard with an mcp3008 chip, and a potentiometer connected to it. I can get voltage values some of the time. I either have to ...
user avatar
0 votes
2 answers
70 views

Etape liquid level measurement not working as expected

I am building a monitor to measure how much water is in a tank. I started using 12" Standard eTape Liquid Level Sensor with Plastic Casing connected to mcp3008 and it's not working great, well ...
user avatar
  • 109
0 votes
1 answer
35 views

Ruby Gem pi_piper crashing with bcm2835_init: gpio mmap failed: Cannot allocate memory, anyone else seen this?

I am running ruby 3.0.3 on Raspbian 11 on raspberry pi 4b and I am trying to use adc mcp3008 using pi_piper gem and whenever I initialize a pin clock = PiPiper::Pin.new :pin => 18, :direction => ...
user avatar
  • 109
1 vote
0 answers
79 views

MCP23008 Python Input Handler

How do I declare a Python callback handler method on a MCP23008 input pin? This Adafruit tutorial, which uses CircuitPython shows how to read input from the extended GPIO pin on the MCP23008, but does ...
user avatar
  • 111
0 votes
1 answer
155 views

Using WiringPi with more than two chip selects and MCP3008

I am trying to get more than two chip selects available on the Pi. I have the devices present, but am struggling to read a MCP3008 when the CS is plugged into the additional GPIO pins. My end goal is ...
user avatar
0 votes
0 answers
115 views

Raspberry pi 3 spi does not work

[![enter image description here][1]][1]I use MCP3008 adc to see a potentiometer values on raspberry pi 3. My connection same with the link down here. https://roboticadiy.com/potentiometer-analog-input-...
user avatar
0 votes
1 answer
28 views

Is the photoresistor, the MCP3008 or something else wrong/damaged? [closed]

I connected a photoresistor to an MCP3008 as described here by replacing the potentiometer by a photoresistor (wiring should be correct). The LED-s work, I tested them separately and also on the board ...
user avatar
  • 27
1 vote
1 answer
226 views

Using Rpi python and MCP3008 ADC to read flame (RGB) sensor data for FFT analysis

I have an IR pyroelectic flame sensor which detects flames within the 8-10hz of flame flicker. I am new to the ADC world so any help is very appreciated. Documentation: https://pyreos.com/wp-content/...
user avatar
0 votes
3 answers
99 views

Why does connection between raspi and potentiometer via SPI fail after one time running code?

I'm pretty new in this forum and generally at wotking with Raspberry Pi. I'm trying to read the value of a potentiometer with my raspberry pi 4 B and am using MCP3008 through spi. My purpous is to ...
user avatar
1 vote
2 answers
182 views

Does Controlling a Servo Motor using a Potentiometer and a Raspberry Pi need an MCP 3800 or can it be done without it?

I am a newbie but I am aware that this question has been asked before here: Controlling a Servo with Potentiometer in Raspberry Pi But my question is do we need an MCP 3800 (Analog to digital ...
user avatar
0 votes
0 answers
142 views

ADC on RPi always produces same value

https://stackoverflow.com/q/63606134/14167364 Please follow the link for my original post was in python forum. I have a moisture sensor and it uses analog so I purchased MCP3008 ADC. I have installed ...
user avatar
0 votes
1 answer
692 views

How can Rpi Python uses Spidev to control MCP3008 ADC?

I'm building a device that will measure soil moisture, and then water the garden if the moisture is too low. I am using a MCP3008 to translate analog signal for my raspberry pi, but I'm new to this ...
user avatar
  • 67
1 vote
1 answer
388 views

I try to read analog signal with "AD8232" but it suddenly stopped working

My setup is: "Raspberry Pi Zero W" + "MCP3008" + "AD8232" (https://learn.sparkfun.com/tutorials/ad8232-heart-rate-monitor-hookup-guide/all). A few days ago I was able to read ECG signal and print ...
user avatar
  • 121
2 votes
0 answers
921 views

Interpreting voltage output on ADC with rated AC current sensor

I know I have asked similar questions before, but I have switched sensors and encountered interesting results that I do not understand. Purpose: I intend to use an AC current sensor to measure ...
user avatar
-1 votes
1 answer
41 views

How to make lilypad temperature sensor work with raspberry pi zero?

I discovered a lilypad sensor thought of connecting it with raspberry pi zero to measure living room temperature. But lilypad sensor is analog input and pi doesn’t have analog pin. How can i make ...
user avatar
0 votes
1 answer
617 views

How to increase sampling rate on MCP3008 in python

I am trying to push the MCP3008 to its limits and sample as many samples as possible from a single channel per second. I am also not trying to have to write any C or assembly code, and keep it all as ...
user avatar
1 vote
1 answer
346 views

Interpreting 10-bit ADC output

I am having difficulty understanding the output from my ADC. I am using a 10-bit MCP3008 with a photoresistor and CT current sensor connected into the analog inputs. I am reading the signals with this ...
user avatar
0 votes
2 answers
752 views

MCP3008 with photoresistor, analog to digital, noisy readings

I am trying to read values from a photoresistor. I would like to be able to read the 'level' of light, not just a binary signal. So I bought an MCP 3008 analog to digital converter, but I am running ...
user avatar
0 votes
1 answer
936 views

Python for turbidity sensor

How do i interpret this code to python for my sensor void loop() { volt = 0; for(int i=0; i<800; i++) { volt += ((float)analogRead(sensorPin)/1023)*5; } volt = ...
user avatar
2 votes
3 answers
1k views

Rpi Reading MCP3008 10 bit ADC Result Problem

I want to measure some battery voltage in a range 0V-4.2V with MCP3008(VDD=VREF=3.3V). I used a voltage divider with R1=2.7MOhm and R2=8.2MOhm, but it didn't return correct value, I used resistors ...
user avatar
  • 23
1 vote
2 answers
468 views

Rpi seemed fried by wrongly connected DHT11 temperature sensor

I'm doing a project for a school assignment and have some issue with my circuit. When I connected the breadboard to pi and to power, everything was working, I could read data from sensors and looked ...
user avatar
  • 13
1 vote
1 answer
1k views

Connect touch screen 3.5" LCD and MCP3008 at the same time

Reposting this question asked by someone else a few years ago because it was unanswered and I am facing the same problem. I want to use a touchscreen LCD (3.5" TFT) and a MPC3008 ADC at the same time ...
user avatar
2 votes
1 answer
6k views

ECG monitoring using ADS8232 and MCP3008 noise problem

I am making a project of Real-time ECG monitoring device using Raspberry Pi 3B+, Heart monitor AD8232 sensor by Keyes, MCP3008 ADC and 7" HDMI LCD. I am giving supply to RPi using 5V DC charger ...
user avatar
0 votes
1 answer
769 views

MCP3008 and Raspberry Pi Zero

Can I use MCP3008 to input analog signals to Raspberry Pi Zero? If not, Which is the cheapest version of Raspberry Pi?
user avatar
1 vote
1 answer
537 views

spi/mcp3008 trouble with getting a reading from chip, all channels read 0 (zero)

Pi model: Pi 3 A+ Os: Raspbian GNU/Linux 9 (stretch) <- it's stretch lite SPI: On Loop back test: spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX | FF FF FF FF FF FF 40 00 00 ...
user avatar
1 vote
2 answers
162 views

Get different values from potentiometer even not touching

I have a potentiometer that is used to adjust volume level along with MCP3008 but even if I don't touch it, its values are going and coming as following. Press Ctrl-C to quit... Channel 0 minus 1: ...
user avatar
  • 141
0 votes
1 answer
605 views

random reading by analog inputs of mcp3008

i ran the simpletest.py program for testing the mcp3008 and it is returning random values with 0 value at intervals to the pins left open and also to the pin getting input from MQ-9 sensor... can ...
user avatar
2 votes
1 answer
188 views

Two data parsing frames for SPI reads of MCP3008 ADC, any advantages or disadvantages of either one?

I am reading an MCP3008 ADC using pigpio, I've abstracted the script below. I have also found a slightly different construction or parsing of the three SPI command bytes and reconstruction of the ADC ...
user avatar
  • 528
0 votes
1 answer
384 views

Noise while reading analogue signal with an MCP3008

I have an analogue sensor with a signal of 0-12v, I'm then using a voltage divider with R1 100k and R2 33k. I can read this using an MCP3008 connected to a raspberry pi 3 then multiply the 10bit ...
user avatar
  • 596
0 votes
1 answer
198 views

How do I wire an MCP3004 to the pi?

I've ordered an MCP3004 rather than an MCP3008 from Pimoroni. All searches for "MCP3004" give me datasheets. All searches for "MCP3004 pi" give me guides on the MCP3008. If I can connect ports (...
user avatar