Questions tagged [analog-to-digital]

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

Filter by
Sorted by
Tagged with
-1 votes
2 answers
104 views

How to convert photoresistor signal to simple Low/High digital on RPi Pico

I'm building a light-triggered sound puzzle for my kids, and I have seven pieces. A little bit like this toy: My plan was to plug 7 photoresistors to ADC pins on my Raspberry Pi Pico, but actually, ...
Myoch's user avatar
  • 109
0 votes
1 answer
380 views

How do I connect a 4th analog input to a Raspberry Pi Pico?

I have to connect 4 different analog inputs to the raspberry pi pico. However there are only 3 pins available for usage. Is it possible to use the PWM pins for additional analog inputs? or should i ...
Anamika's user avatar
-1 votes
1 answer
94 views

Using TCA9548A for multiple MQ-X gas sensors

I have about 8-9 gas sensors I want to use on my Pi but I'm trying to understand how to use The TCA9548A. The TCA9548A Has 8 pairs of SDL and SCL pins to handle multiple I2C devices, but the output ...
Katianie's user avatar
  • 131
1 vote
1 answer
87 views

How to get measured(analog/digital) output from 801s vibration sensor? [closed]

I have Rpi3B+, 801s vibration sensor and a ADC. I need the analog output to plot a graph for analysis. Basically I need to observe how vibration is affecting the other properties of the machine. ...
Snehal Shende's user avatar
0 votes
1 answer
366 views

How to connect four analog microphones to Raspberry Pi GPIO?

I have four microphones that has pins: VCC, GND and Analog Data. I need to connect it to Raspberry Pi (I need it for detection direction to source of sound). As I know, GPIO doesn't have analog inputs,...
Robotex's user avatar
  • 137
0 votes
0 answers
127 views

Logging data from High Precision AD/DA board using Raspberry Pi 3B

I have a High Precision AD/DA board from waveshare with Raspberry Pi 3B (running on Raspbian). With this setup, I get a sampling rate of above 20KPS at my terminal display. However, I can write only ...
Varun Dhankhar's user avatar
1 vote
0 answers
60 views

How I can transmit data from soil moisture sensors 10m away to raspberry pi?

I found this interesting project: https://hydrosysblog.wordpress.com/hardware/ And I want to apply a soil moisture sensor. But the sensor may be 10m or more (but less than 20m) away from the raspberry ...
Dimitrios Desyllas's user avatar
1 vote
1 answer
47 views

Power Monitoring Physics Experiment

Hi i am just planning a Physics experiment where i accelerate Ionized Gases onto a target sample. For this Experiment i need to monitor the power constantly over a week or longer. For my later data ...
weiserhase's user avatar
0 votes
2 answers
272 views

How to connect keypad to Pi Zero

I've tried to find info but with no luck. I'm trying to make a project - barcode scanner - using RPI zero. I need a keypad to input quantities when I scan a barcode. I am unable to find any phone-...
gerpaick's user avatar
  • 101
1 vote
0 answers
279 views

(RPi4) AHD to CSI-2 and ENOSPC / PiCameraMMALError: Failed to enable connection: Out of resources

I have a fun one - I'm trying to get an analogue camera input (AHD using a normal BNC connector) over a CSI-2 cable/bus (standard RPi one, not the dual-lane Google ones), and be usable through the CSI ...
Yiros's user avatar
  • 11
0 votes
0 answers
191 views

Raspberry pi 4b with ADC Pi and capacitive moisture sensor

I recently bought the following https://thepihut.com/products/capacitive-soil-moisture-sensor https://thepihut.com/products/adc-pizero Note: Raspberry pi 4 is not listed as compatible at Pihut, but ...
oskjerv's user avatar
1 vote
1 answer
711 views

ADS1115 Inconsistent conversion results and full scale setting problem

I have a ADS1115 breakout board from adafruit connected to my RPi 3B connected via I2C. It is powered via the RPi 3.3V pin. The A0 input to the ADC is connected to a sensor that will produce out-...
LudvigH's user avatar
  • 133
1 vote
0 answers
1k views

Raspberry Pico RP2040 - Circuitpython ULAB FFT Frequencies

I am trying to properly perform FFT and calculate frequencies on my PICO using CircuitPython's (CP) ULAB library: ULAB FFT With traditional Python using NUMPY and SCIPY, this is easily achievable, ...
GeorgetheCat's user avatar
1 vote
1 answer
321 views

Using Rpi python and MCP3008 ADC to read flame (RGB) sensor data for FFT analysis

I have an IR pyroelectic flame sensor which detects flames within the 8-10hz of flame flicker. I am new to the ADC world so any help is very appreciated. Documentation: https://pyreos.com/wp-content/...
GeorgetheCat's user avatar
0 votes
1 answer
280 views

Connecting Differential pressure sensor MPXV7002DP to Raspberry Pi 4

MPXV7002DP is analog sensor which measures differential pressure and requires 5V supply voltage and gives an output voltage of 4.5V. However, I want to get the digital output so I will connect the ...
ui2020's user avatar
  • 11
0 votes
0 answers
49 views

do i need another HAT for using K210_7 Mic_v1.1 6+1 microphone array for RPI?

sorry for the novice question. but i could'nt find any specific information on my issue. so... I got a cheap K210_7 Mic_v1.1 - 6+1 microphone circular array. and then i noticed that the respeaker ...
Asaf Chertkoff's user avatar
-1 votes
1 answer
829 views

Remote I/O error 121 with using ADS1115 for long time.sleep()

Hello together, I'm currently trying to read values from a pH-probe via an ADS1115 and the Adafruit_Circuitpython_ADS1x15 library connected to my Raspberry Pi 4. Using the instructions on https://...
RasPi Noob's user avatar
1 vote
1 answer
811 views

Raspberry pi4 + ADC

I have been working with Raspberry pi 4 to acquire analog signals. I get AD/DA High Precision Board by Waveshare (ADS1256 A/D) to convert analog input and I downloaded python source code from ...
Tagalog's user avatar
  • 51
1 vote
1 answer
194 views

How can I get different values when reading the config register of an ADS1115 than I had written just before?

I'm trying to read data from an ADS1115 ADC attached to the I²C link of my Raspi 3B using pigpiod, but get nothing. In order to pin down the error, I took a deep look at the config I write beforehand ...
Neppomuk's user avatar
  • 454
3 votes
1 answer
2k views

Real time + High frequency ADC data reading with Raspberry Pi 4

I need to acquire a signal at a minimum sample rate of 10 kHz and processing it real-time using a Python code. Since Raspberry Pi only reads digital signals I get an ADC (High Precision AD/DA Board ...
Tagalog's user avatar
  • 51
0 votes
0 answers
219 views

OSError: [Errno 5] Remote I/O error

I was setting up a joystick using this tutorial. When I ran import RPi.GPIO as GPIO import smbus import time address = 0x48 bus = smbus.SMBus(1) cmd = 0x40 Z_Pin = 12 def analogRead(chn): value =...
Pizzarules668's user avatar
2 votes
2 answers
245 views

Full duplex SPI communication with an ADC using the pigpio library

I am trying to read the data from an Analog to Digital Converter (ADC), the ADS1248 from texas instrument using the pigpio library in python with the SPI protocol. When reading the data from the ADC ...
rokual's user avatar
  • 23
4 votes
5 answers
4k views

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 ...
mr_tuna's user avatar
  • 141
0 votes
0 answers
111 views

50 ksps ADC for Raspberry Pi 4

I need to capture 4 Analog signals at a sample rate close to 50ksps. From some posts I have read that this would be unfeasible through SPI or I2C. Is there any recommended ADC chip or breakout board ...
Juan David Galvis Sarria's user avatar
1 vote
1 answer
2k views

DIY Rpi Triple Axis RF / EMF Detector using AD8362 / AD8361

I have a 3 axis rf meter. This one. I wanted to see if I could make it with a rasp pi instead. I found this article using the AD8361 but it doesn't go up to 3.5ghz and its not 3 axis. Ideally I would ...
Denis's user avatar
  • 113
2 votes
1 answer
529 views

What is the correct hardware required to connect multiple analog sensors to a Raspberry Pi 4?

I've been an avid Bonsai enthusiast for some time, and have always wanted to automate some of the day to day tasks (and get some data logging in the process). I'd like to be able to detect: soil ...
Saeven's user avatar
  • 141
2 votes
1 answer
910 views

Pi Zero W and Light Sensor with LDR

I have a Raspberry PI Zero W and Light Sensor like on the photo: I connected it to Raspberry Pi as follow: GND to GND VCC to 5V SIG to GPIO-3 Using the following code below I am able to detect if ...
novak100's user avatar
  • 131
2 votes
0 answers
423 views

How Can I read data from AD8361 RF Detector

I want to check if my microwave has a leakage. I figured out that I can use AD8361 module as an rf power meter. The question is how can I connect raspberry pi to ad8361 and how can I read the output ...
Davithbul's user avatar
2 votes
1 answer
1k views

Continuous data acquisition from ADC at around 10 MSPS

I would like to continuously stream data from an ADC with 12 to 16 bit to a Raspberry 4 at around 10 MSPS. Since the Raspberry is not realtime, I'm assuming I need some sort of FIFO buffer as ...
Abufari's user avatar
  • 23
4 votes
2 answers
4k views

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 ...
amir na's user avatar
  • 141
1 vote
0 answers
2k views

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 ...
Tlacaelel Ramon Luis's user avatar
0 votes
0 answers
399 views

Two load cells on a ADS1115 gives the same measurements

I have a raspberry Pi 3B+ board connected to an ADS1115 analog-to-digital converter. 2 load cells are attched to the same ADS1115(pins 0-1 and 2-3). I can individually calibrate/read weights from both ...
Ozcan KOC's user avatar
2 votes
0 answers
1k views

Interpreting voltage output on ADC with rated AC current sensor

I know I have asked similar questions before, but I have switched sensors and encountered interesting results that I do not understand. Purpose: I intend to use an AC current sensor to measure ...
Tuomas Talvitie's user avatar
1 vote
0 answers
388 views

How can Rpi python control MCP3008 ADC?

I've been messing with raspberry pi, and I am learning about interfacing it with analog devices. I am using the MCP3008 for that and following this tutorial here. I wired it up like the pictures below:...
Aubrey Champagne's user avatar
2 votes
1 answer
2k views

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's user avatar
1 vote
1 answer
725 views

How to connect a geophone to RaspberryPi?

I'm a seismic geophysicist and would like to attach a geophone - which is basically a transducer - to any type of RP. The types and costs of geophones are both variable and extensive (in some cases). ...
nate's user avatar
  • 111
1 vote
1 answer
456 views

PCF8591 with Analog Joystick I/O error when reading input PYTHON

I have been trying to create a retropie unit, and I'm in the midst of writing a script to inject uinput events for the analog axis values. This is the code I've written so far, but the issue is that I ...
Ian Rosenberg's user avatar
1 vote
1 answer
615 views

AC Current sensing giving low readings (SCT013)

So now that I feel comfortable with using ADCs, I am attempting to measure the AC current with the SCT013 clamp with AC current sensor. Setup: I clamp the SCT013 around the HOT wire of a table lamp ...
Tuomas Talvitie's user avatar
1 vote
1 answer
430 views

Interpreting 10-bit ADC output

I am having difficulty understanding the output from my ADC. I am using a 10-bit MCP3008 with a photoresistor and CT current sensor connected into the analog inputs. I am reading the signals with this ...
Tuomas Talvitie's user avatar
1 vote
1 answer
2k views

Piezo sensor to pick up acoustic instrument signal using Rpi and ADC

I want to read analog inputs from piezo sensors like these on Raspberry using python, which ADC do you advise me with 8 or more channels and how to wire and program it to get digital values?
Miky's user avatar
  • 173
0 votes
2 answers
932 views

MCP3008 with photoresistor, analog to digital, noisy readings

I am trying to read values from a photoresistor. I would like to be able to read the 'level' of light, not just a binary signal. So I bought an MCP 3008 analog to digital converter, but I am running ...
Tuomas Talvitie's user avatar
2 votes
0 answers
733 views

Waveshare ADDA (ADS1256) full scale input issues

My question is about a problem of full scale output with the Waveshare ADDA ADS1256 card. I use the Waveshare High-Precision AD/DA Board based on ADS1256 on a Raspberry Pi 3b and the Python3 examples....
stan3000's user avatar
0 votes
0 answers
117 views

How can we acquire an analog signal having both positive and negative parts , i.e. a bipolar signal, using Raspberry pi3 B+ module?

I am using raspberry pi 3 B+ board. I have to acquire analog voltage signal having both positive and negative parts, i.e. a bipolar signal How can i acquire this signal with the R-pi? I have tried ...
Anwesha Khasnobish's user avatar
0 votes
2 answers
1k views

Reading analog value Raspberry Pi

I am a newbie with the Raspberry Pi. I want to measure Temperature Reading in 12/16 bit resolution. can someone guide me how CKT should be designed and How can read value using software. usually ...
Ajit N's user avatar
  • 37
0 votes
0 answers
914 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(...
Shaleen Jain's user avatar
1 vote
1 answer
770 views

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's user avatar
-1 votes
2 answers
3k 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 ...
Ajit N's user avatar
  • 37
1 vote
1 answer
5k 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....
Sachz's user avatar
  • 145
1 vote
0 answers
199 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 ...
Basit Anwar's user avatar
4 votes
2 answers
1k 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 ...
CDog's user avatar
  • 41