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.

155 questions
3
votes
2 answers

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 minutes ago I didn't realise the RaspPi doesn't come…
0__
  • 502
  • 8
  • 25
2
votes
1 answer

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? It seems that because Adafruit's library is…
2
votes
2 answers

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 converter. However, those seem to be out of my…
Jessica Alan
  • 123
  • 4
2
votes
0 answers

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 hence imagined I could use Linux performance counter to…
user29510
2
votes
1 answer

How many analog pins does a Pi model B + have?

I've read there https://www.raspberrypi.org/documentation/usage/gpio/ that we have 4 pins which can be used as analog, but other people say that we use only 2, so what's the correct answer?
fedos 3d
  • 31
  • 3
1
vote
1 answer

How to use Rpi [python] to read [SPI MCP3008] ADC of a [water] tank level sensor?

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.
AussieBrad
  • 11
  • 1
1
vote
1 answer

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 #include #include int main(int argc, char **argv) { float seconds; printf("Enter the run time (in seconds): "); scanf("%f",…
user76012
  • 11
  • 2
1
vote
2 answers

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 would like the pi to log the readings every second…
ahackney
  • 113
  • 4
1
vote
0 answers

Analog PH meter PH-4502C unbootable pi 3

I have the following hardware Raspberry pi 3 B+ 8 Channel relay DHT11 temperature and humidity sensor PH-4502C DIY MORE analog PH meter MCP3008 ATD Keyestudio TDS Meter V1.0 So far I got everything working using nodejs, I am building an automated…
0
votes
1 answer

Pcf8591 (AD/DA) module I2C, does it work with RPi?

Most of the RPi modules and equipments available online, are not available locally. This is the only ADC that is available locally to me. I'd like to know if it is compatible to use with Raspberry Pi Model B?
Sufiyan Ghori
  • 433
  • 9
  • 18
0
votes
1 answer

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 bits (~0V) Applying 3.3V reads out 5559000 bits…
Tom
  • 1
  • 1
0
votes
1 answer

No values from mcp3008

I can't get the mcp3008 to work. I have the wiring as in the pictures (hardware wiring), and I've re-checked it a few times, can't find any mistakes there. The left side of the mcp3008 on the picture is the one with the indent. The red wires connect…
Rien Heuver
  • 275
  • 2
  • 10
0
votes
1 answer

What is the actual maximum sampling rate of MCP3008?

In the datasheet, the maximum clock frequency (when the ADC is powered with maximum voltage of 5V) is 3.6 MHz. Each read takes about 24 clock cycles which gives us a maximum sampling rate of about 150 KSPS. However, I have a couple of questions: 1)…
0
votes
2 answers

Reading values from MCP3008

First, I'd like to preface the question that I am an electronics noob. I am trying to read and analog signal from an MCP3008 connected on a breadboard connected to my RPi v3 with a Cobbler. On the breadboard, I've only got the Cobbler and the…
0
votes
1 answer

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 something more compact or simpler that I can do?…
dalanmiller
  • 159
  • 11
1
2