Questions tagged [analog-sampling]
In signal processing, sampling is the reduction of a continuous-time signal to a discrete-time signal. A common example is the conversion of a sound wave (a continuous signal) to a sequence of samples (a discrete-time signal). A sample is a value or set of values at a point in time and/or space.
64 questions
1
vote
1
answer
91
views
Arduino Nano ADC input selection
The maximum ADC sample rate for the '328p, using the default prescaler of 128, is given as roughly 10000 samples per second. Maybe I've missed it, but I can't see whether that is the total rate for ...
0
votes
2
answers
1k
views
RMS Voltage Value
it has been a week that I'm struggling with the arduino to measure the RMS Voltage value. By OSC I can see that the RMS voltage value changes around 3V. But I can't see it by serial port. I think my ...
2
votes
2
answers
280
views
How do I solve the sensor’s abysmal abnormal output?
Problem description
When XIAO microcontroller is connected to the sensor signal output pin, keep printing unexpected values.
Sketch
I haven't sensor circuit diagram, you can machine translate and read ...
1
vote
1
answer
612
views
Sending analog sensor data to laptop at 1kHz via USB
I am reading analog sensor data using Arduino nano, and the required sampling rate is around 1kHz. I am using the AnalogReadSerial example provided by Arduino with a delay of 1ms, so I am expecting to ...
1
vote
1
answer
126
views
Arduino pro mini sampling rate
what are the possible sampling rate the user can set in Arduino pro mini using ADCSRA registers.
I want to set my desired sampling rate through registers, is it possible?
0
votes
1
answer
498
views
MCU Recommendations for Audio Pitch Shifting
I'm looking to use a MCU for audio sampling. I want to sample incoming audio and pitch shift it (without speeding it up/slowing it down). A bit about the build.
I'm planning to make a circuit board ...
0
votes
2
answers
2k
views
Portenta pinouts for ADC
I wanted to have your comments about one of my questions.
I am currently working on the sketch for the Arduino Portenta H7. However, due to my poor electrical background, I would like to ask your ...
1
vote
0
answers
118
views
How to implementing timer interrupt with a sensor device using A0 and A1 pins
I was wondering if there is a way to program a timer interrupt to collect sensor data at a specific sampling rate?
I want to attach two strain gauge sensors to A0 and A1 pins and collect the data at a ...
1
vote
1
answer
243
views
Noise in Analog Read Serial from an instrumentation amplifier(ina122p)
I am trying to read the values from a simple EMG circuit (with an INA122P) using the analogRead() and plotting in the plotter using an Arduino nano v3. I am powering the ina1222p from the 5v pin of ...
2
votes
2
answers
1k
views
Arduino PID controller for Triac
I am designing a new soldering station which will use a 24 V ac soldering iron.
I started to make some research and I designed a few steps of the soldering station. I will use a 24Vac/100VA toroidal ...
0
votes
1
answer
177
views
Increasing range of a DC-offset signal (software)
I am trying to read a signal with a DC offset of 511 (as seen by the ADC). The signal's tiny with regards to the offset, and I'm feeding it to a library that does a Fourier transform on it. It comes ...
0
votes
1
answer
1k
views
Sampling rate of multiple analog pins on Arduino
as I checked on Arduino website, they mentioned all boards: UNO, Nano, Mini, Mega have maximum sample rate 10kHz for each analog pin. So my concern is:
1) is there any difference between sampling ...
1
vote
0
answers
663
views
Optimizing Teensy 3.6 for data sampling?
So, I have a very basic project where I cycle through 8 IR individual transmitters. After setting the individual transmitter high, I cycle through all 8 IR receivers and print their values, RX_CYCLES ...
-1
votes
1
answer
175
views
Voltage meter ADC + serial: Bytes lost during communication
I want to make a simple digital voltage monitor. So I have a sketch:
void setup() {
Serial.begin(115200);
}
void loop() {
int val = analogRead(A4); // read the input pin
val = 1;
byte ...
0
votes
1
answer
2k
views
Arduino Due ADC negative voltage
I’m trying to sample an AC signal on the Arduino Due. The AC signal will never exceed +-80mv across a frequency range of 6-833Hz. Current is negligible.
I believe there are clamping diodes to protect ...
0
votes
1
answer
51
views
Improper sampling of wave [duplicate]
I am using Arduino Mega 2560 to sample and serially send a square wave. I am using Processing 3.3.6 for logging the data to .csv file. I am receiving about 6k samples at the moment. When I try ...
2
votes
2
answers
1k
views
Lowest voltage applicable on AREF pin on Uno and Mega
I need to measure an Analog signal in the range of 5-30 mV.
Naturally, using the internal default 5V reference leads to very poor measurement resolution. I would like to use the capability to use an ...
-1
votes
2
answers
429
views
polynomial change of LED brightness arduino
I try to change the brightness of an LED following the formular in out1. I'm pretty sure that something is going wrong because it doesn't really change its brightness and it never stops lightening. ...
2
votes
2
answers
909
views
Optimizing ext. SPI ADC for speed and verify the speed
So I have a project where I will be using an Arduino Leonardo and an external ADC (AD7980) to run a 16-bit (18bit) conversion and transmit it to the Arduino and then out on USB as fast as possible.
...
5
votes
4
answers
4k
views
Library to set internal analog gain of the Arduino?
My original question was if there is a library that covers the internal comparator and differential and gain modes for the Arduino Uno, Mega 2560, Leonardo, Due, Zero, M0.
The answer is obvious: "No". ...
1
vote
2
answers
4k
views
Interfacing TRRS headphone to Arduino Uno
I have been working in a Arduino project lately which requires human voice input to Arduino with some processing Arduino need to perform specific task. Simple sampling of incoming signal and ...
3
votes
2
answers
863
views
ADC with better performance
I need to sample voltage at a very high rate (say for like 10000 Hz) and with a very good precision(at least 10-12 bit ADC will do). So I am in need of an Analog-to-Digital Converter(ADC) which has a ...
2
votes
3
answers
643
views
AC meter By ADC timer interrupt from Nick Gammon
I want to read ADC from the pin A0 and A1. I have written in this code, however.
I took this code came from Nick Gammon
Thank You
///////////////////////////////////////////////////////////////////...
1
vote
1
answer
67
views
Is possible to process analogue inputs with variation frequencies in MHz?
Is it possible for Arduino boards to accurately process analog inputs that vary at MHz frequencies?
If possible, which Arduino board would be most appropriate for such application?
What ...
2
votes
1
answer
2k
views
Audio sampling and serial communication
tl;dr: The sample rate of my code seems to be lower than what I expect it to be. How can I fix this?
Director's cut:
I am trying to sample audio data and send it via serial. The setup consists of a ...