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

PIC16F18855 ADC registers aren't behaving the way I expect them to (C, CCS compiler)

I'm using a PIC16F18855 micro with CCS as the compiler, and I'm trying to get the ADC to work. Starting with the functions supplied by CCS, I wrote: #device…
Escape
  • 41
  • 4
2
votes
1 answer

How to speed up the sample rate of my ADS chip over SPI

For a chemistry research project at my school, we are using the ADS8320 data sheet found: here, to take in volatage readings from a potentiometer at a very fast rate. We are working off of a raspberry Pi 3 and are trying to take the data in through…
Samsanit
  • 25
  • 4
2
votes
2 answers

using MPLAB's MCC to configure I2C and ADC

I am trying to communicate to BQ24259 through I2C using PIC16LF1554. The 7th register of the device has a bit which can be used to turn off the battery. I used Mplab's MCC to configure the I2C settings. Using the example code in header files i wrote…
aamir
  • 21
  • 4
2
votes
1 answer

STM32F303: ADC with DMA only works a few times

I am currently working with a Nucleo-64 board that has the STM32F303RE chip. For programming I use the Arduino IDE with the STM32 packages. I want to avoid HAL for now because I think it is rather confusing when you have to learn the registers and…
Pixel
  • 25
  • 2
  • 8
2
votes
2 answers

Usage of two DMA ADC channels in dual regular simultaneous mode STM32

I want to implement dual regular simultaneous mode of ADC1,ADC2 and two DMA ADC channels of stm32f303 discovery. In CubeMX examples: Usage of two DMA channels (one for ADC master, one for ADC slave) is also possible: this is the recommended…
2
votes
1 answer

Not getting the desired FFT for sigma-delta modulator

I have a second order sigma delta modulator in simulink matlab. it's working fine i applied a sinusoidal waveform to the input with Vp - p = 1V and i have the same waveform(with a little delay), after low-pass filtering in the output : I get this…
Fateme
  • 21
  • 3
2
votes
0 answers

DSPIC33 ADC Conversion Time

I have a problem with my code; My aim is to create a code that should take 8000 - 10000 value per second from ADC. Now i wrote a test code to configure the ADC, but according to my calculation ADC Time for Conversion shoul be : *…
Furch Radeon
  • 77
  • 1
  • 7
2
votes
0 answers

Memory mapped ADC on DE1-SoC using HPS (hard-core processor)

I am unable to read from or write to the AD7928 analog to digital converter (ADC) on the DE1-SoC (Rev. F) development board. I have the datasheets for the board and the ADC. I am using a mix of custom IP and pre-made hardware components. I have…
Gordon
  • 317
  • 1
  • 17
2
votes
1 answer

Lua - nil value error

I get the following error message from nodeMCU on esp8266 : attempt to call field "adc.force_init_mode" (a nil value). Can somebody point out the mistake please? if adc.force_init_mode(adc.INIT_ADC) then node.restart() return end val =…
hoody
  • 43
  • 4
2
votes
2 answers

Insert Data to MySQL From ADS1115 Python

i have a problem extracting data from accelerometer sensor in raspberry pi using ADC ADS1115. I'm using this code for inserting the data to mysql # Author: Tony DiCola # License: Public Domain # Import the ADS1x15 module. import…
2
votes
1 answer

PIC 16f1827 ADC Conversion too slow XC8

I followed this Tutorial and changed the code for my Micro-controller 16f1827. I also changed the function of the code. It should turn on a LED if the ADC Value is more than half of max. ADC Value and turn off a LED if less than half. //…
William Roy
  • 141
  • 7
2
votes
1 answer

ADC with 2s complement output

I have a ADC HX711 which gives output in 2s complement form. I want to calculate the input voltage at given to ADC. What all calculations i need to do to recalculate the ADC input voltage. Ref = 1.25 Volts ADC count = 2s complement. Thanks
Virendra Kumar
  • 947
  • 2
  • 13
  • 31
2
votes
2 answers

255 char. instead of 1023, Unable to set reference voltage

I am using ATmega16 in my project. I want to get the value=1023 when I give 5V as input, and 0 when input = 0. The readADC function reads the particular channel of micro-controller ADC. The frequency of my clock is 4MHz. But on reading the input,…
Yash
  • 145
  • 9
2
votes
1 answer

Reading an input (4096) from a directory to use in C

I'm trying to read an ADC (12 bit which is 0 - 4095) input from my AIN0 channel, and using that as an "int" so I could use it in a math function. Is this possible? The directory I'm referring to is "sys/bus/iio/devices/iio:device0/in_voltage0_raw"…
loco_tums
  • 23
  • 4
2
votes
2 answers

Increase Beaglebone Black ADC sampling rate?

I'm working on a project that requires the use of a microcontroller, and for this reason, I decided to use the Beaglebone Black. I'm still new to the Beaglebone world and I'm facing some problems that I hope you guys can help me with. In my project…
user3787524
  • 155
  • 1
  • 2
  • 13