694 questions
0
votes
1
answer
277
views
stm32f407 ADC cannot read data
i need some help.
i built custom board and had problem with my adc reading, it's not software problem...yet.
my question is really hardware. it might be my lack of understanding from reading STM32f407 ...
0
votes
0
answers
53
views
I don't understand what's wrong with this micro python
I've tested this script, and it works on independent servos, but when I add more, it stops working, is this something I'm being an idiot about? Or is there an actual problem?
I tried to assign the ...
3
votes
2
answers
2k
views
STM32WL55JC1 - HAL ADC wont change channels
What I want to accomplish
So I want to accomplish the following:
I have 3 FreeRTOS-Threads which all shall read one of 3 (5) channels of my ADC. I want to poll the ADC. The Threads then enter the read ...
1
vote
0
answers
150
views
Microphone input RMS measurement on Android device
I want to measure the RMS value of the input audio signal over periods of 100-200 ms on an Android device without recording the audio to a file. This is not to measure the noise level, I only need the ...
1
vote
1
answer
297
views
How do you run a SCL file in MPLAB without a "Run SCL" button
I have an assembly code for PIC18F458 that gets data from channel 0 (RA0) of ADC and displays the result on PORTC and PORTD.
Therefore, I am trying to stimulate the RA0 pin on a PIC18F458 using a SCL ...
0
votes
1
answer
200
views
Too many open files: /dev/spidev0.0
I have been trying to read a channel by interfacing MCP3008 with Raspberry Pi zero w through SPI. I am using the Adafruit blinka lib to do so. After giving data for some time it shows the error [Errno ...
0
votes
1
answer
2k
views
STM32 ADC Reading Instability
I am reading 5 ADC channels in polling mode. For each channel I get 10 samples and calculate the average.
Looking for the samples array, it is visible some instability. First readings have higher ...
0
votes
1
answer
1k
views
ESP8266 analogRead() microphone Input into playable audio
My goal is to record audio using an electret microphone hooked into the analog pin of an esp8266 (12E) and then be able to play this audio on another device. My circuit is:
In order to check the ...
0
votes
1
answer
41
views
Is this PCM1860 connected ok for hardware control mode?
I connected the PCM1860 ADC in this manner. I expect data on my oscilloscope on the digital output (pin 18). I have so far only seen square wave on the clock pins but nothing on the data pin. Is this ...
1
vote
0
answers
76
views
Using an Openmote-B ADC
I'm working on signal acquisition and transmission using Openmote-B. I have an analogue signal from a sensor, that is to be transmitted using an openmote. Is it possible to directly feed the analog ...
2
votes
1
answer
73
views
Algorithm to mimic analog device
Analog device provides instant result as you can see at this simplified picture. Is there known algorithm that solves the same problem when I have similar situation in digital world, with arrays of ...
0
votes
0
answers
153
views
Current Measurement from ADC - Remove Offset
Support on ADC current measurement and Offset removal.
I am kindly asking for support and details in understanding the concept of dc-offset removal from an ADC current measurement in a motor drive ...
0
votes
0
answers
307
views
STM32/ESP32/PIC32 + multiple SPI devices + Ethernet
I am developing a measurement system, comprised of a MCU (being STM, ESP or PIC), multiple (let's say 8) ADCs sending data over SPI. ADCs are to be triggered using a SYNC signal so that they sample at ...
1
vote
0
answers
705
views
How to setup the ADC & DMA on a dsPIC33?
I like to sample an analogue mic sample. The sampling should be synced with the I2S master clock. Since I like to do some DSP after, a block of samples should be processed while another block should ...
0
votes
1
answer
277
views
ESP32-S2 TFT Feather - analog to digital in Arduino
I have a gas sensor that I am trying to read. I have connected the sensor to the analog input of ESP-S2 TFT Feather. When I change the analog to digital and read the measured voltage, the measured ...
0
votes
0
answers
119
views
Kissfft from ADC, Microcontroller with C( Buffer problem)
Hello im having a bit of trubble with getting KissFFT to work on my ATmega32a. I am pretty sure it's a problem with how im handling my buffers, but im not completly sure tbh :S
Edit:
Sorry im new here ...
0
votes
1
answer
607
views
Reading 4-20ma transmitter stm32 adc
I try to use 4-20 ma pressure transmitter
With stm32 internal adc
Problem reading is flacuating too much I have to take average for 128-256 reading to take stable reading
Is that normal solution or ...
1
vote
2
answers
4k
views
How are ranks interpreted in STM32 ADC multi-channel scan mode?
The HAL for my stm32f10x provides an adc interface with the following mode selector by enabling ScanConvMode, which determines whether multiple channels or a single one are processed by the ADC, or ...
-1
votes
1
answer
140
views
differnce in ADCs of Atmega and STM
In STM32F103 there are 2 ADCs and in ATMEGA328 there are 5 ADCs, now, if I am using 3 of the 5 ADC channel in AVR to measure three different analog inputs, is it same as using 3 regular groups of ...
0
votes
0
answers
80
views
What is the expected behaviour when trying to read from wrong ADC channel (i2c protocol)
I am trying to read a value from a light sensor using an i2c protocol. It goes into my ADC through the channel 1 (that's what's written).
I read the data like this:
data = i2cbus.read_i2c_block_data(...
0
votes
1
answer
1k
views
Displaying ADC values in LCD1602 using STM32
I'm working on a project that calls for displaying ADC values on an LCD screen. I don't know much about coding because I'm new to STM32IDE. In essence, I'm utilising a (0–25 v) voltage sensor and an ...
0
votes
0
answers
349
views
Why i am not able to read data countinoulsy from in_voltage0_raw channel in linux ADC read
Here i pasted my code, the problem i am facing is i can able to read the data but i can't able to read change in data in in_voltage1_raw ,
can you please anyone help me out to how to solve this ...
0
votes
0
answers
71
views
could not get the desired output in MPPT
I am trying to program an MPPT solar charge controller for a constant output to charge the connected tubular battery. I have used an ADC pin to get the output voltage through feedback and generate the ...
3
votes
2
answers
2k
views
Why voltage from Raspberry Pi Pico ADC is not equal 0, when nothing is connected to the pin?
I was trying to read some voltages from a sensor, but before doing that, I checked how readings would look like, when nothing is connected to pins.
Here's my code based on examples:
#include <stdio....
0
votes
0
answers
307
views
Not getting correct values of potentiometer in the channel1 and channel2 in stm32f103
I have been trying to read values from two potentiometers connected to channel1 and channel2 in ADC1 and read the values through UART in a serial Terminal,but unable to do it. It either comes random ...
0
votes
1
answer
1k
views
Unable to read multiple channels from single ADC with DMA [bare metal]
I'm trying to read two ADC channels sequentially from my STM32F407ZGT6 using DMA. I'm just trying to get the values from two potentiometers independently on each channel. Although the program doesn't ...
0
votes
1
answer
1k
views
How can i use SPI on Arduino Due to communicate with AD7124-8 correctly
I want to read data from AD7124-8 with arduino Due via SPI. I found several libraries, but i dont get anything back from my ADC modul. By using an Oscilloscope i made sure my Arduino sends data via ...
1
vote
3
answers
719
views
dsPIC33 ADC1 gives incorrect converted values
Good morning,
I am using the ADC1 of a dsPIC33EP512GM604 and getting incorrect converted values.
To check this I made a cycle of 10 consecutive sampling/conversions.
The first value is always quite ...
0
votes
0
answers
147
views
How to measure voltage above Reference Volt using MSP430?
I am learning to use MSP430 FR5994 for microcontroller development.
I wish to measure an external voltage using the built in ADC, the external voltage is in the range of 2.2V to 3.3V. The reference ...
0
votes
1
answer
317
views
DFRO316 MCP3424 and STM32
I am trying to know the status of MCP3424, either it is connected or not to the master STM32 with defined address 0x68. The ADC module gets connected with the Arduino in same address but using STM32, ...
4
votes
0
answers
286
views
Logging data from High Precision AD/DA board using Raspberry Pi 3B
I have a High Precision AD/DA board from waveshare with Raspberry Pi 3B (running on Raspbian). With this setup, I get a sampling rate of above 20KPS at my terminal display.
However, I can write only ...
0
votes
2
answers
2k
views
ADS1115 and raspberry pi pico
is there any way to use the ADS1115 with a raspberry pi pico?, I'm in the middle of a project where I need 4 analog inputs but the pico only has 3, I'm using circuit python btw... any help is ...
0
votes
1
answer
1k
views
STM32F4 - Sensor data processing - ADC -> USB/Ethernet -> PC - USB Oscilloscope
I am currently working on a project about "Digitization of sensor signals". The sensor signal is to be digitized with an ADC and passed on to the PC via an interface, e.g. USB or Ethernet. ...
0
votes
1
answer
859
views
Reading multiple ADCs with STM32F446RET
i am using the Nucleo64 STM32F446 board and i am trying to read out 3 temperature sensors with the polling method and via DMA but with both methods i can get only 1 correct value. The voltage at every ...
0
votes
0
answers
231
views
What is wrong with my 12 bit ADC SPI code?
So I am trying to read data from a strain load cell, which has a 2mV/V output, using the INA128P amplifier and LTC1296CCN ADC. The ADC datasheet states it works in half duplex operation and suggests a ...
0
votes
0
answers
190
views
stm32g491cet6 ADC interruption and Hal_Delay not working
I have a number of issues with stm32g491cet6.
When using the ADC interrupt, it remains in an infinite loop. When using the HAL_Delay () function, an infinite loop also results.
The code is simple and ...
0
votes
1
answer
233
views
Convert temperature from 3 byte two's complement
I'm trying to read internal temperature of an ADC (ADS1235 from Texas Instrument) using the Raspberry Pi Pico running MicroPython. SPI communication between Raspberry Pi Pico and ADC works (I used an ...
0
votes
1
answer
600
views
Havig trouble with SPI in PIC24FJ256GB412
I am trying to configure a PIC24FJ256GB412 to use the SPI interface with an ADC module(ADS114S08). And now, I can view data by oscilloscope(by measuring the SDI pin). But the SPI1BUFL didn't receive ...
1
vote
1
answer
4k
views
How to set up circular DMA for continuous mode ADC on STM32F411?
I'm using CubeIDE for development. I'd like to sample an analog pin with a consistent sampling rate and I'd like that sampling rate to be as high possible. Hence I configured PCLK2 to run at 72 MHz, ...
0
votes
1
answer
1k
views
SMT32H7 (H745/H755): ADC "internal Error" with HAL
I'm using an STM32H755 (on NUCLEO-Board) with CubeIDE and trying to set up an ADC with HAL.
Without any changes to the default ADC and clock setup, the ADC goes into "error internal" state ...
0
votes
2
answers
1k
views
(gnuradio) Is there a way I can use "python block" to make a source?
I have an ADC module with 1 MHZ sampling rate.
Here is the URL of his sample program
I will give him a 40khz carrier signal as an analog input. I want to write the voltage signal he received into the &...
0
votes
1
answer
369
views
stm32-h743zi nucleo-144 ADC
i have a problem with getting value from ADC on the nucleo144 board. I connected a potentiometer to the pin A0, but the ADC is stuck in the HAL_PollForConversion function and returns 0 if the delay ...
0
votes
1
answer
4k
views
STM32 Multi-Channel ADC. Unexpected behaviour when unpopulated
I have added ADC functionality to my Nucleo-F446RE development board. 4 channels, DMA enabled, scan and continuous conversion mode enabled, DMA continuous requests enabled, varying sample time per ...
1
vote
1
answer
367
views
STM32F334R8: ADC with DMA
Could someone provide me a basic code that just implements ADC with DMA for STM32 please ? I'd like to compare it to my solution that doesn't work.
Thank you.
3
votes
1
answer
16k
views
HAL_ADC_PollForConversion - what exactly is it for?
I've been tinkering around STM32 (F103RB) for a couple of weeks now and one thing I don't get is
HAL_ADC_PollForConversion
function purpose. I mean, I don't see any impact of this function on ADC ...
1
vote
1
answer
4k
views
Use microphone in Raspberry Pi Pico (Micropython)
How can i use micropython firmware alongside a Max9814?
I have written the code below but cant hear clear voice in audacity...
from machine import Pin, ADC
import ustruct , time
analog_value = ...
0
votes
1
answer
1k
views
STM32F334R8: ADC with DMA too slow
I can measure signals and write in memory with DMA but speed is too slow (60 KSPS) while the ADC clock (same as system clock) is at 16 MHz.. I measure the speed but measuring a square signal at the ...
2
votes
0
answers
528
views
Using python to read 8-bit ADC outputs into a Raspberry Pi 4?
I'm using python to read in values from a high-speed 8-bit ADC (the ADS7885 linked here) and convert them into voltages using the SPI0 ports on a Raspberry Pi 4. At this point, I do receive values ...
1
vote
0
answers
863
views
Using esp32 adc1_get_raw() inside vTaskSuspendAll() leads to assert failed
The program needs to take several consecutive ADC measurements without interruption and the WiFi task interferes with that, that is why the scheduler needs to be suspended. However, I get the ...
-2
votes
1
answer
1k
views
Programming STM32H747 ADC in continuous mode using registers only
Within a project of mine, I use DMA to share data between the two cores of the STM32H747. The data comes from an ADC controlled by the core M7.
While testing my DMA, I noticed that the data stored ...