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

Strange behaviour of STM32 ADC with external trigger

I'm on STM32L476. I have setup my ADC to be triggered by TIM15. There is only one channel, single conversion mode. On ADC side, to enable interrupts I clear the ADC ISR register and then set ADC_IER, before starting the conversion. If I enable in…
Guillaume Petitjean
  • 2,408
  • 1
  • 21
  • 47
1
vote
1 answer

DMA on STM32F4 doesn't work, is my configuration wrong?

I'm working on a project for a digital filter, see figure below. I have timer 3 triggering the ADC at 40kHz, the ADC should then make a sample and when its conversion is done it should trigger the DMA. The DMA should then move the converted value…
Mauricio Paulusma
  • 43
  • 1
  • 1
  • 10
1
vote
1 answer

STM32 SPI Receive DMA is getting garbage data

In my project, I am using Master SPI communication to get analog data from external ADC. My MCU is STM32F746ZGTX. My system needs to work real time so I used SPI DMA Receive and Transmit functions. I am reading all external ADC data correctly with…
dredg
  • 11
  • 2
  • 9
1
vote
1 answer

How does the LPC1788FBD144 chip configure the ADC function to collect two signals simultaneously?

Now I need to configure the AD sampling feature of the LPC1788FBD144 chip, which requires the ability to read both signals simultaneously. However, there is only one ADC in the chip, how to sample two signals. By looking at the chip manual, you know…
Jay.Ming
  • 11
  • 2
1
vote
0 answers

How to get data from ADC with STM32F7

So I wanted to read out multiple channels from adc3 on my stm32f7 discovery. I have been able to read out one channel and set up for multiple ones, but I can't figure out how to read out per channel. I wanted to read them out by interrupt so I set…
vera
  • 21
  • 3
1
vote
0 answers

Analog Sampling using LIBPRU over beaglebone

I need to sample analog signal (50-60Hz) through AIN0 on Beaglebone Black. What I need is a sample size of 10,000 at 1 millisecond sampling rate (should run for 10 secs). The python example I found in for beaglebone_pru_adc library is as below…
Ashish K
  • 905
  • 10
  • 27
1
vote
1 answer

STM32F3 Discovery board ADC DMA transfer not working

I'm using the STM32F303 (Discovery board) and trying to trigger an ADC conversion externally from a timer signal TRGO2 and store it to a buffer through DMA. However, it doesn't appear that anything is being written to that buffer. Could someone…
NoS89
  • 81
  • 1
  • 10
1
vote
1 answer

Pure Data - Get adc value in a particular duration

I'm trying to get the adc values in says 50 seconds. I end up with the picture below I set up the metro as 50 which is 0.05 sec and the tabwrite size 1000. I got a list of values as below But I feel it isn't right as I speak louder for a few…
Tri Nguyen
  • 1,688
  • 3
  • 18
  • 46
1
vote
0 answers

stm32 : How to synchronize DAC, ADC together?

I am using stm32L476 discovery board. I am trying to generate triangular wave with DAC. I am using two lookup tables for the DAC(1 for each up slope and down slope). I am giving sine wave at ADC input and I am getting some samples in triangular wave…
user8398475
  • 61
  • 2
  • 7
1
vote
0 answers

MAX11060 SPI STM32 CUBMX

Interfacing with Maxi 11060 ADC (16 bit) over SPI seems an issue with my code, can you please look and let me know what's missing? NOTE: Code is generated using STM32CubeMX in main after all standard inits configure_MAX11060(); in while (1) { …
1
vote
0 answers

Java ME: Cannot find class for permission jdk.dio.adc.ADCPermission

I'm trying to set up an analog to digital temperature sensor through Java ME on a Galileo Gen 2. I successfully set up a flame sensor using GPIO pins with the jdk.dio.gpio library in Java ME on my Galileo. However, when I try to access classes in…
C. Ebert
  • 51
  • 5
1
vote
1 answer

ADC for PIC18F47J53 code unexpected behavior when passing by value

I am implementing the ADC for PIC18F47J53 using MPLAB v3.51. Why is the value of the variable CH in the main function not passed correctly to the function ADC_Read with the argument channel? unsigned int ADC_Read(unsigned char channel); void…
MFF
  • 21
  • 7
1
vote
2 answers

Android Things HX711

i want to read a load cell with the raspberry pi 3 and android things using a HX711 24-bit adc and i2c. After hours of searching i still havent found a solution on how to set up the hx711 using i2c and read data from it. Is it even possible for…
Dr.Toilet
  • 11
  • 1
1
vote
1 answer

Adafruit ADC and Python AttributeErrors

I'm new to Python and currently working on a project on my Pi 3 mod b. I use an Adafruit ADC1015 to convert analogue signal. However, even if i have the code to get some volt measurments, i get an error of " AttributeError: 'int' object has no…
Tasoulis Livas
  • 75
  • 1
  • 1
  • 9
1
vote
3 answers

STM32F303 ADC gets stuck in the calibration

I have a quite strange problem. I use the same micro in three projects. Two of them use HSI clock source, one HSE. Power is supplied exactly the same way. HSI ones go through the ADC calibration without any problems, HSE one gets stuck. Exactly the…
0___________
  • 60,014
  • 4
  • 34
  • 74