Questions tagged [analog-to-digital]

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

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

Real time treshold crossing on slow signal

I need to acquire an analog signal at a slow sample rate (~100 Hz) with ADC connected to Raspberry pi4 with SPI protocol. I've written a Python routine which should detect a real time treshold ...
0
votes
1answer
31 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
0answers
27 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 =...
0
votes
0answers
26 views

Gravity TDS to Raspberry with ADC

I have Raspberry pi, and need to calculate ppm of a liquid. I'm using this as my tds: Here is the Schema, Dimension, and Datasheet1, and Datasheet2, with Sample code But it somehow needs an ADC, so I ...
2
votes
2answers
37 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 ...
0
votes
0answers
56 views

Possible ways of 16khz sound input in raspberry pi 4

I am using the Teensy 3.2 development board for converting audio signals from analog to digital. Also, you can be called a custom USB sound card. Here I attached the Audio programming diagram. I am ...
4
votes
4answers
334 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
0answers
34 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
1answer
213 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
1answer
90 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 ...
1
vote
1answer
154 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
0answers
90 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
1answer
326 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
1answer
1k 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
0answers
528 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
0answers
125 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
0answers
284 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
0answers
189 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:...
0
votes
1answer
426 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
1answer
217 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
1answer
186 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
1answer
170 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
1answer
190 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 ...
0
votes
1answer
616 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
2answers
434 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
0answers
289 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
0answers
50 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
1answer
484 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
0answers
428 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
1answer
263 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.
0
votes
2answers
964 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
1answer
2k 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
0answers
103 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
2answers
852 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 ...
2
votes
2answers
575 views

How can Rpi read ADS1256's negative values?

I'm using this Raspberry Pi High-Precision AD/DA Expansion Board from waveshare. I have some questions regarding its ADC (model name: ADS1256) unable to give out negative value. Specifically, only ...
0
votes
1answer
215 views

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 ...
1
vote
2answers
2k views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
2
votes
1answer
5k views

Raspberry Pi Current & Voltage Sensors (10A rating and ~40V respectively)

I've been searching through multiple forums, and gone to different links online trying to find a "cheap" solution to my question. I am currently trying to monitor the current and voltage of an ...
0
votes
1answer
186 views

Use ADC with add_event_detect to detect voltage rising

I need to find a solution for my project. Basically I just need to define if there is a voltage or not by using GPIO event detection. For my basic scheme I used 3.3v pin and one of the GPIO pin for ...
0
votes
0answers
29 views

Analog input together with LoRaWAN

I am looking for a hardware configuration enabling me to read an analog input from ammeter and collect the historical data and send them over LoRa to a server. So I could use something like Monarco ...
1
vote
2answers
115 views

Get different values from potentiometer even not touching

I have a potentiometer that is used to adjust volume level along with MCP3008 but even if I don't touch it, its values are going and coming as following. Press Ctrl-C to quit... Channel 0 minus 1: ...
1
vote
2answers
449 views

MCP3008 analogue digital converter… how can I use it for the complete opposite of what it was made for?

I have set up an mcp3008 chip and a slide pot on my pi because I wanted a nice old fashioned volume control, and all of that seems to working fine and I am quite happy with it. Now I have 7 ...
3
votes
2answers
244 views

How the fluctuation in MPC3008 ADC unused channels is explained?

I am using mpc3008 in order to convert the analogue signal of two sensors, for a rpi3. The sensors are, the SEN0189 turbidity sensor and the SEN0244 TDS sensor. The code I am using is the ...
0
votes
1answer
549 views

Raspberry Pi AD/DA converter

I am currently working on sensors and I'd like to read the sensor data into my Raspberry Pi. However, I have some difficulties with the Waveshare High-Precision-Board which I'm using. I just don't ...
0
votes
1answer
313 views

Raspberry Pi GPIO & Analog Sensors

I am fairly new to Raspberry and Coding/electro-engineering in general but wanna get it done anyways. I've some questions regarding reading data from analog sensors. Background: I got an AD/DA-high-...
1
vote
2answers
448 views

pi4j implementation for SPI communications with MCP3008 reading zeros

I have hardwired a MCP3008 IC into the SPI input on a Raspberry Pi3. MCP3008 is wired as follows: pin 10 (CS) to Pi GPIO_10 (pin 24) this is CE0 pin 11 (Din) to Pi GPIO_12 (pin 19) this is MOSI ...
1
vote
1answer
2k views

Correct wiring for multiple analogue sensors?

I’ve recently embarked upon a project that I’ve wanted to do for a while. My overall plan is to have 3 planting shelves; each will have its own soil moisture sensor, water pipe and LED lighting. The ...
-1
votes
1answer
283 views

Force Sensing Resistor with Raspberry Pi

I have a school project where I have to make a car park with a fully functional parking lot checking system. The FSRs job is to detect any weight and send a signal to the raspberry pi that the ...
1
vote
1answer
913 views

Reading values using MCP3002

I'm trying to use MCP3002 for the first time, and can't seem to get the basics to work I've been following this guide and am pretty certain that all my connections are right (updated photo below). ...
1
vote
2answers
1k views

problem with adc mcp3008 & ads1115

My raspberry 3Bs seem to have problems with their I2C and SPI bus. a. I tried MCP3008 using SPI connected with light sensor and temp sensor, the output on channel 0 &1 is only outputting zeros ...