Questions tagged [analog-to-digital]

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

The conversion of signals from analog (a continuous physical quantity) to a digital representation of the quantity's amplitude.

150 questions
23
votes
6 answers

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.
John La Rooy
  • 12,005
  • 9
  • 48
  • 77
19
votes
8 answers

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 (ADC)? It seems possible to read analog inputs…
niw3
  • 193
  • 1
  • 1
  • 5
9
votes
3 answers

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 has an arduino-like adapter containing Analog…
Ira Laefsky
  • 99
  • 1
  • 3
7
votes
1 answer

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/static/imported-files/data_sheets/AD7705_7706.pdf So…
patking
  • 73
  • 1
  • 4
5
votes
2 answers

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 wanted to double check there is no danger to my…
Edyoucaterself
  • 81
  • 1
  • 1
  • 4
4
votes
2 answers

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 programmatically. I did an initial bench test without the pi,…
CDog
  • 41
  • 3
4
votes
2 answers

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 of the Raspberry Pi? For PWM, I am thinking of…
Punit Soni
  • 161
  • 7
4
votes
1 answer

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 drives the movement of the speaker membrane. Instead…
SF.
  • 920
  • 1
  • 8
  • 21
4
votes
2 answers

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 folder of my server (/var/www/html). The files are…
Xavier
  • 41
  • 1
  • 2
4
votes
1 answer

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 = [] timeout = time.time() + 5 spi =…
4
votes
1 answer

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 capture multiple channels (ie 4 microphones…
Raj
  • 143
  • 3
4
votes
4 answers

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 apps for radio. The problem is trying to…
4
votes
2 answers

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 only has digital inputs. I researched and found…
Phorce
  • 205
  • 1
  • 3
  • 5
4
votes
5 answers

Voltage monitoring of battery pack (i.e. before voltage regulation)

I am looking to use four 18650 batteries and a step-down DC-DC converter to power my Raspberry Pi 4. The negative terminal of the DC-DC converter is common for the input and the output. I would like a way to monitor the voltage of the battery pack…
mr_tuna
  • 141
  • 1
  • 3
4
votes
2 answers

How to use Rpi python to control PCM1802 24-bit HiFi stereo ADC and MAX4466 microphone amplifier

I want to get Analog Audio Input using a PCM1802 ADC Module and MAX4466 microphone module using python. It is actually a project for a very basic and introductory course about Arduino and AVR assembly and as the last part, it wants us to completely…
amir na
  • 141
  • 1
  • 3
1
2 3
9 10