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
1 answer

calculation in C for C2000 device

I'm having some trouble with my C code. I have an ADC which will be used to determine whether to shut down (trip zone) the PWM which I'm using. But my calculation seem to not work as intended, because the ADC shuts down the PWM at the wrong voltage…
user3514815
  • 21
  • 1
  • 4
2
votes
1 answer

beagle bone ADC read values

I'm trying to read the ADC pins ADC0 to ADC5, using a periodic task once every 10 seconds. For this I'm using read() to read 4 bytes. The value read can vary between 0 - 4095 (theoretically). However, I don't seem to be getting accurate readings…
Zaxter
  • 2,939
  • 3
  • 31
  • 48
2
votes
2 answers

Analogue input pins PA8, PA11 and PA12 not working on STM32F103RB

Working on a simple ADC project reading voltages from a potential divider on a number of channels. I am using the STM32f103rb on a commercial and well made PCB. I am reading pins on PORTA and the following pins work and return a voltage: PA0, PA1,…
Adam893
  • 143
  • 1
  • 3
  • 16
2
votes
1 answer

How to read external sensors

I'm a beginner in Contiki World. I'm working with TmoteSky motes. I can read internal sensors but I had not found any information or examples about how to read ADC ports (pin expansions) in order to use external sensors. (Light, Temperature and…
2
votes
1 answer

ADC on arduino in C

I'm trying to use the Arduio Uno in pure C because I can't use the Arduino IDE for my senior design project. I've succeeded in getting the serial communication to work, the digital outputs/inputs, and the analog inputs, to an extent. I'm getting a…
Hollis Scriber
  • 159
  • 1
  • 8
  • 18
2
votes
0 answers

C on embedded system w/ linux kernel - mysterious adc read issue

I'm developing on an AD Blackfin BF537 DSP running uClinux. I have a total of 32MB SD-RAM available. I have an ADC attached, which I can access using a simple, blocking call to read(). The most interesting part of my code is below. Running the…
Tausen
  • 55
  • 7
2
votes
1 answer

Sitecore Advanced Database Crawler Field Exclusion

I have a need to create a specific index to perform a search on a particular field from an inherited template. That part of creating the index and returning matching results is fairly straight forward. The issue I am having is that when doing a…
mservais
  • 570
  • 1
  • 7
  • 20
1
vote
1 answer

Sampling Time for ADC on STM32L432

I'm looking for guidance on how to select the Sampling Time for the ADC on my STM32L432KCU6. I found some tables in AN2834, but they are for the STM32H7 Series. I'm interested in getting ±0.5 LSB accuracy with 12-bit resolution. I'm running my ADC…
1
vote
1 answer

Why do I read 512 characters written in 0.5/0.4 seconds on cutecom when I set it to be around 19 000 per second?

I want to output some adc conversions on cutecom using atmega2560, set 16 bit clock with 64 prescale at 16 Mhz to trigger adc conversion (each takes 13 clock cycles) and that should be around 19000 conversions per second (16M/64=250k and…
beginner
  • 11
  • 4
1
vote
1 answer

STM32 ADC Offset voltage problem. ADC starts from 0.05V instead of 0V

I am working with STM32H743ZI for GPIO, I2C, SPI, ADC. I want to read analog voltage from 8 different channel of ADC1. My code works properly, but there is offset voltage that i dont want to. I am reading the ADC value by connecting the voltage I…
1
vote
1 answer

STM32F030 ADC Sequence Conversion

I need to setup the internal adc of my stm32f030 in order to make it working in single conversion and scan mode. Because I can't use HAL library I need to implement the code at the register level. I need that every time a start is issued the adc…
Andrea
  • 89
  • 9
1
vote
1 answer

STM32 ADC Multi channel using DMA

I want to use ADC1 scan mode to read three channels of the ADC1 using DMA. I defined a buffer for ADC as shown below: uint16_t adc_buffer[3]; Then I started DMA using the following function: HAL_ADC_Start_DMA(&hadc1,(uint32_t*)adc_buffer, 3); And…
1
vote
3 answers

Why do some analog pins on my PIC32 report zero when disconnected and others report non-zero?

I am using a PIC32MX534F064L (datasheet), and trying to read several of its analog pins (marked AN0 to AN15). With none of those pins connected to anything, I expect to read a value of zero. Instead on AN0 through AN5 I read values between 650 and…
Shalom Craimer
  • 20,659
  • 8
  • 70
  • 106
1
vote
0 answers

How to use DMA in Application

I am using stm32wl55JC1. I am making FFT project with ADC mic. I manage to get this work with my workspace but now I need to implement this on Application here github . So I try to implement my project, but I fail and fail a lot. Finally, I manage…
1
vote
0 answers

Calculate multivariable equation with python

I am trying to calculate the voltage of a circuit with an ADC, the problem is that I am seeing that the voltage reading has to be done from a function and that it depends on the current of the circuit, I arrived at the following equations for 0A,…