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
2
votes
0 answers

Reading microphone input values with RPi through MCP3002 ADC

I'm trying to make a clapper switch to turn on and off an LED on Raspberry Pi 3B+. I'm using MAX4466 of a kind microphone (didn't buy it by self so don't know the exact model, but it's a mic with 3 outputs - Vcc, GND, Out and looks very similar to…
2
votes
2 answers

stm32 simultaneous adc READS

I have been using STM32 IDE which incorporates the CUBE MX. Using the HAL code I am able to read on three pins using a separate ADC for each pin. I have started all the ADC's at the same time and then I poll for completion. I am I correct in…
user50619
  • 325
  • 5
  • 14
2
votes
1 answer

STM32F746NG-Discovery : Program Stuck after first ADC read

I am trying to read ADC values from an arduino shield connected to my board. The Arduino shield is an already tested custom board which sends data when a contact between a sensor and a finger is detected. I developed a program using STM32Cube IDE to…
2
votes
1 answer

How to Use the VREFINT in stm32f103 bluepill?

I'm not able to understand the use of VREFINT in stm32f103 board. Can anyone explain me how to get adc value in stm32f103 using VREFINT? if(HAL_ADC_PollForConversion(&hadc1, 100) == HAL_OK) { adcVrefInt = HAL_ADC_GetValue(&hadc1); …
Satyam Miri
  • 33
  • 1
  • 6
2
votes
1 answer

STM32F404K8: HAL, ADC+DMA gets stuck after first reading

I'm trying to read ADC values from three different channels(right now, later it will be 6 channels, 3 on each ADC), and I would like to access my ADC buffer after some random time and send it forward using UART later on. Right now they are just…
Mikebebe
  • 21
  • 1
  • 2
2
votes
1 answer

How to measure Lipo or lifepo4 battery with esp32

my battery is lifepo4 3.32v currently. then i set adc1_config_width(ADC_WIDTH_11Bit); adc1_config_channel_atten(ADC1_CHANNEL_0, ADC_ATTEN_DB_11); //set reference voltage So if i applied 3.9v then i will se 2047 in monitor. Code for measyre adc…
Quang Minh Lê
  • 169
  • 1
  • 2
  • 13
2
votes
2 answers

How to measure/know precisely the ADC reference voltage on STM32L052K6T6?

I am currenctly working on STM32L052K6T6. I would like to know if there is an appropriate way to measure precisely the voltage used by the adc. I read through the documentation that this voltage was on adc_channel17 but i have no idea on how to…
Isymap_prog
  • 147
  • 4
  • 14
2
votes
2 answers

ADC on NUCLEO- STM32F401RE board does not work beyond 10kHz of input signal

I am using the ADC on NUCLEO- STM32F401RE board. I have programmed the ADC using interrupts store about 10,000 values in an array and read them using a .ini file. The code does not work beyond 10kHz of input signal. ADC is of 12 bit resolution with…
2
votes
1 answer

ADC raw data forming

I would like to ask you for an explanation about this part of my code. I am not sure what it really does. This is example code and I would like to understand it. The purpose of the original code should be acquiring the data from ADC in the streaming…
Dan
  • 33
  • 3
2
votes
2 answers

Analog to digital sampling rate affected by String() function on ESP8266?

I'm using an ESP8266 NodeMCU 12-E development board to capture audio from a pre-amplified electret microphone, then I upload it to the web where it will be converted to a wav file. My first thought was to cast the integer values of analogRead(A0)…
John
  • 32,403
  • 80
  • 251
  • 422
2
votes
0 answers

STM32F0 ADC in DMA Mode and EOC/EOS Interrupts

According tot the datasheet, the ADC generates a DMA request at the end of each conversion: Does the ADC use an interrupt to generate this DMA request? Or is it done in the background using hardware automatically? I am asking this today because in…
Ken Lin
  • 986
  • 1
  • 8
  • 22
2
votes
1 answer

PCM device driver for raspberry pi

How to write a PCM codec device driver with long/short frame sync(Not I2S) in Raspberry Pi? I know how to write an Alsa sound architecture device driver with I2S(write a platform device driver and codec driver) but I suppose raspberry only supports…
2
votes
0 answers

How to write a driver in C code for the AD7705

I want to run AD7705 by ATMEGA8 microcontroller and I used the following C.code: ` DDRB = 0x6e; //PinB.1(DRDY')=output , PinB.2(SS')=output , PinB.3(MOSI) = output , PinB.4(MISO)=input , PinB.5(SCK)=output , PinB.6(Reset') = output PORTB =…
2
votes
0 answers

How to control CS signal in SPIDEV moudule on raspberry pi

I am trying to use SPIDEV module in Python 2.7 to interface Raspberry Pi 3 with ADS1256 ADC over the SPI bus available on the Raspberry Pi unit. The project is to communicate with two of those ADCs and sample all the channels (8 channels each) at…
2
votes
1 answer

AHB AP transaction error with zynq board

I'm new at zynq board. I am trying to work with XADC of zynq-xc7z020 and want to see its quality for my application through vivado and xilinx SDK. I tested two ways of designing through lab3 and lab4 tutorials. Synthesis, implementation and…
Mojtaba Ahmadi
  • 1,044
  • 19
  • 38