Questions tagged [analog-to-digital]
For questions pertaining to signal conversion, either through hardware or software.
151
questions
-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, ...
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 ...
-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 ...
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. ...
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,...
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 ...
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 ...
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 ...
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-...
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 ...
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 ...
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-...
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, ...
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/...
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 ...
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 ...
-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://...
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 ...
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 ...
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 ...
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 =...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:...
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?
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). ...
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 ...
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 ...
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 ...
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?
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 ...
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....
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 ...
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 ...
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(...
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.
-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 ...
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....
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 ...
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 ...