694 questions
0
votes
0
answers
66
views
ADC DMA does not work after wake up STM32
I am facing the issue that ADC DMA cannot work even I try re-init in many ways.
Information:
STM32L476
Stop mode and wake up via RTC
Can re-init USB so the terminal still works
Clock configuration ...
0
votes
1
answer
69
views
STM32F4 ADC Multi-Channel Interrupt Logical Error
I am trying to use interrupts with the ADC module. I am using PA0 and PA1 as analog inputs for the ADC, and PC0 and PC1 as external LEDs. My goal is: when PA0 is triggered, PC0 should turn on. when ...
0
votes
0
answers
30
views
Correct Method for Data Capture and Filtering
Below is my python code for fetching data from ADS1263. The ic has been configured properly and i am getting the data. I want to filter the data on the fly or you can say fetch one data and filter it ...
1
vote
1
answer
55
views
why STM32F030F4P6 ADC continue scan mode make pin's voltage is higher (re-up)
I'm using ADC continue scan mode with DMA for 2 channels, config by register, not use HAL library, make sure pin mode is analog mode
When ADC just turn on clock, every thing be ok, voltage of pin PA0 ...
0
votes
0
answers
52
views
Sampling characteristics of nRF52840 SAADC
According to the documentation, the SAADC (ADC) device has a maximum sampling rate of 200kHz (ksps), a value that is the sum of a minimum TACQ (acquisition time) of 3us and a conversion time of "&...
0
votes
0
answers
63
views
yl-69 sensor - adc conversion does not change adch and adcl - avr assembly
The YL-69 sensor(for soil moisture using a comparator circuit LM-393) is functional. When tested with C code on the Arduino IDE, it prints the correct values on the serial monitor. However, when ...
0
votes
0
answers
48
views
daisy-chaining multiple MAX11040K's
Not sure if the is a h/w or s/w issue but here goes- I'm using the MAX11040K to sample 9 channels (all microphones) which give a signal between 0 to 3.3V DC-biased by 1.65V; that's input to all ...
0
votes
1
answer
65
views
Transfer data from RAM to Flash while ADC is running with DMA
I have a STM32WB55VG device where ADC Sampling for one channel is happening at a rate of 40 kHz. As the sampling duration is about 5 seconds the data (400 kBytes) can not be stored in RAM (only 256 ...
0
votes
0
answers
120
views
Digispark ATtiny85 AnalogRead() Issues
TLDR: Whenever I try to read a voltage that is lower than about 2.2V the display will freeze up. Only after I increase the voltage then after like 10 seconds it resumes operation.
I am tinkering with ...
0
votes
0
answers
93
views
AD7124-8 with STM32 Status Register not reflecting active channels
I am creating a project with an AD7124-8 PMDZ eval board with an STM32H755ZI nucleo board.
Communicating through :
SPI Mode - 3 ( CPOL - 1, CPHA - 1 ),
MSB first,
8 bit data length,
No CRC.
I have ...
1
vote
1
answer
88
views
How do I get ADC to work on an ATtiny212 using Microchip Studio C code?
I am new to the tinyavr 1 series microcontrollers. I've tried copying the basic example out of the Microchip TB3209 guide, but it doesn't seem to do anything.
I use the below code, where PA3 is an LED ...
2
votes
1
answer
66
views
ADC7768 CRC calculation
I am using adc7768 to receive ADC samples. According to datasheet to calculate CRC, we can do it every 4th or 16th sample. My question is for 4 samples last 3 samples CRC will be header of 4th sample. ...
0
votes
0
answers
42
views
How can I plot information from Adafruit ADS1115 smoothly on matplotlib using python
See attached my waveform of input to channel of ADS1115, my code, and my output that I am getting
I cannot get the output matplotlib waveform to plot smoothly like my input waveform from oscilloscope
...
0
votes
1
answer
122
views
STM32C031C6 - FLASH Overflow Error During FFT Implementation with ARM CMSIS-DSP
I am working on an embedded project with the STM32C031C6 microcontroller using STM32CubeIDE. My goal is to perform an FFT on ADC input data and transmit the results over UART. I am utilizing the ARM ...
0
votes
0
answers
121
views
ADS1263 python voltage reference
For the code for ADS1263 I wanted to measure with voltage reference 3.3V which comes from Raspberry Pi. How command for this should look like?
The code is
import board
import busio
import ADS1263
...
0
votes
0
answers
35
views
ADC read with NUCLEO-C031C6 Kit
When ı try to read ADC values with this MCU, ıt does not give me 0 adc value when ı make ground a channel pin. It gives me 120 ADC (/4095) and ı did not get the reason.
1
vote
2
answers
1k
views
Warning about deprecated define from ESP-IDF driver/adc.h
Putting the finishing touches on an assignment (ESP-IDF PlatformIO) and my ADC initialization is throwing a warning that a define I'm calling is deprecated. It builds, so this is more in the "it ...
1
vote
1
answer
102
views
Cannot set up ADC for proportionally frequent LED blinking in STM32F103C8T6
I'm trying to set up ADC for STM32F103C8T6 for a LED at PC13, which desired behaviour is blinking with frequency proportional to a potentiometer's resistance at PA0 (a kind of arm assembly hello-world ...
2
votes
1
answer
265
views
STM32C031 Number of Conversion can not be more than 8
I am trying to make a STM32CubeMX design with STM32C031. I have 11 ADC channels to read but I can only select 8 of them STM32CubeMX does not allow me to select more. Is there any reason for that?
My ...
0
votes
0
answers
154
views
Read only from one channel of the ADC
I'm using STM32CubeIDE and I have two active ADCs with many channels reading, some in regular converison, some injected, etc.
The entire project is autogenerated from stm32 MC Workbench but I added a ...
0
votes
1
answer
356
views
STM32F411 - failing to read backup battery voltage (VBAT)
I am doing some development on a Weact STM32F411 black pill. Most of it has gone fine. However I am trying to read the voltage on the VBAT pin (backup 3V button cell) using the internal ADC, but I ...
0
votes
0
answers
153
views
Initialize and use ADE7880 ADC via SPI in Linux
I am working with the ADE7880 ADC and I am attempting to initialize it and use it to read and write registers via SPI in C on a Linux system. My goal is to capture ADC data through SPI, but I am ...
0
votes
1
answer
134
views
How to obtain stable ADC readings from a DC battery using EK-TM4C123GXL(ARM Cortex M4)?
I am working on a project using the Texas Instruments EK-TM4C123GXL LaunchPad to measure the voltage of a breadboard power supply module(hw-131) . I am using the onboard ADC module to read the voltage,...
0
votes
0
answers
85
views
PIC16F1618 returning ADC values exceeding 10bits
I'm writing my first PIC16F1618 project.
I got stucked in a pretty strange error/behaviour.
This's the repository of the project:
Github repo
The problem is the value resulting from the ADC sampling:
...
1
vote
0
answers
57
views
Error[Pe020]: identifier is undefined in vector table for RTOS-based ADC Interrupt
I'm doing a training program for embedded development, and right now I'm working on setting up an ADC interrupt in an RTOS environment in IAR Embedded Workbench.
I'm running into a problem when I try ...
0
votes
0
answers
37
views
ESP32-WROOM ADC Issue: Sudden Failure in One PCB
I'm encountering a peculiar issue with an ESP32-WROOM ADC on a custom-designed PCB. The ADC has suddenly stopped working on one board, while it functions fine on others. Our design incorporates a ...
1
vote
1
answer
49
views
Arduino Code is acting weird(Timer keeps working, Printed ADC values always zero)
I am using Arduino Mega Pro, in the code I am reading 2 LM35 sensors using ADC and printing the value every 1 sec, and I am counting that 1 sec using a timer.
But, the two sensors are giving me zero ...
0
votes
0
answers
63
views
STM32H745 SPI Optimization || ADS7046
I'm working with STM32h745 SPI to interface adc ADS7046. I trying to achieve sampling rate at least 2msps.
Below I attach some snap for SCLK and CS signal. i trying to minimize time between sclk ...
1
vote
1
answer
223
views
Comparator model in simulink
I want to compare a number to another: if the comparison is true the current value must pass but if not it must stop. But I can't do this idea because the output of the compare block is boolean so if ...
0
votes
0
answers
69
views
WPF: Long-running task running in a new thread fails to respond to UI's stop signal
This is a signal acquisition program where getDataEx is used to collect signals. When the start button is clicked in WPF, getDataEx function runs in a background thread, and the collected data is ...
0
votes
2
answers
259
views
Netscaler Regex syntax to return last word
I am trying to extract the last word from a user attribute string.
The user attribute is AAA.USER.ATTRIBUTE(7)
The attribute value string is e.g. "ord1 ord2 ord3 ord4"
If I use the ...
0
votes
0
answers
143
views
The STM32G4 ADC and SPI slave conflict, this causes the ADC register to sometimes read a value of 0
The chip I use is STM32G473VC, which is configured with 7 channel ADC and SPI slave station
When the SPI DMA transmission is not started, the ADC works fine.
However, when the SPI DMA transfer is ...
0
votes
1
answer
330
views
How make ADS1115 send ALERT pulse?
I am working on a PIC32 with an ADS1115 https://docs.rs-online.com/85d7/A700000007080221.pdf#page=28&zoom=100,0,96.
I put the ALERT pin of the ADS on an external interrupt of the PIC32. I nerver ...
0
votes
0
answers
134
views
ADC Conversion Never Completes in STM32 Using DMA
I am working on an STM32 project where I'm trying to configure the ADC to continuously convert and use DMA to transfer the results. Despite setting everything up according to the reference manual, the ...
0
votes
1
answer
44
views
How can I add analogRead to optiboot bootloader for ATmega2560?
I have a custom PCB with ATmega2560. I use optiboot as bootloader and I made some changes.
I allready enter in bootloader if soft reset was done.
Now I want to enter in bootloader if the 5V pin is ...
0
votes
1
answer
165
views
ADC vs Service Account for OAuth2 Token for REST APIs
When I use Application Default Credentials to access GCP resources either through REST API or Java SDKs, I need to run re-authenticate every day using the "gcloud auth application-default login&...
0
votes
0
answers
571
views
STM32L476 ADC always displaying the max value 4095 every conversion
I am implementing an ADC on an STM32L476 to read a voltage value from a GPIO pin. I am not using HAL for efficiency reasons so I am doing it bare metal. However, every time I read a conversion I get ...
0
votes
1
answer
554
views
STM32 ADC DMA low raw/Voltage readings
I am experiencing the following problem. When I setup an ADC with DMA for 5 channels, I get lower readings than the expected ones.
We have PCBs of the same batch in 3 countries, but only the ones ...
0
votes
0
answers
256
views
Using MAX 9814 PCM data to create a .WAV file
I have a MAX 9814 microphone/amplifier attached through ADC to my Raspberry Pi Pico WH. I am trying to get it record audio (specifically into a .wav file). I am struggling to understand the digital ...
0
votes
1
answer
73
views
Blackpill's adc read error when trying to read an NTC
Devboard: Blackpill WeAct v3.0
MCU: STM32F401CEU6
IDE: Platformio
Core: STM32duino
I'm trying to rean an NTC using a simple voltage divider with a capacitor for filtering as shown in the circuit ...
0
votes
1
answer
106
views
Why 12 bit ADC output of NUCLEO64-STM32L073RZ fluctuate over 20 steps?
I am using the NUCLEO64 Board STM32L073RZ with current sensor IC ACS725. I am using the following ADC and Timer configuration for STM.
ADC were configured for auto triger using timer2. Clock frequency ...
0
votes
1
answer
142
views
Issue Converting C2000 F28379D Sample to F28335 - ADC Block Error
I recently downloaded a sample file for the C2000 F28379D from Texas Instruments and successfully viewed it (referred to as image1). I attempted to adapt this sample to work with the F28335 by ...
0
votes
0
answers
217
views
Receiving corrupted data while sending large data from STM32 to PC over UART
My project is very simple, use a microcontroller to read some analog signal for a certain period then send the data to PC. I am using STM32F756 nucleo board. I have configured one ADC in DMA mode to ...
0
votes
1
answer
130
views
Multithreading with Specified Condition in Python
I am currently working on a Raspberry Pi project where I am using an analog to digital converter (ADC), and in my code, I would like the ADC to receive information continuously and fill a list with ...
-2
votes
1
answer
136
views
Find the phase difference of a sine wave in verilog . Sine wave is represented in 16 bit binary in 60 address location of the ram . Brief alogarithm
frequency of the sine wave is 1 khz .
Max Amplitude of the sine wave is 4.97 V in IEEE 754 floating point format
Similarly other values values of the wave which is converted in to 16 bit binary .
Want ...
0
votes
0
answers
130
views
Problem with STM32F407VET6 ADC via CMSIS. The ADC returns zero values
I am configuring the ADC to sequentially digitize the inputs ADC9, ADC14, ADC15, ADC6, ADC7, ADC8 (pins PF3, PF4, PF5, PF6, PF7, PF8). The controller pins are also configured. I also allow interrupts ...
1
vote
1
answer
2k
views
STM32 ADC: Continuous conversion (DMA) vs. discontinuous conversion accuracy
I am writing code for a STM32G030 microcontroller.
I'd like to use the ADC on one input channel.
I observe, that the accuracy of ADC conversion results is way better in discontinuous conversion mode (=...
2
votes
1
answer
358
views
White noise but no sound // Recording audio from electret microphone preamp on Raspberry Pi Pico (ADC) // Micropython
I am pretty new to the microcontroller game. Recently I am trying to record audio on a Raspberry Pi Pico from an analogue electret microphone. Thus, I have built a (nicely working) preamp for the mic ...
1
vote
0
answers
237
views
ESP32 Microcontroller ADC conversion problems
I've got issues with ESP32 ADC conversion. There is too much noise and interference. For example its measures are flying around for +-50 in normal conditions when the measurement should be constant. ...
0
votes
1
answer
134
views
On TM4C123GH6PM Launch Pad, is my ADC process conflicting with main? Changing LED
The code should do as follows, initialize adc so it can communicate with the external temp sensor, wired to breadboard. It is doing so, and I am getting accurate temperatures.
Based on that ...