Questions tagged [analog-to-digital]

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

21
votes
6answers
31k views

How can I connect an analog to digital converter (ADC)?

I'm looking at options for ADC on the Rasbperry Pi. I'm wondering what is possible so far. Of course easy and cheap is good.
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 ...
10
votes
2answers
5k views

What Analog to Digital Converters Are Available For RPI?

I am interested in obtaining an ADC (Analog to Digital Converter) or Analog input for the Raspberry Pi. I understand that various boards exits to use an Arduino as input to the Pi and that Libellium ...
6
votes
1answer
2k views

AD7705 analog to digital converter with RPi, viable?

I have a couple of AD7705 chips I'm attempting to use with my RPi to read the analog pins from a sensor that spits out 0~4V. Nice, detailed datasheet for the ADC is here: http://www.analog.com/...
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 ...
4
votes
1answer
2k views

ADC to capture speech (8khz, 16bit)

I am looking to capture speech and save it as a wav (Wave PCM) in RPi. Ideally the speech should be captured in 8khz with 16bit resolution and saved as a raw file or wav file. I also have a need to ...
4
votes
2answers
207 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 ...
4
votes
2answers
4k views

Raspberry PI Audio Input

I am looking to use the GPIO on a Raspberry Pi to get data from an ADC for audio signal processing. For the purposes of this forum, my project is to produce a spectrum analyzer which will display the ...
4
votes
2answers
2k views

What is the best way to increase digital I/O lines on Pi?

In one of my projects I need six PWM outputs, 12 digital I/O and around six analog inputs to be controlled by a Raspberry Pi. What are some of the best options available to increase the I/O capability ...
4
votes
1answer
1k views

Sampling on the Pi using MCP3004

I am trying to sample an analog voltage signal on the Raspberry Pi using an MCP3004 ADC. I am using the spidev package and the basic code is something like: import spidev import time list = [] ...
3
votes
2answers
130 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 ...
3
votes
1answer
3k views

Using Pi's built-in audio as general-purpose DAC?

Any common Audio output on any electronic device is in essence a two-channel Digital-to-Analog converter, where the voltage sent to each of the channels (Left, Right) powers the electromagnet that ...
3
votes
2answers
343 views

Can I do anything with a pre-wired photo resistor and no additional A/D converter?

So I have this SunFounder Photo Resistor module: https://www.sunfounder.com/learn/sensor-kit-v2-0-for-raspberry-pi-b-plus/lesson-20-photoresistor-module-sensor-kit-v2-0-for-b-plus.html Until five ...
3
votes
4answers
2k views

Sound card for raspberry pi?

Can anyone recommend the best way of recording audio input? Are there any "sound cards" for Raspberry Pis? Edit: I've seen Linux software for ham radio. And see that Debian Wheezy has a whole lot of ...
3
votes
2answers
1k views

Least delay for audio processing

I am working on a project that involves real-time audio processing to do noise cancellation, so basically taking input from a microphone, doing processing, and sending out the output. It heavily ...
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 ...
3
votes
2answers
2k views

Why can't I return value from python script to PHP script when trying to use GPIO

I have spent two days on this and have tried nearly everything I could find. I am using an apache server (2.4.10). I have two files in a folder called testPythonPHP that is located in the root ...
3
votes
1answer
2k views

Multimeter functionality for raspberry pi

Are there any sensors that would allow me to measure voltage/current/resistance similar to using a multimeter but would allow me to interface with them through a library? (for example, measuring ...
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
2answers
975 views

Hardware for reading a large number of analog inputs?

I need to read a total of 64 analog voltages for a project I'm working on. This is a learning project and I'm starting from scratch, so I'm a bit lost. I've considered a 64-channel analog to digital ...
2
votes
2answers
803 views

Soil moisture sensor compatibility

Can this sensor for ardunino can be used with raspberry pi b+ model? The specs of the sensor are Operating voltage: 3.3V~5V Dual output mode,analog output more accurate A fixed bolt ...
2
votes
1answer
3k views

Raspberry Pi, LM35 and MCP3008

I want to use Raspberry Pi to measure temperature using LM35 sensors (15-30 Celsius degrees). I can't power up the sensor with 3,3V because it requires at least 4V and also I need about 10 sensors ...
2
votes
1answer
141 views

Why is the `spi device` library faster than the Adafruit's MCP3008 library?

I was reading some values from a function generator using the MCP3008 ADC, however, I got 5 times as many samples with the spi device library than I did with Adafruit's MCP3008. Why is that the case? ...
2
votes
1answer
1k views

Rasberry Pi 2 analog inputs

I am a newbie with the Raspberry Pi. I want to measure temperature from 16 sensors. Is it possible to have 16 analog inputs? If not what controller should I use, I need something with web server.
2
votes
1answer
432 views

How do I read a car turn indicator is on using GPIO

I am brand new to the Raspberry Pi (PM now born-again developer, Pi still in the box etc) and this is my very first ever post so please don't slam me if I use the wrong protocol to ask this question. ...
2
votes
1answer
119 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 ...
2
votes
1answer
79 views

Odd results when measuring timing

Some introduction to my case: I have an ADC (MCP3008) connected to my RasPi with SPI. To that ADC I have connected 2 multiplexers (4051 dip-chips, I plan on connecting 8 multiplexers eventually). So ...
2
votes
1answer
116 views

Using a 28-Channel PIC microcontroller with the RP3

TL;DR: I have virtually no knowledge of electrical engineering and I want to know if I can connect this ADC to a Raspberry Pi 3 and be able to read 15+ piezoelectric sensors at a very low latency (≤ ...
2
votes
1answer
466 views

Is it possible to sample 6 microphones at 11 kHz each with a Raspberry Pi Zero?

I am working on a project that requires me to sample 6 microphones as close to simultaneously as possible at a rate of at least 11 kHz each and then run a processing algorithm on the data in real time....
2
votes
1answer
743 views

Data logging during power loss

My Raspberry Pi, model B, is going to be sent up on a hydrogen balloon to collect data on some solar panels. I've written a python script to collect data from these panels using 3 INA219s connected to ...
2
votes
1answer
2k views

MCP3008 alternative

I have some analog devices like LDR, temperature sensors, and other sensors and I want to use the readings of these sensors in my raspberry pi B+ , for that I need an ADC , to convert the analog ...
2
votes
3answers
13k views

How to get an SPI Analog-to-Digital (MCP3204) working with the GPIO?

I have an MCP3204 12-bit Analog-to-Digital Converter (ADC), and a Raspberrypi. Does anyone know what I need to plug where to get them to communicate? Is there an SPI python library I can use? O am ...
2
votes
0answers
630 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
933 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
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
2answers
15k views

Analog to Digital Converter (ADC)

I would like to kindly ask if Raspberry Pi 3 can receive an analog signal directly without using an external ADC? and if I do need an external ADC, what is the best ADC that can I use to have the ...
1
vote
2answers
245 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 ...
1
vote
2answers
149 views

How can I use the raspberry pi to read analog voltages

I have a device that puts out 0-5v based on what it's doing. How can I use the raspberry pi to read those voltages? I would then have scripts do whatever is needed or maybe display via a webpage. I ...
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 ...
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
795 views

What happens if I try to read an analog pin's value?

I know there is a simple circuit you can make to be able to read an analog pin but what if I don't know if my device's pin is giving me analog or digital? If I try to read from that pin anyway am I ...
1
vote
2answers
206 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 ...
1
vote
2answers
288 views

Does the Sense HAT have an ADC?

I want to use analog signals with a Pi via the Sense HAT. Does the sense hat have an analog to digital converter (ADC)?
1
vote
1answer
58 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
vote
1answer
492 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
vote
1answer
263 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; ...
1
vote
1answer
418 views

Plotting information from analog-to-digital conversion

I am reading an analog signal in volts (0 - 1 V) using an adafruit ADA1115 chip. I want to save the data with at least 100 sps and plot it real time at the same time (plotting can be done at 1-10 Hz). ...
1
vote
3answers
1k views

A/D Converter Solution

We are working on developing an industrial refrigeration system. The RPi seemed like a good choice based on its ability to run Python and the number of I/Os. We need a fairly large number of sensors ...
1
vote
1answer
4k views

Converting 3.3V input to degrees Fahrenheit

I have a temp sensor (TMP 36) the same one used in the guide I am following here. I have impossible temp output. Anyone know what I did wrong? 216 temp (def F): 116582.0 216 temp (def F): 116582.0 ...