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

Rust no_std ESP32 hal | ADC & DMA at 192 kHz sample rate

I’m trying to implement ADC conversion in a non blocking mode using DMA from gpio analog input at the sample rates: 192kHz. My questions: How to be implemented ADC in non-blocking mode (DMA). Something like: // DMA let dma =…
1
vote
1 answer

how to turn raw audio output from analog microphone into mp3 file?

I am working with a RPI Pico w, I have an analog microphone connected correctly and outputting raw audio data, how do I convert it into a file I can listen to?? I am using the micro python language.
SweetWhite
  • 61
  • 7
1
vote
1 answer

What does File "/usr/lib/python3.9/enum.py", line 405, in __getattr__ raise AttributeError(name) from None mean?

I have connected an analog joystick to my Raspberry Pi 3B, and I'm trying to get the up down left right movement to map to W A S D. The code looks like this: #!/usr/bin/env python3 import RPi.GPIO as GPIO import ADC0834 import time from…
wahhhh
  • 41
  • 3
1
vote
1 answer

How to use external voltage reference on RPi Pico VREF pin

I want to use ADAFRUIT LM4040 module as External Voltage Reference with Pico VREF pin With Arduino boards I have to use 'analogReference' command to specify that I'm using an EXTERNAL voltage reference. something like this: ''' float ref_voltage =…
Ray
  • 45
  • 3
1
vote
0 answers

Problem of transmitting ADC values using DMA to UART

The data that I am getting on Putty I am currently working on a personnal project and I would like at the moment to understand the basics of ADC using DMA and transmitting values using UART to my computer. I am working on STM CubeIDE and I did the…
Arthur
  • 11
  • 2
1
vote
1 answer

STM32: how does the DMA save values of an ADC with 3 channels as half word into a buffer?

I have a STM32L151RBT6 with 1 ADC and 2 channels configured. The ADC is configured in "scan mode" and "continuous mode". The ADC has a resolution of 12 bits. The ADC values are saved into a buffer, where every element of the array is 32 bits in…
1
vote
0 answers

32bit SPI communication from ADC to Raspberry PI

I am trying to get an ADC and external oscillator (ADS131M02-q1 and SG531p respectively) to read a 1Vpp@60Hz signal from a function generator to print to a Raspberry Pi my issue is that the ADC value and voltage value always read as 0 import…
1
vote
0 answers

Microphone input RMS measurement on Android device

I want to measure the RMS value of the input audio signal over periods of 100-200 ms on an Android device without recording the audio to a file. This is not to measure the noise level, I only need the RMS value of the ADC. Please suggest an…
1
vote
1 answer

How do you run a SCL file in MPLAB without a "Run SCL" button

I have an assembly code for PIC18F458 that gets data from channel 0 (RA0) of ADC and displays the result on PORTC and PORTD. Therefore, I am trying to stimulate the RA0 pin on a PIC18F458 using a SCL file in the MPLAB X V5.05 Stimulus…
aLoHa
  • 165
  • 7
1
vote
0 answers

Using an Openmote-B ADC

I'm working on signal acquisition and transmission using Openmote-B. I have an analogue signal from a sensor, that is to be transmitted using an openmote. Is it possible to directly feed the analog data to the Openmote? How can I use the inbuild ADC…
jishnu k
  • 11
  • 1
1
vote
0 answers

How to setup the ADC & DMA on a dsPIC33?

I like to sample an analogue mic sample. The sampling should be synced with the I2S master clock. Since I like to do some DSP after, a block of samples should be processed while another block should is sampled. My MCU is a DSPIC33CH128MP205. So I…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
1
vote
2 answers

How are ranks interpreted in STM32 ADC multi-channel scan mode?

The HAL for my stm32f10x provides an adc interface with the following mode selector by enabling ScanConvMode, which determines whether multiple channels or a single one are processed by the ADC, or just a single one For multi-channel adc reading…
1
vote
3 answers

dsPIC33 ADC1 gives incorrect converted values

Good morning, I am using the ADC1 of a dsPIC33EP512GM604 and getting incorrect converted values. To check this I made a cycle of 10 consecutive sampling/conversions. The first value is always quite different from the rest of them, but it is the…
Guille
  • 326
  • 2
  • 10
1
vote
2 answers

What is the difference between temperature sensor characteristic vs. sensor calibration

I'm configuring the internal temperature sensor of a STM32F4 MCU, and when reading the documentation, I came across some "duplicated" but divergent definitions. Take a look in the image below: The temperature sensor is connected to the ADC1,…
1
vote
0 answers

How to set up circular DMA for continuous mode ADC on STM32F411?

I'm using CubeIDE for development. I'd like to sample an analog pin with a consistent sampling rate and I'd like that sampling rate to be as high possible. Hence I configured PCLK2 to run at 72 MHz, allowing me to reach the maximum allowed sampling…
Cosinux
  • 321
  • 1
  • 4
  • 16