694 questions
0
votes
2
answers
1k
views
ESP32-S3-DevKitC ADC Pins Behaving Erratically
I am working with a few ESP32-S3-DevKitC-1-N8 boards and have a simple program that reads analog data to the serial monitor using the two SAR ADCs (Program below). I am having a problem where the ADC ...
0
votes
1
answer
437
views
SPI connection with MSP430F2013(Master) to Arduino uno(SLAVE)
I working on a project where i need measurement of a bridge circuit(strain gauge) through MCU. For that I am using a MSP430F2013 MCu with 16 bit ADC. I dont have data logging hardware for this Mcu so ...
0
votes
1
answer
2k
views
Raspberry Pi Pico Analog to Digital Timing in C++
According to numerous online sources, the Raspberry Pi Pico can perform 500,000 A to D reads a second, i.e., 2 microseconds per read. I am programming in C++ using the Arduino IDE and cannot get ...
0
votes
1
answer
291
views
Does an ADC with bipolar input has more resolution on the negative "part"?
I'm trying to understand if the negative part of a bipolar ADC has more resolution than the positive.
For simplicity, let's say I have a 3 bit ADC, for a total of 8 possible values. Let's also say ...
0
votes
0
answers
158
views
Python and Rasbperry MCP3008 sampling
I am trying to use MCP3008 for sampling. I want obtain 8000 samples/second, but i really can't obtain much than 1000 samples/second. This is my code:
spi = busio.SPI(clock = board.SCK, MISO=board....
0
votes
1
answer
210
views
PIC16F877 display the result of ADC on LEDs with C language using MPLAB
I used PIC16F877 and my purpose is to choose CHANNEL 4 to display the analogue input AN4 value on PortD leds. The approximate value is about 1V. I wrote a code and however, no matter how I ran my code,...
0
votes
3
answers
2k
views
Individually read distinct inputs with STM32L ADC
The goal is to read multiple ADC channels by polling. It does not need to be fast - the idea is to read the voltages from different batteries that are attached. I have a STM32L071 microcontroller. The ...
1
vote
1
answer
355
views
12-bit ADC in MSP430FR2476 seems to only work in 10-bit mode
Here is the problem: I am trying to initialize the 12-bit built-in ADC on MSP430FR2476, but no matter what I do it seems to work at 10 bits. I change the resolution bits in a control register and alas,...
0
votes
1
answer
768
views
SPI Extra Clock Cycle over communication between STM32 Nucleo L432KC and MAX31865 ADC
The setup that I'm working with is a Nucleo L432KC connected to 8 different MAX31865 ADCs to get temperature readings from RTDs (resistive thermal devices). Each of the 8 chip selects is connected to ...
0
votes
2
answers
878
views
Trouble setting up multiple mcp3008 ADC chips on rpi0 using python. Any ideas as to what is wrong are appriciated
I am currently working on a project that requires me to read analog voltages for 16 different sensors and convert them to angle readings. To accomplish this I decided to utilize the MCP3008 ADC chip ...
2
votes
0
answers
229
views
Why is a memory location only written to once in an interrupt callback when using ADC and DMA transfers with a STM32F3?
I'm looking to get my STM32F303 discovery board to continuously read from a temperature sensor using the ADC and DMA transfers to a memory location, but during the interrupt callback, the memory ...
0
votes
0
answers
66
views
KEIL4 where the lpc2148 ADC Interrupts or IRQs wont execute
I have configured for the ADC channel AD0.1 of processor LPC 2148, with ISR. But while ADC value changes ISR is not executing. Because of this VICVectAddr contains the value of ISR function. This ...
1
vote
1
answer
2k
views
stm32 SPI receive only mode need a transmit?
sorry in advance, i am new at this kind of projects.
I tried to implement a connection to an ADC (LTC1609) via SPI. I just want to get the data from the ADC as quick as possible. The ADC has just a ...
0
votes
0
answers
74
views
STEVAL-STWINKT1 Board: save ADC data to sd card
I am using STEVAL-STWINKT1 Board to capture ADC data to SD Card.
Please help me with this-
I am not sure if I can see the plot and FFT of my ADC signal on the Bluetooth App.
code to save ADC data to ...
0
votes
0
answers
53
views
STM32F411E-DISCOVERY ADC function position problem
I'm using stm32f411e discovery board. I'm trying to use ADC1 Channel 3 (PA3) to read the potentiometer. When I put the function config for ADC is ADC_SingleChannel_Config() in #if (ADC_SINGLE_DEF), it ...
0
votes
1
answer
4k
views
FMCW radar: understanding of doppler fft
I am using fmcw radar to find out distance and speed of moving objects using stm32l476 microcontroller. I transmit the modulation signal as sawtooth waveform and I read the recieved signal in the ...
0
votes
1
answer
2k
views
STM32 ADC with DMA, DMA not writing data to memory location
I am trying to use the ADC on STM32f407G-DISC1 board to read joystick x and y position on pins PA2 and PA1 respectively and store the values to a memory location using the DMA.
I am configuring the ...
0
votes
1
answer
657
views
STM32 ADC: leave it running at 'high' speed or switch it off as much as possible?
I am using a G0 with one ADC and 8 channels. Works fine. I use 4 channels. One is temperature that is measured constantly and I am interested in the value every 60s. Another one is almost the opposite:...
0
votes
1
answer
1k
views
STM32H747 Register implemented ADC with DMA
I'm using the STM32H747 on an Arduino Portenta H7. I'm trying to implement the ADC and DMA together.
The ADC should run in continuous mode and scan over the two channels.
void ADC_Init (void) {
/**...
0
votes
1
answer
691
views
STM32F0 with ADC and DMA with Renode
I'm trying to run an application on Renode that uses ADC and DMA for the STM32F030F4P, I created a stm32f0.repl file with the dma and adc as follows:
dma: DMA.STM32LDMA @ sysbus 0x40020000
[0] -&...
0
votes
2
answers
2k
views
Possible sources of constant STM32L4 ADC offset error
I have been using the STM32l4 ( STM32l342kc nucleo-32 ) line for a few years now, in a current project that I am working on I realized that I have a constant negative ADC offset on my readings (about ...
0
votes
1
answer
241
views
Audio through CAN FD into headphones
I am trying to record audio using a 12 bit resolution ADC, take the sample buffer and send it through CAN FD to another device, which takes samples of this audio and creates a .wav and plays it. The ...
1
vote
0
answers
1k
views
Implementing AD7606 driver for Raspberry Pi 4b
I am trying to implement ADC AD7606 device driver for Linux on Raspberry Pi 4B+ to make possible to read data from all channels as fast as it possible via SPI. The kernel version is v5.10.83 and the ...
1
vote
0
answers
450
views
Share GPIO pins between two instances of the SPI Linux driver for AD7606 ADC
I'm trying to enable two instances of AD7606 SPI driver for AD7606C. In order for ADC to start the conversion GPIO pins for CONVST (conversion start), interrupt pin (BUSY pin) and RESET pin have to be ...
0
votes
1
answer
171
views
Only hear noise of audio out of DAC
I have been trying to hear the real time audio I get from the ADC into the DAC and listen to it through the headphones I connected. I am using a STM32G01CE-EV board, but when I try to listen to the ...
0
votes
0
answers
197
views
How to transfer data from kernel to applicaiton?
I have an ADC device, I wrote a driver for it, the driver works well. I want to send the sample data from the driver to the application.
I choose fasync way, using a SIGIO signal to notify the ...
0
votes
1
answer
502
views
how to combine ADRESH and ADRESL on 12 bit ADC
MICRO: PIC18LF47K42
compiler: XC8
application: MPLABX
I am trying to combine the values in of 12 bit ADC. They go into ADRESH and ADRESL. My ADC is set up for right-justify which does formating as so:
...
0
votes
1
answer
639
views
How do I convert a bipolar differential ADC value?
I am trying to convert an ADC bipolar differential signal in C++. The device I am using is a 12 bit MAX11613 (datasheet) and the microcontroller is a Raspberry PI 3B+. So far I am able to capture ...
0
votes
1
answer
115
views
MCP9600 not changing thermocouple type setting
I run 4 MCP9600s on ESP32 and experience a problem with setting the TC type.
I tried hard to post the code here according to the rules using the code toolbar button and the CTRL+K keyboard shortcut ...
0
votes
0
answers
251
views
Convert ADC voltage into actual AC input voltage 230
In my project, I am using an ADS1256 24-bit sensor with a RPI CM4 to read the input AC voltage and current. I just fed my AC input voltage to the filter circuit and I got an output of 0.378V, which is ...
1
vote
1
answer
546
views
Why is this code not working for mcp3008? (from official adafruit site)
I'd like some help to debug the example code provided by adafruit. I have connected a potentiometer and an analog servo motor which when using the python2 script give me values just fine. I took from ...
0
votes
0
answers
540
views
Interrupt to trigger SPI read of external ADC (MCP3464)
I have been trying to speed up the sampling rate on a SPI controlled ADC for an ECG device and have been stumping my head against the wall.
I am using an external ADC (MCP3464 datasheet) to read ADC ...
0
votes
1
answer
361
views
How do I read data via i2c from a MAX11613 chip using C++ on a RPI 3B+
I'm trying to write a driver for a MAX11613 ADC chip (MAX11613 Datasheet) in c++. I think I've got the write code correct for the setup and config, but I'm having some trouble with the read code. I ...
0
votes
0
answers
90
views
stm8l fluctuating results in Floating point operation
I was doing a project in STM8L151C6 based measuring the voltage using ADC with 12 bit resolution and a external reference voltage of 2.5 V.
It has a 4 digit seven segment display. So I tried to output ...
0
votes
1
answer
6k
views
Measure analog value using Internal reference voltage on STM32L422
I have to measure adc value using internal reference voltage in STM32L422. According to datasheet STM32L422 internal reference voltage is 1.2 V. I enabled internal Vref from CubeMX.
Analog input is 1V ...
0
votes
0
answers
135
views
I'm trying to display the potentiometer's converted value(Tension) into 4 7-segment displays in real time, how do I do it?
I'm currently doing a project where I need do put the values in real time whenever I adjust the potentiometer, however, in my current code, it only updates the value when I reset my arduino. I'm ...
-1
votes
2
answers
264
views
adc read accuracy ATMEGA
I'm trying to read a bank of 6 Lifepo4 cells with an ATMEGA328P and I'm struggling to convert the 10 bit value to a voltage.
I'm comparing against a TL431 voltage reference that using my multimeter ...
0
votes
2
answers
7k
views
STM32 Having problems to get DMA + ADC to run. (NUCLEO-G431KB)
I made a new C project:
Made an ADC_1 channel_1
Enabled Continous Conversion Mode
Enabled DMA Continoise Requests
Made a DMA channel
Created code added a buffer, started the DMA and added a Delay ...
0
votes
1
answer
3k
views
How to achieve maximum sampling rate in STM32F3, theoretically?
I'm currently using STM32F303VET6 in a project which requires sampling rate as high as possible. I've decided to connect the analog signal to PC0, i.e., ADC12_IN6, which is a common slow channel ...
0
votes
0
answers
69
views
Trouble setting ADC to fully respond
I have made a simple program that controls a 10-LED bar graph and the speed in which the LEDs change is supposed to be controlled by a 10K POT. I am using 16F88 (and CSS Compiler/Mplab v8.91) for this ...
0
votes
1
answer
397
views
Resetting ADC control flags after continuous read (ATMega2560)/Arduino
I am using an ATMega2560 with a resistance touch screen (uses the ADC with analogRead commands) – I also use other ADC pins with analogRead (NTC temp sensor). This all works fine.
I have recently ...
0
votes
1
answer
68
views
Validating ADC data through USB
In our application we are sending ADC data(240 bytes) to host computer through USB at full speed and using Serial application like (teraterm/minicom/Docklet) to validate the data, but we are facing ...
0
votes
0
answers
145
views
How to make Raspbian recognize SPI input from ADC as a soundcard
I have an analog to digital converter (ADC) MCP3008 connected to Raspberry PI 4 via SPI interface.
I need to process the signal from ADC in ODAS library (Open embeddeD Audition System).
ODAS is ...
1
vote
0
answers
840
views
Arduino Uno analogRead with ADC register
I'm trying to read to calculate the capacitance with the Arduino Uno. I did this successfully with the Arduino function.
unsigned long starttime = 0;
unsigned long endtime = 0;
double C = 0;
float n = ...
0
votes
1
answer
336
views
Implementing Infrared sensor to an arduino
Is there a way to implement an Infrared sensor as input in an Arduino code ? I want the sensor to send data to the Arduino in values (changes of the IR position) and then use that value as an input in ...
1
vote
2
answers
662
views
ESP32 I2S in nanoFramework
I'm trying to replicate a C++ project I found for sampling sound data on the ESP32 using I2S, but using C# and nanoFramework.
In the ADCSampler.cpp file the following headers are loaded
#include <...
0
votes
1
answer
609
views
AND operation with 0xFFFF and subtraction of 0x7FFF
I am facing problems in understanding a code that handles the 16-bits output data of a SAR ADC.
More specifically, I am not sure about the meaning of the bit-wise operations shown in the code below. ...
-1
votes
1
answer
4k
views
STM32 ADC Averaging Values
I would like to get peak value from STM32 adc samples. I have written the below code and I've managed to get peak value however most of the time this value includes the biggest noise. In order to ...
1
vote
1
answer
248
views
PIC16 not updating ADC values
Can somebody help to explain why my code or setup not updating the ADC values of a 10K-potentiometer please?
I use MPLAB XPRESS PIC16F18877 board and MPLAB MCC to generate the code. The voltage result ...
0
votes
0
answers
342
views
Reading a 32-bit ADC result with a 16-bit SPI interface
I need to measure a very small ripple on a power supply output that represents about 0.0017% of the output voltage. As a result, I need high-resolution ADC to do this. I am using the F2837xD board ...