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.

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 (-...
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&...
-1
votes
2answers
33 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 ...
1
vote
1answer
47 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
517 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
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 ...
1
vote
1answer
70 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.
0
votes
1answer
276 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 ...
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
457 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 ...
-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 ...
3
votes
0answers
2k views

Raspberry Pi Drum Module

I have an old electric drum set with a broken sound module (the brain that you plug each jack into). As a fun DIY project I'd like to resurrect this drum kit by replacing the sound module with the ...
2
votes
0answers
628 views

Raspberry Pi Model A+: I2S ADC and DAC connection

I want to connect raspberry pi A+ to external DAC/ADC(audio codec) via I2S interface. Is it possible? If not, what model can I use to perform audio recording/streaming?
2
votes
0answers
76 views

Has anyone used a Raspberry PI as a double-slope integrating analog-to-digital converter?

I am planning to setup a poor-man's ADC using a Raspberry PI and an operational amplifier wired as a double-slope integrating ADC for extremely low-frequency signals sampling (< 10 Hz). I have ...
1
vote
0answers
30 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 ...
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
vote
0answers
318 views

reading analog not working

I have a Raspberry Pi3, and I am following this tutorial: http://raspberrypi-aa.github.io/session3/spi.html The code I am using is: #!/usr/bin/env python # # Bitbang'd SPI interface with an MCP3008 ...
1
vote
0answers
991 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....
1
vote
0answers
307 views

Precision ADCs for Raspberry Pi to minimize Gibbs phenomenon?

I would like to generate stable volts from 0 to 5 and to minimize Gibbs phenomenon without losing measurement data. I get much sudden peaks in Raspberry Pi 1/2 which I can control by adding low-pass ...
0
votes
0answers
43 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 ...
0
votes
0answers
20 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 ...
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 ...
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 ...
0
votes
0answers
340 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
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 ...
0
votes
0answers
198 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
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
0answers
1k views

ADC with Raspberry Pi (16 or 24 bits) with sampling rate of at least 1 MHz

Is it possible to use Raspberry Pi 2 to construct an acquisition system that is at least 1 MHz fast and with 24 bits (or 16 if 24 not possible)? Just 1 channel suffices! Everything I find is either ...
0
votes
0answers
338 views

RTNETLINK Error with spi communication

When I use both PICAN-CAN-Bus module and MCP3008 with different cs on spi, I receive this message on terminal; RTNETLINK answers: Device or resource busy I tried to configuration can0 and I received ...
-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 ...