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

I have using opencv python form converting the analog clock to a digital data for the hours and minutes but I need it to show for seconds too

I have ued opencv to read the image , convert it to gray scale, and found edges using canny, kernel, thesh, erode and so on and i have detected all the lines in the image using HooughLineP() and i have detected the hours and minutes hand but i also…
Ajay
  • 55
  • 10
1
vote
1 answer

beaglebone black adc "in_voltageX_raw': Resource temporarily unavailable"

I struggle to get readings from analog inputs on the bbb. cat /sys/bus/iio/devices/iio:device0/in_voltage5_raw cat: '/sys/bus/iio/devices/iio:device0/in_voltage5_raw': Resource temporarily unavailable cat /etc/dogtag BeagleBoard.org Debian Buster…
jgnoss
  • 33
  • 5
1
vote
1 answer

Streaming ADC data through UART

I am trying to stream sampled values from 8 bit ADC through UART on the STM32 nucleo board. I use ADC with DMA. Sample rate is around 6kHz to fill a buffer with 100 converted values takes me around 17 ms. After that I want to send those values…
1
vote
0 answers

3.7V li-po Battery Level Check using Arduino

I want to check battery level using Arduino. Arduino is powered by 3.7v Li-Ion Battery. using the same Arduino, I want to check check level of battery. Is it possible with Arduino's ADC? I am using following code :- void setup() { …
1
vote
3 answers

How can I add hysteresis to my ADC output?

I'm currently using C to program a microcontroller (microchip PIC18F4520) for a university project, to turn it into a very basic MIDI controller. My code uses the 4520's 10-bit ADC (analogue-digital converter) to read the position of a variable…
1
vote
0 answers

I have a problem reading ADC with DMA on STM32 F767zi. When I look into the buffer, all I see are zeros, and I do not know why?

The size of my buffer is 4096 and I want to fill the buffer with the adc values that are read. #define ADC_BUF_LEN 4096 uint16_t adc_buf[ADC_BUF_LEN]; I am using this function to start the reading process of the ADC using…
Kevin Le
  • 11
  • 1
1
vote
1 answer

ATmega328p analog to digital conversion not responding

The following code does not update initial adcValue. LEDs are working properly with different program, and they also work properly given the initial adcValue. They dont respond to potentiometer adjusting. The delay is there just to make it slower,…
hutar94
  • 73
  • 6
1
vote
0 answers

How to determine real sampling frequency of ADC when using it with I2S?

I have a problem measuring a signal from ADC using I2S. // Initialization of I2S buffer uint16_t* i2sReadBuffer = (uint16_t*)calloc(DMA_BUFFER_LEN, sizeof(uint16_t)); size_t bytesRead; while (1) { // Read data in the buffer…
1
vote
1 answer

FIFO buffer in python

I'm trying to acquire a signal from sensor and process it "real time" with Raspberry and Python. I use ADC converter to have digital input. I was told to implement a sort of buffer since time processing takes too time and would stop ADC acquisition.…
1
vote
0 answers

Record bipolar analog AC current signal

I want to record the AC current time stamp data into my RaspberryPi from current sensor (22mV/A sensitivity) via an ADC (12 Bit resolution) that is being supplied to my mobile. The input side the charger reads (110-220 V, 50 Hz, 0.3A).So we can…
Ranjan Pal
  • 307
  • 3
  • 13
1
vote
0 answers

TIMER triggered DMA - AD conversion, STM32F4 works only ones

I am implementing an A/D conversion with DMA transfer fired by a timer on a Nucleo STM32F401RE board. Both TIMER2, the one used for the time base, and ADC with DMA looking at the debug are fine. But when I use the timer to start the AD conversion it…
1
vote
1 answer

Strange data from Wheatstone bridge via ADC and Arduino

I'm using a CS1237 ADC with an Arduino Mega to look at data from a Wheatstone bridge load cell. I didn't build the load cell or wire it to the ADC, it's in a store scale and I just lifted the clock pins of the chip that was controlling the ADC and…
1
vote
0 answers

DAC Output on Arduino MKR Zero in Simulink

I am trying to use the Arduino MKR Zero in Simulink using the Simulink Support Package for Arduino Hardware. So far I have been successful at get a led to blink using a pulse wave in Simulink and the Digital output of the Arduino. I have also been…
Baldrick
  • 11
  • 2
1
vote
1 answer

setting right ADC prescaler on the Arduino Due in timer and interrupt driven multi-channel ADC acquisition

I am trying to follow, adapt, understand (and clean up a bit) a variation around the code available there, for the Arduino Due: https://forum.arduino.cc/index.php?topic=589213.0 . I do not like the forum format, as things end up buried deep, so…
Zorglub29
  • 6,979
  • 6
  • 20
  • 37
1
vote
0 answers

STM32F4 ADC Multimode with Master being triggered by timer

First of all: I'm using the CubeIDE toolchain offered by STM. Some of the STM32 microcontrollers have multiple ADCs (for example STM32F446xx) and offer a multi-regular-simultanuous mode (DualMode or even TripleMode), where the ADC1 is set as a…