Questions tagged [adc]

Analog Digital converter

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

Need info DOU More Moisture semsor

ESP32 DHT11 WIFI Bluetooth Soil Temperature Humidity Sensor18650 I was able to find the pin for the DHT(GPIO22) Capacity Moisture(GPIO32) LED Output(GPIO16) but trying to figure if one of the GPOI is ...
2 votes
1 answer
36 views

Hysteresis and scaling range

Here I asked about how to add an hysteresis on ADC readings. The answer received was very good and it worked out of the box. Still I'm having troubles trying to generalize the resample function in ...
1 vote
1 answer
62 views

Avoid 1-LSB noise on ADC readings

I have a potentiometer connected to an ADC input of an Arduino Leonardo. The ADC resolution is 10-bit (0..1024), while I need just 7-bit (0..127). I use a simple filter to reduce the noise and then a ...
-3 votes
1 answer
119 views

Using 1.1Vf to read stable battery voltage and sensor voltage [closed]

After several tries, i was successful with reading stable battery voltage using internal voltage reference of 1.1v, now the issue i face is that i cannot read stable sensor voltage, could you please ...
-1 votes
1 answer
50 views

If I reduce ADC sample rate, do I get an average over the time period?

I am working with a ESP32-C3 devkit. I am using the internal ADC on that chip to read from an analog microphone. I initialize the ADC like this: adc_continuous_config_t dig_cfg = { .sample_freq_hz ...
1 vote
1 answer
90 views

AD7768-1 library " Arduino "

I am working on a project and I need an AD7768-1 library to make this analog-digital-converter talk to my Arduino using SPI. " The AD7768-1" doesn't exist in Arduino's library. Thanks in ...
2 votes
0 answers
60 views

ESP32DevkitC-V4 interfacing ADS8698 (18 bit ADC)

I am currently working on an SPI interface to measure the voltage of an amplified sensor bridge signal. I am using an ESP32 module to control the device. Since I am logging the data to an SD card, I ...
1 vote
1 answer
277 views

Arduino , python , pyfirmata , standard firmata

Is there a way to change arduino analog reference to EXTERNAL IN PYTHON using pyfirmata or any other library ? Necessary Links : https://www.arduino.cc/reference/en/language/functions/analog-io/...
0 votes
0 answers
60 views

Capacitance from AD7746 always "saturated"

I'm trying to use AD7746 with an arduino board to continuously measure capacitance (I'm currently using a 2pF capacitor for testing). Datasheet here. I managed to correctly write and read the ...
-1 votes
1 answer
132 views

Voltage meter ADC + serial: Bytes lost during communication

I want to make a simple digital voltage monitor. So I have a sketch: void setup() { Serial.begin(115200); } void loop() { int val = analogRead(A4); // read the input pin val = 1; byte ...
0 votes
1 answer
135 views

NodeMCU dev board shows 13 for ADC when grounded - why?

I have a NodeMCU 1.0 ESP-12E development board. Trying to hook up a LM35 to measure temperature. For that I need to use the analog pin A0. However it seems my sensor is out by about 4C. I traced ...
1 vote
1 answer
76 views

Arduino pro mini sampling rate

what are the possible sampling rate the user can set in Arduino pro mini using ADCSRA registers. I want to set my desired sampling rate through registers, is it possible?
0 votes
1 answer
79 views

TI ADS7250 Read From SPI and SPI1 Simultaneously

I'm so confused by the ADS2750 datasheet here, I can't seem to figure the proper bit shift to read data from bits 15-27 properly. I'm not even sure what some of the acronyms mean on page 23 table 1. I ...
1 vote
0 answers
350 views

ESP32 WROOM32E w/ Arduino IDE 2axis joystick - how do I get a good reading?

How do I get the full range of motion from an analog joystick and the ESP32 WROOM32E using the arduino IDE with esp-idf installed? Using a 2 axis analog joystick, the 5v/3.3v pin, ground pin and the ...
2 votes
1 answer
129 views

Mildly accurate oscilloscope using Arduino Uno R3

I'm trying to make a mildly accurate oscilloscope using Arduino Uno R3 and I've done some research on the best method to do so. First of all I need to measure the voltage with a rather high sampling ...
1 vote
0 answers
217 views

ADC stops working at small delays (MCP3464)

I have tried debugging for a couple days with no luck, so this question is a cry for help. I am trying to configure an external ADC (MCP3464 datasheet). The ADC uses SPI communication and I am getting ...
0 votes
1 answer
86 views

ESP32 Potentiometer issue: Resolution mismatch of the potentiometer with unlimited resolution and reading the values with Wire.h

I have the problem, that the potentiometer goes from the range of 0 Volts to 3,3 volts. But within this range the measured value goes from about 0 to 65535 multiple times (over 10 cycles). When I ...
2 votes
1 answer
777 views

Storing data in Arduino Portenta H7's SDRAM

I am working on storing data from Portenta H7's ADC through a high sample rate (>100kSa/sec) per channel. I am using 2 ADC channel for my work. Through the forum, I learned that the serial. print ...
-1 votes
1 answer
115 views

What is the minimum sampling rate in ADC in Arduino due?

I am looking for a very low frequency application like below 300Hz. What is the minimum sampling rate in Arduino due? I am very new to this. I see in the datasheet that max sampling rate is 20MHz.
1 vote
0 answers
76 views

how to set the arduino due adc automatic trigger

How do I trigger automatic conversion on the ADC on the DUE? If this was the uno, I could just do sbi(ADCSRA,ADATE); sbi(ADCSRA,ADSC); but for the due, I seem to have to use adc_configure_trigger(ADC,...
2 votes
0 answers
979 views

ESP32 ADC <-> WIFI Issue

I'm Using ESP32 ADC1 (not ADC2 that conflicts with Wi-Fi functionality) to capture some analog data received @IO36 (an ADC1 port). As soon as I uncomment WiFi.mode(WIFI_AP_STA) line (even when WiFi....
1 vote
1 answer
124 views

Storing data from Arduino without Serial print- High Sample rate

For my work, I need to acquire data at a high sample rate (>100kSa/sec) using Arduino Portenta H7, which has 3 X 16-bit ADCs. Portenta H7 has STM32H747XI microcontroller. I don't want to use Serial....
0 votes
2 answers
983 views

Portenta pinouts for ADC

I wanted to have your comments about one of my questions. I am currently working on the sketch for the Arduino Portenta H7. However, due to my poor electrical background, I would like to ask your ...
3 votes
1 answer
181 views

micros() resolution for Portenta H7

Is there any way to know the resolution of micros() for the Arduino Portenta H7. I have checked for other boards e.g. Nano which is mentioned as 4 uS. However, I couldn't find one for Portenta H7. Is ...
0 votes
1 answer
458 views

Arduino fast ADC sampling--which burst control is best?

If one wants to do quick bursts of free-running ADC conversions, should one pause and restart using: The ADC enable bit: bitClear(ADCSRA,ADEN) & bitSet(ADCSRA,ADEN), The interrupt enable bit ...
0 votes
1 answer
121 views

How many ADS1115 ADCs can I connect to a single Arduino Mega 2560

I know we can connect 4 ADS1115s to an Arduino Mega 2560. Is there any limit on the number of ADS1115s we can connect to the Mega giving each a different address? I have to connect at least 36 ...
1 vote
1 answer
272 views

How to send data from one Arduino to another isolated?

I have no experience about serial communications, with that being said; I have two circuits isolated from each other and each have a ATMEGA8 reading a voltage on their ADC. I want one of them to send ...
1 vote
0 answers
922 views

Fastest external High Speed ADC?

I am in a situation close to: Hi-speed external ADC But with 100,000 ~ 500,000 samples per second, I don't need more. I only want to detect changes in 2 sensors, so each loop is only an "...
1 vote
2 answers
398 views

how to config the Arduino ADC'S input on A0 instead of use default?

I am try to build this AC-DC meter, the code original used default A3 as input, how can change the input on A0? the link: https://simple-circuit.com/arduino-autoranging-ac-dc-voltmeter-with-trms/ ...
0 votes
2 answers
5k views

Hi-speed external ADC

I would like to detect signals in nanosecond scale. For that, an ADC with at least 500 MSPS is required. My question is if its possible to use an external ADC with 500 MSPS with a 16MHz Arduino Mega? ...
1 vote
1 answer
1k views

DC Motor Acceleration with PWM

I'm not sure why this has been so difficult for me, but I'm trying to control the acceleration of a 10v DC motor with an Arduino UNO and an L298n H-Bridge. Using a 12v regulated power supply to power ...
1 vote
1 answer
298 views

AD7476 adc and SPI

I'm trying to understand if I can use the AD7476 with Arduino and SPI: datasheet My rough idea is that I should put CS low, then read two bytes using SPI.transfer() twice, and then bring CS high ...
1 vote
1 answer
146 views

Why do I get different results when compiling the same code with different ide?

I have a basic code about reading true rms.I compiled the same code with arduino ide and atmel studio, then ran it in a proteus simulation.I'm trying to measure how long the read_rms() function takes. ...
1 vote
1 answer
60 views

Arduino ADC converter calculation

I am trying to choose a wire encoder for my project. So far, I found this wire encoder (see link). Assuming the measurement range of my cylinder is 1 m. Then, with a 10 bit ADC converter of my Arduino ...
1 vote
1 answer
107 views

Interfacing SPI (MCP3903)

I'm trying to interface MCP3903. I haven't really don't any SPI interfacing before and I can't seem to find clear enough answer for newbs. Please bare with me. I'm trying to use this library. http://...
0 votes
0 answers
993 views

Stm32 Blue Pill Internal ADC Voltage Reference Configuration

I am programming an STM32F103C8T6 Board in Arduino IDE. I want to change the value of the internal Voltage Reference for the ADC. How can I achieve this in Arduino ide?
2 votes
1 answer
1k views

Any way to use DMA to transfer data to SD Card in ESP8266

I'm using ESP8266 at speed of 160 MHz to record ADC results into SD card, I need to do this at rate of 8 KHz. Means that i should save it on the SD Card or i'll run out of memory before 4 Sec passes. ...
0 votes
1 answer
165 views

I have a problem trying to limit motor speed to a certain RPM using a MOSFET trigger switch module

I am using the potentiometer to control the duty cycle of a PWM signal to the MOSFET trigger switch module, thus controlling the motor speed. In my code, I have used the map function to utilize the ...
1 vote
3 answers
14k views

Expanding analog inputs to the Arduino

I need the Arduino to read about 100 analog inputs. Is this even doable? If not what is the maximum analog inputs I can read into the Arduino (The maximum non trivially would be to use the analog pins ...
1 vote
0 answers
205 views

Arduino Master SPI MISO Receive Data

I'm trying to interface an Arduino Mega with an AD7714 ADC. This ADC requires a command to be sent to the communications register (in my case 0x5C) in order to begin a read from the data register. My ...
1 vote
1 answer
2k views

Interfacing ADS8319 with Arduino UNO

I am using Arduino UNO and trying to interface 2 16-bit ADS8319 ADCs with it via the SPI interface. I have interfaced the 2 ADCs with the micro-controller using the "4 Wire CS Mode Without Busy ...
2 votes
1 answer
2k views

HX711 - Inconsistent Readings

simulate this circuit – Schematic created using CircuitLab Wiring is based on the scheme presented below - (Reference: https://electronics.stackexchange.com/a/174580) I am using Arduino Mega ...
0 votes
1 answer
264 views

Library ADC MCP33121

I'm looking for the Library of the ADC MCP33121 for Arduino UNO or functional code, I don't have enough tools for testing so I'd like to get some code already tested. I appreciate any help. Thanks... ...
1 vote
0 answers
85 views

How to implementing timer interrupt with a sensor device using A0 and A1 pins

I was wondering if there is a way to program a timer interrupt to collect sensor data at a specific sampling rate? I want to attach two strain gauge sensors to A0 and A1 pins and collect the data at a ...
1 vote
0 answers
445 views

Max. external ADC speed with ESP32 (SPI or I2C)?

What is the maximum speed for external ADC I can expect to get with ESP32? I'm planning to have 16-bit ADC connected to I2C or SPI whichever gives more speed. How that information is calculated from ...
2 votes
1 answer
890 views

Inaccurate and non-precise voltage reading from Arduino Analog pin

float get_volt() { rawVolt = analogRead(voltageSensor); vOUT = (rawVolt * 4.6) / 1024.0; vIN = vOUT / (R2/(R1+R2)); //if(vIN>12.0){vIN=12;} //if(vIN<11.12){vIN=11.12;} //return (vIN -...
1 vote
0 answers
69 views

Receiving half the value of Reference Voltage in AD7705?

I have a doubt in the AD7705 library AD7705 Library Link when I am declaring a reference voltage of 5 V and giving a reference voltage of 5 V to IN1+. On the serial monitor, I can see ADC conversion ...
2 votes
1 answer
618 views

Measure Vcc on ATtiny13a?

I am trying to figure out if I can measure the Vcc of attiny13a, but the code I use for arduino's and attiny85 does not work. This is where I got the code from. I know that it works by using the 1.1v ...
2 votes
1 answer
2k views

How to find out if HX711(amplifier and 24-bit ADC) is damaged or not?

I'm using this ADC with a load cell for weight measurement, I had 4 strain gauges and mounted them on a cantilever structure that I made out of acrylic sheet, used calibration program from here: https:...
2 votes
2 answers
775 views

Arduino binary LED 10 bit display

I'm working on a simple ADC project, the goal is to adjust the on/off of the LEDs according to the binary reading (1-on,0-off). I've tried this with 8 bit, and it works as intended. But on 10 bit, two ...