Questions tagged [mcp3008]
The mcp3008 tag has no usage guidance.
38
questions
1
vote
1
answer
78
views
Connecting an LDR with an MCP3008 to an RPI. No value change
I have an RPI 4 Model B running the raspios bullseye 1.1.0 created by Cycling74 to use it in conjunction with RNBO. Found here: https://rnbo.cycling74.com/resources
All required libraries for this ...
2
votes
0
answers
60
views
MCP3008 only returns 0 values
I have a MCP3008 that is connected to 2 LDRs, one on CH0 one on CH7, the other 6 CH are grounded. When running the simpletest.py of the Adafruit MCP library I get back 0 from every pin. I measured CH0 ...
2
votes
0
answers
123
views
Multiple SPI reads on Pi Pico requires reinitialisation
I'm playing around with reading in analogue inputs from an MCP3208 ADC via SPI.
However, reading multiple inputs seems to cause a seg fault unless I reinitialise the SPI on each read/write.
I've ...
1
vote
3
answers
151
views
Simultaneous Question: How to connect three mcp3008 ic's to one Raspberry pi
I am using Raspberry pi 4 and I want to connect three MCP3008 ic. I am a little bit confused about how to SPI MISO and SPI MOSI and chip select of Raspberry pi to Dout Din and CS of each of the three ...
1
vote
2
answers
108
views
Porting a python script to C/C++ (potentiometer, MCP3008, pi-zero-w-2)
I'm pretty newbie to C++. I'm trying to write a simple, workable code for interfacing my potentiometer and MCP3008 with my raspberry pi. I've written this python script which works nicely. However I ...
1
vote
2
answers
237
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 ...
1
vote
0
answers
32
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 ...
0
votes
1
answer
529
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 ...
1
vote
1
answer
112
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 ...
0
votes
2
answers
260
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 ...
1
vote
1
answer
170
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 => ...
1
vote
0
answers
243
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 ...
0
votes
1
answer
347
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 ...
0
votes
0
answers
171
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-...
0
votes
1
answer
45
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 ...
1
vote
1
answer
302
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/...
0
votes
3
answers
128
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 ...
1
vote
2
answers
228
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 ...
0
votes
0
answers
174
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 ...
0
votes
1
answer
892
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 ...
1
vote
1
answer
483
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 ...
2
votes
0
answers
1k
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 ...
-1
votes
1
answer
45
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 ...
0
votes
1
answer
826
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 ...
1
vote
1
answer
417
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 ...
0
votes
2
answers
912
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 ...
0
votes
1
answer
2k
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 = ...
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 ...
1
vote
2
answers
714
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 ...
0
votes
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 ...
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 ...
1
vote
1
answer
909
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?
1
vote
1
answer
634
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 ...
1
vote
2
answers
197
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: ...
1
vote
1
answer
685
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 ...
2
votes
1
answer
241
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 ...
0
votes
1
answer
472
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 ...
0
votes
1
answer
233
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 (...