Questions tagged [adc]

Analog Digital converter

Filter by
Sorted by
Tagged with
0
votes
1answer
18 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
0answers
31 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 ...
0
votes
0answers
58 views

bit banging SPI ADC on DUE

Is it possible to bit-bang multiple SPI ADC, 12 bit sampled at 100khz? This would translate to a GPIO speed of about 1.2 Mhz.
1
vote
1answer
38 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. ...
0
votes
0answers
35 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
0answers
49 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
1answer
92 views

What could cause AdC Reading only to get stucked?

I am doing a Solar water heating contrôler with arduino. I have had a freeze of the AdC value read (ntc probe that read Solar panels) that remained at -1.75degc. this was confirmed by the serial data ...
1
vote
0answers
28 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
1answer
191 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 -...
2
votes
1answer
162 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
2answers
148 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 ...
1
vote
0answers
34 views

Dual Channel Reading with 16 bit AD7705(SPI)

I want to read 2 separate voltage readings by AD7705 ADC and send the data to Arduino(Master). What is the correct program flow should I implement to get dual-channel operation working. How data will ...
1
vote
1answer
49 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
3answers
173 views

How to use ADC interrupt on STM32 blue pill

I'm currently using the STM32F1xx boards from http://dan.drown.org/stm32duino/package_STM32duino_index.json To program my blue pill but I can’t find how to write the interrupt for the ADC. I’ve set ...
1
vote
1answer
51 views

8266 analogRead(A0) always 1024

dear member. I have 4 ESP-12 averything OK but one chip behave weird. always return 1024 on analogRead(A0); once use ADC_MODE(ADC_VCC) and reflash using ADC_MODE(ADC_TOUT); and never back to normal, ...
1
vote
0answers
78 views

ESP32 SPI communication with MCP3903 not working

I am trying to read out the Microchip MCP3903 six channel ADC using an ESP32 via SPI communication. The MCP3903 is powered with 5V and 3,3V and is connected with an external 3,57 MHz crystal. The ...
0
votes
0answers
304 views

Reading TCD1304 linear CCD Sensor

I want to read the TCD1304 linear CCD sensor with an ESP32 and I'm facing some problems. As a first "warm-up" and to get familiar with this sensor I tried to generate the sensors input ...
2
votes
2answers
74 views

printing the analogRead() functions result crashes Arduino

I have created a curcuit which reads the analog pin 3 auf the arduino nano and does other things dependant on the returned value. However I have problems regarding the analogRead() function. Whenever ...
1
vote
1answer
43 views

Please , explain about MAX30100 using for Arduino to read ADC in format (0-1023) [closed]

can anyone help me..? I am using MAX30100 with arduino, and my expectation is i can to process the ADC as usual (0-1023), but I do not understand the signal processing. Has anyone used the MAX30100 ...
0
votes
0answers
29 views

Is there an external adc for arduino that can read more than 5v [duplicate]

Is there an external adc for arduino that can read more than 5v? I want to make a circuit that will sense 10v and then switch a relay.
0
votes
1answer
30 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 ...
3
votes
1answer
68 views

What is the maximum “wattage” can be pushed into an ATMega328 ADC pins?

I was doing some Ohm's Law calculations to calculate the voltage output from a 2-resistor voltage divider, the input will be with a maximum of 12 volts, I want the ATMega328 to measure that voltage, ...
0
votes
2answers
37 views

When does the ADC start reading again in interupt mode?

Simple question, I have set my ADC to read in "continuous"/interrupt mode and I take the reading the following way: ISR(ADC_vect) { int val = ADCL; val += ADCH << 8; ... //Code to do ...
0
votes
0answers
248 views

Periodic noise on ESP32 ADC

I've got an Adafruit HUZZAH32 ESP32 feather board connected to my PC via USB and I'm trying to read from a voltage divider at ADC1 channel 0, powered by the 3V pin. For troubleshooting, I'm using two ...
0
votes
0answers
95 views

eps32 bad adc even with external adc (ADS1115)

Im trying to read an analog value with my esp32 and send it over wifi to another esp32. The wifi part works flawless, however when i try to read an analog value form the esp32 its not useable. It ...
0
votes
0answers
79 views

Configuring the registers of i2c AD converter ADS122C04

I am not able to set the configuration registers of the TI´s converter chip ADS122C04 using arduino MEGA via I2C. The code mainly consists of the following: 1-reset the chip (one byte) 2-choose ...
0
votes
1answer
75 views

ADC value changing after changing Timer1 value in program

I'm writing a code where analogRead() reads ADC value from load. After reading ADC value, if it is not in range, I need to manipulate Timer1 value. Which is also getting changed. But, after changing ...
0
votes
1answer
37 views

How to bridge free-running multichannel adc to serial?

I want to get meteo sensors values, and turn avr based 16mhz arduino (i have mega, but that seems not matter alot vs uno) into multichannel oscilloscope. Task details. Desired data rate is 8(uno) to ...
2
votes
0answers
106 views

Problem connecting Arduino and ADC AD7606

Question is about using ADC AD7606 paired with Arduino (Arduino Mega). I can’t reach the stated speed of this bundle, the question is also whether it is possible or not. ADC output mode is 16-bit ...
0
votes
0answers
386 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
4answers
138 views

Issue with incrementing PWM over time

First post here. So I have an issue, which I have identified, but I'm not quite sure how to fix it. I'd really appreciate some input and suggestions. I realize that my "pwmDelta" is the problem, but I ...
1
vote
1answer
196 views

Reading 4-20ma signal on arduino

I want to read a 4-20 mA analog signal from a 24V flowmeter. I've read the simplest way is to convert it into 1-5V signal using a 250 ohm resistor. The thing is I want my reading to be precise so my ...
0
votes
1answer
173 views

How to find the peak value of analog signal?

I have a question .. Please help me I don't know how Arduino can read the peak value of the sensor signal. The value I want is in the ADC value .. What I want is ... for 5 seconds there will be 1 ...
-1
votes
1answer
61 views

How to Read ADC value without Common GND ? (Possible or not !)

I want to Read external signal with the microcontroller. But the problem is that ADC does not work because the signal GND and the microcontroller are not Common, My question is, have you ...
0
votes
1answer
41 views

Maximum frequency that can be converted with Arduino Uno?

Arduino Uno Board use successive approach ADC of 12 bits and 16 MHz frequency clock. What is the maximum voice frequency can be converted using arduino uno board? I want the step by step solution with ...
0
votes
1answer
680 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
0answers
51 views

Non-Linear readings on Analog Pin A0 vs. other Pins A1

I discovered a curios behavior of my Nano v3. The analog Pin A0 seems to measure data in a non-linear way while the other pins seem to work normal. Please have a look at the screenshot. This is the ...
0
votes
1answer
262 views

Measure current across shunt resistor (Power Analysis)

I am trying to reproduce the side-channel power analysis attack described in this paper: https://pdfs.semanticscholar.org/7946/a8ee82658e2ffb017270331f220a55f5ace6.pdf for educational purposes. The ...
0
votes
1answer
81 views

When does the ADC take the reading?

I'm experimenting with the "2 pin capacitance meter" and trying to make it more accurate. Currently I've made the Arduino read 62.5 ns intervals but this means the time for the ADC to read is taking ...
0
votes
1answer
136 views

Measuring Battery level with ADC already in use

I have NodeMCU v3 with ESP8266 and I am running small project where I am measuring the input from IR phototransistor via ADC pin (A0) and everything is working flawlessly. But now I want to transfer ...
0
votes
1answer
336 views

Specific ports on Teensy 3.6 not reading correct bit resolution using ADC library?

I have a basic circuit, where I'm reading analog values from 14 infrared receivers. I set the bit resolution to 16 but specific ports are returning 10 bit values (from 0 - 1024) instead of 16 bit ...
0
votes
0answers
76 views

Communication between arduino nano and MCP3424 over I2c pt. 2

I'm am completing a project of mine that uses an MCP3424 i2c 18bit ADC and an arduino nano to measure temperature with an NTC thermistor but am having trouble with the arduino wire library. This is my ...
0
votes
1answer
85 views

Arduino vs 12bit ADC

12bit ADC will give us about 1.2mV per step: 5 / 4096 = 0.00122 But if we give Arduino a 1.2V voltage reference we get 1.1mV per step: 1.2 / 1024 = 0.00117 Does that means Arduino can be more ...
0
votes
1answer
111 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
2answers
176 views

Measuring current directly with Arduino

Is it safe to measure current like this as long as measured voltage drop don't exceed 5V? I'm asking this because in almost all current sense circuits they used an opamp in their design. Do I need a ...
0
votes
2answers
621 views

Arduino 10bit ADC is not accurate?

I'm reading the voltage with voltage divider: simulate this circuit – Schematic created using CircuitLab | Arduino is connected to both USB and a 9V adapter. float r1 = 100000; float r2 = ...
0
votes
1answer
540 views

ADS1115, ACS712 and ESP8266

I have an ACS712 (5v sensor), an ADS1115 (5 or 3.3v) and an ESP8266 board (3.3v). I know I can't directly use the ACS with the ESP without a voltage divider on the analog pin. So I figured I could ...
0
votes
1answer
899 views

Noisy analogRead

I'm trying to read voltage using Arduino, here's the code: float r1 = 99700; float r2 = 10004; float adc, voltage; unsigned long analog; void setup() { Serial.begin(9600); analogReference(...
0
votes
1answer
393 views

How do I convert this program to assembly from c++

I am trying to implement a program in assembly code for an Arduino UNO. A potentiometer is used on an ADC pin for variable time (t). LED1 flashes for t seconds, then stays on for t seconds, then goes ...
-1
votes
1answer
158 views

Using Arduino to Record analog signals with SPI ADC + Sampling Rate Issue

I am using Arduino UNO to Read 8-channel, 24-bits resolution Analog signals using ADS1299 Analog-fornt-end. ADS1299 use SPI interface to talk with Arduino. Currently, I can record the analog signal ...