Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [analog-to-digital]

For questions pertaining to signal conversion, either through hardware or software.

1
vote
1answer
56 views

How to read ADC with low restance range

Does anyone have any ideas on how I can use RPI with ADC to measure a tank level sensor which has a range of only 20 to 200 ohm.
1
vote
1answer
71 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika (datasheet). I'm wondering how to wire it with GPIO.
-3
votes
0answers
17 views

ADC with low resistance

I am trying to monitor a water tank level sensor, the resistance is only 30-220 ohm and doesn't seem to make enough voltage drop to be monitored. Does anyone have any suggestions on how I can ...
-1
votes
2answers
35 views

Reading analog sensor value of 0-10Vdc with 12/16bit resolution

Dear all, I am using below model for reading analog value. I wanted to measure 0-10VDc &0-30Vdc .i wanted use it application where accuracy important. if i wanted to 12/16bit resolution of value ...
0
votes
1answer
119 views

How to connect PCF8951 with Raspberry Pi

I want to connect PCF8951 with Raspberry Pi I'm following: 1: https://www.sunfounder.com/learn/sensor-kit-v2-0-for-raspberry-pi-b-plus/lesson-13-pcf8591-sensor-kit-v2-0-for-b-plus.html But when ...
0
votes
1answer
277 views

Interface AD7193 with Raspberry Pi

I have been trying to interface an ADC with raspberry Pi namely AD7193 via SPI . For that I have enabled my SPI and installed spidev on my pi. but i dont know what to do next in order to get the ...
0
votes
1answer
215 views

Trouble with Flex Sensor and MCP3008

I'm working on a project currently, though things aren't quite working so I would like whoever's advice. So, to put it briefly, I'm using a Sparkfun Flex Sensor and an MCP3008 hooked up via a ...
1
vote
1answer
529 views

Correct wiring for multiple analogue sensors?

I’ve recently embarked upon a project that I’ve wanted to do for a while. My overall plan is to have 3 planting shelves; each will have its own soil moisture sensor, water pipe and LED lighting. The ...
1
vote
1answer
52 views

Seeed ADC (ADS1115) with Raspberry Pi 3 B+to read voltage values using python3

I'm using a Seeed 4-Channel 16-Bit ADC (ADS1115) for Raspberry Pi with a Stretch installed Raspberry Pi 3 B+ and successfully configured following below guidelines & GitHub. http://wiki....
-1
votes
1answer
59 views

Easiest way to listen to analog connection?

I got a MAX 9814 but quickly realized the output is analog and not digital. I found that I could get an Arduino Nano/Micro and connect it to my Pi via a USB to USB-micro cable but I wonder if there's ...
0
votes
2answers
2k views

How to achieve a high sampling speed using an ADC with Raspberry Pi?

So, I am using the LTC 2366, 3 MSPS ADC and using the code given below, was able to achieve a sampling rate of about 380 KSPS. #include <stdio.h> #include <time.h> #include <bcm2835.h&...
2
votes
2answers
932 views

Analog input with MCP3008

I'm trying to connect a Turner C-Sense pCO2 sensor to an RPi2B using an MCP3008 ADC. The probe is powered via dedicated 9V inverter. The probe's analog output wires include a signal out (+) and AGND (-...
1
vote
0answers
31 views

Cant read both SPI Buses of Raspberry Pi 3B+

I want to read 3 analogue sensors simultaneously. I have successfully connected 2 sensors using a MCP 3002 A/D converter which is connected to CS0 of SPI 0 of raspberry pi and I have activated 3 more ...
0
votes
0answers
1k views

Analog Microphone with Raspberry PI

I have an analog microphone like this one : Is there a way to record audio from GPIOs and convert it to readable format, such as .mp3 or .wav ? I searched on Google, but I didn't find what i want .....
0
votes
1answer
458 views

How to install wiringPi in Matlab Simulink for interface Raspberry Pi with ADC?

I like to use IC MCP3008 to change analogue signal to digital signal for Raspberry Pi interface with Matlab Simulink. But I getting the error missing file wiringPi.h and wiringPi.c. May I know how can ...
4
votes
2answers
189 views

Reading Voltage Input on ADC

I'm thinking of using the Waveshare ADC board with a RaspPi 3 to monitor the current driving a DC brushless motor. I've run through the waveshare examples, and I can handle reading inputs ...
2
votes
1answer
114 views

Waveshare ADC Board negative value issue

I'm using this Raspberry Pi High-Precision AD/DA Expansion Board from waveshare. I have some questions regarding its ADC (model name: ADS1256) unable to give out negative value. Specifically, only ...
0
votes
1answer
452 views

Raspberry Pi Current & Voltage Sensors (10A rating and ~40V respectively)

I've been searching through multiple forums, and gone to different links online trying to find a "cheap" solution to my question. I am currently trying to monitor the current and voltage of an ...
0
votes
0answers
44 views

Waveshare ADC Board Full Scale Issues (ADS1256)

I am using the Waveshare High-Precision AD/DA Board with my Pi to read an analogue 0-5v signal. I am using a 5V reference voltage, but I can't seem to read full scale. Applying 0V reads out -344 ...
1
vote
2answers
235 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
3
votes
2answers
126 views

How the fluctuation in MPC3008 ADC unused channels is explained?

I am using mpc3008 in order to convert the analogue signal of two sensors, for a rpi3. The sensors are, the SEN0189 turbidity sensor and the SEN0244 TDS sensor. The code I am using is the ...
0
votes
1answer
58 views

Use ADC with add_event_detect to detect voltage rising

I need to find a solution for my project. Basically I just need to define if there is a voltage or not by using GPIO event detection. For my basic scheme I used 3.3v pin and one of the GPIO pin for ...
5
votes
2answers
6k views

Using 5 volts on an mcp3008

I have a couple different types of hall effect sensors I would like to test out using an MCP3008 ADC to interface with my Pi. The sensors run on 4.5 V minimum. Before I configure the ADC for 5 volts I ...
0
votes
0answers
21 views

Analog input together with LoRaWAN

I am looking for a hardware configuration enabling me to read an analog input from ammeter and collect the historical data and send them over LoRa to a server. So I could use something like Monarco ...
1
vote
1answer
261 views

How to use the LTC2365 ADC with the BCM2835 library?

When I used the library with MCP3008 ADC, this is the code that I used: #include <stdio.h> #include <time.h> #include <bcm2835.h> int main(int argc, char **argv) { float seconds; ...
0
votes
2answers
46 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: ...
16
votes
8answers
35k views

Is Pi powerful enough for an oscilloscope project?

My goal is to make Pi based instruments, starting with an oscilloscope. So I read answers to What Analog to Digital Converters Are Available For RPI? How can I connect an analog to digital converter ...
1
vote
1answer
9k views

how to change read channels on PCF8591

I have a PCF8591 analog to digital converter. I have it reading from AIN0 (thanks to @joan), but I cant find a reference for getting it to read from multiple channels. How would I get it to read input ...
1
vote
2answers
405 views

MCP3008 analogue digital converter… how can I use it for the complete opposite of what it was made for?

I have set up an mcp3008 chip and a slide pot on my pi because I wanted a nice old fashioned volume control, and all of that seems to working fine and I am quite happy with it. Now I have 7 ...
1
vote
1answer
197 views

Simultaneous using of Touchscreean LCD and MCP3008 on Raspberry Pi 3

I want to use a touchscreen LCD (3.5" TFT) and a MPC3008 ADC at the same time to monitor data fast and continuously in my project. And I know the data interface of each three parts (LCD, touch, and ...
3
votes
2answers
5k views

ADC for ultrasonic frequency recording?

I'm trying to create a prototype using a breadboard that is able to record sounds at the ultrasonic frequency range. I am looking into purchasing this microphone. The problem is that the Raspberry Pi ...
0
votes
1answer
320 views

Raspberry Pi AD/DA converter

I am currently working on sensors and I'd like to read the sensor data into my Raspberry Pi. However, I have some difficulties with the Waveshare High-Precision-Board which I'm using. I just don't ...
0
votes
1answer
180 views

Raspberry Pi GPIO & Analog Sensors

I am fairly new to Raspberry and Coding/electro-engineering in general but wanna get it done anyways. I've some questions regarding reading data from analog sensors. Background: I got an AD/DA-high-...
1
vote
2answers
202 views

pi4j implementation for SPI communications with MCP3008 reading zeros

I have hardwired a MCP3008 IC into the SPI input on a Raspberry Pi3. MCP3008 is wired as follows: pin 10 (CS) to Pi GPIO_10 (pin 24) this is CE0 pin 11 (Din) to Pi GPIO_12 (pin 19) this is MOSI ...
0
votes
0answers
102 views

Running the Waveshare DAC with Python

I've been working on setting up and using the Waveshare High Precision AD/DA. I have it set up but I can't seem to figure out how to use it with Python as it seems to be rather poorly documented. (It ...
1
vote
4answers
3k views

Using Pi to read 1 MHz Analog Ultrasound signals

I am trying to use the Raspberry Pi to read in analog signals at 1MHz and I wanted to know how I would go about doing this. What sort of ADC should I buy, and how many? If not ADC, what do I need to ...
0
votes
0answers
1k views

Reading data from MCP3551 via SPI

I am trying to read data via SPI from an ozone sensor that I have connected to the Raspberry Pi's GPIO. This set up uses a Mikro Pi click shield and Mikro Ozone 2 click sensor. The output of the ...
1
vote
1answer
488 views

Reading values using MCP3002

I'm trying to use MCP3002 for the first time, and can't seem to get the basics to work I've been following this guide and am pretty certain that all my connections are right (updated photo below). ...
-1
votes
1answer
203 views

Force Sensing Resistor with Raspberry Pi

I have a school project where I have to make a car park with a fully functional parking lot checking system. The FSRs job is to detect any weight and send a signal to the raspberry pi that the ...
0
votes
2answers
605 views

problem with adc mcp3008 & ads1115

My raspberry 3Bs seem to have problems with their I2C and SPI bus. a. I tried MCP3008 using SPI connected with light sensor and temp sensor, the output on channel 0 &1 is only outputting zeros ...
0
votes
1answer
363 views

Logic Behind MQx Sensors Calibration

Would you please explain the logic behind this snippet of code which is taken from here for calibrating MQx Sensor(s): def MQResistanceCalculation(self, raw_adc): return float(self.RL_VALUE*(...
0
votes
0answers
341 views

ADC for the raspberry pi zero w

Does anyone know of an ADC that I can use for a joystick to connect to the raspberry pi zero w? I have the adafruit pitft plus 2.8 resistive touch screen installed and it uses all the SPI pins I think....
0
votes
0answers
70 views

ADC Hat with 8 differential channels and 24 bit resolution for 100 - 200 SPS (Hz)

I'm sorry if there's a similar post, I could not find it (them). As the title implies, I'm looking for an ADC hat for the Rapspberry Pi 3 Model B with 8 differential channels to sample up to 200 SPS (...
0
votes
1answer
3k views

ACS712 connected to Raspberry Pi through MCP3008

Is it possible to bind the ACS712 sensor in the following way? 5V to 5V Raspberry Pi pin GND to GND pin Out pin to a MCP3008 channel The MCP3008 is an analogue to digital converter. I'm asking this ...
0
votes
0answers
400 views

soil moisture sensor analog output is 0

I'm a newbie to pi and using it for my final year project to display moisture value of soil using the soil moisture sensor. I have followed this tutorial website for the connection and code and ...
1
vote
0answers
993 views

MCP3008 Installation Issues

CH5 is connected to my AO from my moisture sensor. pi@raspberrypi:~ $ ls -l /dev/spi* crw-rw---- 1 root spi 153, 0 Jun 18 12:13 /dev/spidev0.0 crw-rw---- 1 root spi 153, 1 Jun 18 12:13 /dev/spidev0....
0
votes
0answers
202 views

How to connect sensor to Raspi via poor man’s a/d converter?

TL/DR: I’m using this and there are things I don’t understand about this circuit. Ultimately I’d like to read data from this sensor, but all I get is gibberish. Please, help. I have set up “poor man’...
0
votes
1answer
358 views

combining sound card and ADC (I2C)

Am thinking of using an Audio Injector sound card, which apparently has a two-channel high-precision ADC. In addition I will be needing to read two different variable resistances. One of these has two ...
1
vote
0answers
1k views

Measure ac power with invasive ct sensor 30A

I am measuring power(watt) with a non invasive sensor SF-SEN-11005 30A. After calibrating on 150 watt it works fine. When I disconnect the sensor I expect a zero value, which is not the case. The ...
-1
votes
1answer
3k views

Reading all channels MCP3008

I have a problem with reading data from adc convertor MCP3008 10bit. I found a python script from adafruit that give data value from all channels (CHO TO CH7). I added a picture with my results and ...