Questions tagged [adc]

An analog-to-digital converter (ADC) is a device that converts a continuous signal to a series of digital numbers. Prefer tag [audio-aliasing], if appropriate.

An ADC samples a continuously variable physical quantity (eg light, sound, position, voltage, etc) and periodically outputs a digital value for it.

601 questions
1
vote
1 answer

Arduino Mega to ADC SPI communication is not working

I'm using SPI communication to try to connect my Arduino Mega 2560 as the master with an ADC chip as the slave (Max 1247) in external clock mode, but I keep receiving the same values (RB1 = 255, RB2 = 255, RB3 = 255) or all zeros whenever I run my…
1
vote
2 answers

Getting fuel% from analog data

I am getting analog voltage data, in mV, from a fuel gauge. The calibration readings were taken for every 10% change in the fuel gauge as mentioned below : 0% - 2000mV 10% - 2100mV 20% - 3200mV 30% - 3645mV 40% - 3755mV 50% - 3922mV 60% -…
Enihr
  • 299
  • 1
  • 3
  • 12
1
vote
1 answer

analogRead() output oscillates even though the pin is grounded

I'm using Arduino Micro to read from 5 flex sensors and display the corresponding angles to the Serial monitor. I am currently having quite some problems with the oscillating values I am getting from the analogRead(). It doesn't seem to matter…
1
vote
0 answers

Why DC voltage can't be generated at audio port of a smartphone using AudioTrack library?

I am building an android application to generate signals like Sine, Square, Sawtooth and DC. I have been able generate sine,sqaure and sawtooth waves by generating values and filling these values to the buffer through which I write to audio port…
nithin
  • 73
  • 2
  • 7
1
vote
2 answers

Non-Linearities ADC Reading on ESP32

I'm using ADC pin in ESP32 WROOM to determine the voltage reading from them (GPIO34, GPIO35, GPIO36, GPIO39) but the reading is not accurate aka non-linear. What I have done is: I take the actual reading using a multimeter and compare to what the…
coyodha
  • 135
  • 1
  • 2
  • 10
1
vote
0 answers

Is my experiment suggesting the ESP8266 NodeMCU 12E only has maximum ADC sampling rate of 6kHz?

As my first IoT type of project, I tried to hook up a pre-amplified electret microphone to an ESP8266 NodeMCU 12E development board, then stream that audio to another computer over the internet. I tried various protocols and approaches to streaming…
John
  • 32,403
  • 80
  • 251
  • 422
1
vote
1 answer

STM32 Temperature sensor power off

I am using internal ADC temp sensor , in a low power device without the sensor in stop mode ,the uController consumes around 4 uA but when the temp sensor is on the consumption goes up to 8-9 uA the problem is i can not turn the sensor OFF / i just…
S2G
  • 121
  • 7
1
vote
1 answer

Read non conventional ADC with STM32F3

I'm attempting to interface an STM32F303 Nucleo with an AD7748-4 ADC. Datasheet for the ADC: https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-7768-4.pdf The issue is, the ADC DOES NOT output the converted value through the…
Jedi Engineer
  • 493
  • 3
  • 11
  • 29
1
vote
0 answers

ADC in python, change sampling time

I am new to python and also to raspberry pi, I have connected the High-Precision AD/DA Board to the RPI 3 model B, and I am looking to change the sampling time of the ADC and I am not sure if I need to change the RPI reading time as well, I have…
ksasy
  • 11
  • 1
1
vote
0 answers

Q : Driver for PMOD AD1 (ADCs) using SPI Protocol

I have a question concerning my code in VHDL; I would like to implement a driver for an ADC (AD7476A) on my Arty board as well as a 16-bit output vector labeled sDATA. I would like the ADC to be configurable (choose how much we want to have), that's…
Khadysr
  • 21
  • 1
  • 1
  • 6
1
vote
1 answer

FPGA Analog-to-Digital Conversion DE1-SOC

I have a DE1-SOC(Rev. C) running Linux. I am having problems accessing the onboard ADC. The input to all 8 channels is a 3V Pk-Pk sinusoidal signal. The onboard ADC is an AD7928 12-bit 8-channel ADC. The datasheet says that the ADC can handle…
1
vote
1 answer

PIC 18F4520 resets itself and keeps in reset when any voltage greater than 3VDC applied to ADC channel 0

I am running a hobby project and I encountred with a problem. I code the pic with MPLABX with XC8 compiler. I am using 3 analog inputs. They are AN0, AN1 and AN2. Timer0 interrupt is also used in the code. When I apply 5V on AN1 and AN2 it doesn't…
1
vote
0 answers

ADC conversion triggered by 1ms timer not working, STM32F4

Im using STM32F429 board and my ultimate goal is to get ADC conversion(set to deliver 2.7Ksps or 2.7 samples every 1ms) using TIM8 trigger, collect 1000 samples in buffer and do DMA transfer every second. I managed to get Timer running, but for some…
Inzzza8
  • 17
  • 1
  • 4
1
vote
1 answer

stm32 multiple ADC redings error

I'm using cubemx to initiate the project, the mcu I'm using is stm32L053C6. To that I have 2 sensors and 2 transistors connected to adc inputs. The code below shows how I get the input value, voltage, from the first temperature sensor. Then I use…
hussik
  • 35
  • 1
  • 6
1
vote
1 answer

ADC interrupt not getting called

I want ADC Interrupt Service Routine to be called after each End of Conversion. However it is not being called. Here's is my code: #define RCC_APB2ENR (*((volatile unsigned long*) 0x40021018)) #define ADC1_CR1 (*((volatile unsigned long*)…
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35