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

Problem reading data from multiple ADC channels with stm32f4-discovery board using DMA

I am trying to read data from channel 0,1,2 and 3 of ADC1. The issue is that when I read from channel 1 and channel 2 and run the code in debug mode it shows the correct valueenter image description heres but when I modified it for doing the same…
1
vote
0 answers

Raspberry Pi MCP3008 ADC converter always returns same value for sensor

I have a moisture sensor and it uses analog so I purchased MCP3008 ADC. I have installed all the packages, ensured the SPI is enabled, checked multiple MCP3008 chips, ran 2 separate python scripts for this, used multiple sensors and made sure they…
Justin Oberle
  • 502
  • 3
  • 22
1
vote
1 answer

STM32 Simultaneous ADC only reads the values from ADC 1

I'm attempting to get two ADC's to simultaneously sample on a STM32H743. However, I cannot seem to read the values from ADC2 correctly. From my understanding, when running in dual simultaneous mode, the data from the two ADC conversions are written…
1
vote
2 answers

How to trigger a set number of ADC conversions with DMA using a hardware timer?

I'm working on STM32F767 with STM32CubeIDE using HAL (I don't have time to fully learn bare metal, I'm doing it in my spare time). I have TIM2 set up as a PWM on both CH1 and CH2 with a period of 200us and a duty cycle of 25% for CH1 and approx. 30%…
ChrisD91
  • 249
  • 3
  • 10
1
vote
4 answers

How can I turn this 8-bit ADC to a 10-bit ADC with PIC16F684 and LED Bargraph

Here is the code, I dont understand how to change it to a 10-bit ADC. my guess is something along the line of 16-bits and just ignore the last 6, but i have no clue . If someone can offer advice on how to change it, great. Im really lost. I've read…
tjpplay
  • 45
  • 4
1
vote
0 answers

correct use of ADC by writing registers directly?

I am trying to use the ADC without using HAL (except for in the setup) on a STM32F031K6, using cubeIDE. Im using the ADC in discontinuous mode - as far as I can tell, the sequence of events should be ADC is setup, then enabled with ADEN ADC start…
prune
  • 77
  • 1
  • 9
1
vote
1 answer

How can I change LED's brightness with PWM and USART in USART1_IRQHandler?

I am using STM32F4 discovery board and I am working on changing LED brightness and timer period using ADC and USART. I use DMA to fetch ADC values, selected TIM4 for PWM and selected USART1 for USART. ADC, USART and PWM are working well so far, but…
1
vote
0 answers

Wrong values from ADC Arduino - frequnecy meter

I'm building a frequency meter using as input a sine wave between 0.05V-0.55V (from a peak detector) and a frequency range between 5Khz-10Khz. I tried to change the sampling rate (I need at least 20Khz) to 76Khz (setting 16 prescaler from ADCSRA…
Tr19
  • 11
  • 4
1
vote
0 answers

Real ADC value BLE113

I would like to ask you for advice regarding the real value calculation from the ADC. I use call hardware_adc_read(6,1,2) set up. The BLE113 is supplied by 3V. Voltage = ADC value * 3V / 2048 is close to the real value. However, 2048 number does…
Dan
  • 33
  • 3
1
vote
0 answers

Maximum frequency that can be converted with Arduino Uno?

Arduino Uno Board use successive approach ADC of 12 bits and 16 MHz frequency clock. What is the maximum voice frequency can be converted using arduino uno board? I want the step by step solution with calculations.
1
vote
0 answers

The ADC buffer not hold the full value

I am trying to read the ADC value from the potentiometer in PIC24F Curiosity Development Board (PIC24FJ128GA204) then turn on the LED if the value more 1000 (I configured it as a 10-bit). However, The maximum value that place in the buffer is around…
1
vote
1 answer

Sum the total of the values this python produces from an analog to digital converter connected to a Raspberry Pi?

I'm working on a beginner project in school that uses and Raspberry Pi 3, 10-bit MCP3008 Analog to Digital Converter (ADC), and 5v Solar Cell to read the amount of energy the solar cell is taking from light. I've taken the code that came with the…
1
vote
3 answers

Struggling to understand channel selection using the ADC on a PIC microcontroller?

I'm trying to write a program that for a PIC18F252 microcontroller to use the ADC to convert 3 analogue signals (on 3 separate pins) into digital signals for use at the output of the program. The guide I've been using to help me understand the ADC…
MendelumS
  • 91
  • 1
  • 8
1
vote
1 answer

How to correctly monitor a variable value on the lcd?

i'm displaying the temperature on 16x2 LCD using atmega16 microcontroller , in the super loop i'm calling the function to display the temperature on the screen , in case the temperature is 136C ( for example ) and temperature becomes 50C , the…
mrMatrix
  • 37
  • 5
1
vote
1 answer

OPLON LBL ADC rewrite an http body to clean a value before xml content

In the HTTP body, requests and responses, I need to clean a non xml part at the start of body when passing through LBL ADC Reverse Proxy. The value to clean is XMLDATA= eg.: Values in the HTTP body before rewriting: XMLDATA=
Tanaka
  • 33
  • 4