Questions tagged [analog-to-digital]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

RPi/MCP3462 Configuration and Reading ADC

I'm pretty new to SPI and trying to read Channel 0 off the MCP3462 ADC (16 bit) with Raspberry Pi 4. I cannot find any documentation on using Rpi/Python but I've done my best to write a converted ...
MHart's user avatar
  • 1
0 votes
0 answers
17 views

Implementing Precise Timing between values with Raspberry Pi and 16-bit DAC using py-spidev

I want to send values from an RPi to a DAC in order to generate an analog signal. The DAC is 16 bits, and I'm using the py-spidev library. Let's say I have a pre-prepared list of 1000 16-bit values ...
Thomas1234's user avatar
0 votes
0 answers
16 views

no Analog reading (Using C)

so I'm currently working on getting readings from an analog sensor using the Raspberry Pi but I am facing an issue where i am not getting any analog reading (0 for readings), I am using the ADC chip ...
aladin omar's user avatar
0 votes
0 answers
18 views

Building a high-current battery test system with Raspberry - Need component and implementation advice

I'm designing a battery test system to charge and discharge a 26.7V battery pack with a maximum discharge current of 60A. We have a load bank and a charger. The system should: Charge the battery to ...
Adam Ben's user avatar
1 vote
1 answer
57 views

Connecting an analog level sensor

First time poster here. I'm okay with the programming side but have some issue with the electronics side I have raspberry pi 4 and wish to connect a submersible water level sensor to it. The sensor ...
ancalleja's user avatar
-1 votes
2 answers
195 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
658 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
0 votes
1 answer
116 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
  • 151
1 vote
1 answer
100 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
479 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
  • 135
0 votes
0 answers
140 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
68 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
52 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
361 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
326 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
201 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
822 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
341 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
328 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
54 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
893 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
855 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
233 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
  • 452
3 votes
1 answer
3k 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
238 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
277 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
5k 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
125 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
573 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
1k 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
479 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
2k 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
426 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
401 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
742 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
474 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
673 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
457 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
1k 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
762 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
123 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
999 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