Questions tagged [analog-to-digital]

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

30 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
670 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
2answers
953 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 (-...
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
36 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
1answer
772 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
0answers
328 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
1k 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
309 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 ...
1
vote
1answer
86 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.
1
vote
1answer
208 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
67 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.
0
votes
0answers
46 views

Input/output error using Python ADS1115, and a Raspberry Pi

I am trying to read an analog signal using ADS1115 and a raspberry pi. Sometimes it reads and some time result into error. Following is the code snippet response = {} adc = Adafruit_ADS1x15.ADS1115(...
0
votes
0answers
59 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
26 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
2k 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
378 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
76 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
308 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
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&...
0
votes
0answers
435 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
221 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
232 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
132 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
0answers
2k 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
498 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 ...
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
352 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 ...
-1
votes
2answers
58 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
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 ...