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
44 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
67 views

How to read ADC with low restance range

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
2answers
58 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
175 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
36 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
308 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
1answer
174 views

Waveshare ADC Board negative value issue

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
0answers
57 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
357 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 ...
0
votes
1answer
812 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
69 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
26 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 ...
0
votes
2answers
55 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
406 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
154 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
351 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
201 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
247 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
767 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 ...
0
votes
0answers
2k views

Reading data from MCP3551 via SPI

I am trying to read data via SPI from an ozone sensor that I have connected to the Raspberry Pi's GPIO. This set up uses a Mikro Pi click shield and Mikro Ozone 2 click sensor. The output of the ...
-1
votes
1answer
210 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
554 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). ...
0
votes
2answers
684 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 ...
0
votes
0answers
377 views

ADC for the raspberry pi zero w

Does anyone know of an ADC that I can use for a joystick to connect to the raspberry pi zero w? I have the adafruit pitft plus 2.8 resistive touch screen installed and it uses all the SPI pins I think....
0
votes
0answers
76 views

ADC Hat with 8 differential channels and 24 bit resolution for 100 - 200 SPS (Hz)

I'm sorry if there's a similar post, I could not find it (them). As the title implies, I'm looking for an ADC hat for the Rapspberry Pi 3 Model B with 8 differential channels to sample up to 200 SPS (...
0
votes
1answer
307 views

Interface AD7193 with Raspberry Pi

I have been trying to interface an ADC with raspberry Pi namely AD7193 via SPI . For that I have enabled my SPI and installed spidev on my pi. but i dont know what to do next in order to get the ...
0
votes
2answers
2k views

How to achieve a high sampling speed using an ADC with Raspberry Pi?

So, I am using the LTC 2366, 3 MSPS ADC and using the code given below, was able to achieve a sampling rate of about 380 KSPS. #include <stdio.h> #include <time.h> #include <bcm2835.h&...
0
votes
0answers
435 views

soil moisture sensor analog output is 0

I'm a newbie to pi and using it for my final year project to display moisture value of soil using the soil moisture sensor. I have followed this tutorial website for the connection and code and ...
0
votes
0answers
221 views

How to connect sensor to Raspi via poor man’s a/d converter?

TL/DR: I’m using this and there are things I don’t understand about this circuit. Ultimately I’d like to read data from this sensor, but all I get is gibberish. Please, help. I have set up “poor man’...
0
votes
1answer
421 views

combining sound card and ADC (I2C)

Am thinking of using an Audio Injector sound card, which apparently has a two-channel high-precision ADC. In addition I will be needing to read two different variable resistances. One of these has two ...
0
votes
1answer
232 views

Trouble with Flex Sensor and MCP3008

I'm working on a project currently, though things aren't quite working so I would like whoever's advice. So, to put it briefly, I'm using a Sparkfun Flex Sensor and an MCP3008 hooked up via a ...
2
votes
1answer
1k views

Measure ac power with invasive ct sensor 30A

I am measuring power(watt) with a non invasive sensor SF-SEN-11005 30A. After calibrating on 150 watt it works fine. When I disconnect the sensor I expect a zero value, which is not the case. The ...
0
votes
1answer
132 views

How to connect PCF8951 with Raspberry Pi

I want to connect PCF8951 with Raspberry Pi I'm following: 1: https://www.sunfounder.com/learn/sensor-kit-v2-0-for-raspberry-pi-b-plus/lesson-13-pcf8591-sensor-kit-v2-0-for-b-plus.html But when ...
0
votes
1answer
75 views

MC3008 vs. Justboom amp

I just ordered the Justboom AMP Zero pHAT. My project needs reading analog signals, too. So I also ordered a MCP3008 in order to convert from analog to digital. My question: is it possible to connect ...
2
votes
1answer
82 views

Odd results when measuring timing

Some introduction to my case: I have an ADC (MCP3008) connected to my RasPi with SPI. To that ADC I have connected 2 multiplexers (4051 dip-chips, I plan on connecting 8 multiplexers eventually). So ...
0
votes
1answer
760 views

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 ...
2
votes
1answer
123 views

Using a 28-Channel PIC microcontroller with the RP3

TL;DR: I have virtually no knowledge of electrical engineering and I want to know if I can connect this ADC to a Raspberry Pi 3 and be able to read 15+ piezoelectric sensors at a very low latency (≤ ...
1
vote
1answer
283 views

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 <stdio.h> #include <time.h> #include <bcm2835.h> int main(int argc, char **argv) { float seconds; ...
1
vote
2answers
253 views

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 ...
0
votes
1answer
670 views

Measuring 0-5 V DC with a good accuracy (~10 mV) using a Raspberry Pi

I'm totally new to Raspberry Pi and I want to use it for an important school project. My aim is to build a laser-seismograph using a laser pointer and 4 photodiodes which basically measure the laser'...
3
votes
2answers
2k views

Why can't I return value from python script to PHP script when trying to use GPIO

I have spent two days on this and have tried nearly everything I could find. I am using an apache server (2.4.10). I have two files in a folder called testPythonPHP that is located in the root ...
1
vote
2answers
307 views

Does the Sense HAT have an ADC?

I want to use analog signals with a Pi via the Sense HAT. Does the sense hat have an analog to digital converter (ADC)?
1
vote
1answer
437 views

Plotting information from analog-to-digital conversion

I am reading an analog signal in volts (0 - 1 V) using an adafruit ADA1115 chip. I want to save the data with at least 100 sps and plot it real time at the same time (plotting can be done at 1-10 Hz). ...
0
votes
2answers
467 views

Pi for control 20 analog outputs

We need 20 analog outputs with adjustable voltage (0-20 volts), frequency (0-150 Hz), as well as adjustable maximum current, and also the ability to measure current, frequency and voltage. How can ...
0
votes
1answer
2k views

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 ...
2
votes
1answer
148 views

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? ...
-1
votes
1answer
3k views

Reading all channels MCP3008

I have a problem with reading data from adc convertor MCP3008 10bit. I found a python script from adafruit that give data value from all channels (CHO TO CH7). I added a picture with my results and ...
0
votes
1answer
381 views

Logic Behind MQx Sensors Calibration

Would you please explain the logic behind this snippet of code which is taken from here for calibrating MQx Sensor(s): def MQResistanceCalculation(self, raw_adc): return float(self.RL_VALUE*(...
0
votes
0answers
2k views

Analog Microphone with Raspberry PI

I have an analog microphone like this one : Is there a way to record audio from GPIOs and convert it to readable format, such as .mp3 or .wav ? I searched on Google, but I didn't find what i want .....
1
vote
3answers
1k views

A/D Converter Solution

We are working on developing an industrial refrigeration system. The RPi seemed like a good choice based on its ability to run Python and the number of I/Os. We need a fairly large number of sensors ...