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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
147 views

Teensy 4.1 Synchronized PWM - ADC sampling

I'm looking to drive a high side driver at PWM frequency of 200Hz on a Teensy 4.1 with variable duty. The high side driver current sense pin is connected to an analogue pin on the Teensy. I want to ...
Joe's user avatar
  • 59
0 votes
2 answers
544 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 ...
Farzaneh's user avatar
-3 votes
1 answer
158 views

Using internal voltage reference for sensor

i am using 3.7~4.2V lithium battery. I am using internal voltage reference to read constant battery voltage as we know that the battery voltage level depletes overtime. The problem is that my sensor (...
electro_nooobbbb's user avatar
2 votes
2 answers
223 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 ...
C.SH.K's user avatar
  • 45
4 votes
1 answer
468 views

How to determine when a sensor's output signal changes significantly?

Starting with an analog signal from any sensor, how do I automatically determine if there is a real signal change or a reset? Below is the sample code that better explains my goal: value = sensorRead()...
boromyr's user avatar
  • 43
1 vote
1 answer
377 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 ...
AmrSherbiny's user avatar
0 votes
1 answer
58 views

Controlling Arduino through python

How to set the registers of Arduino through python code to vary the sampling rate of Arduino? Can we control Arduino through python?
varman's user avatar
  • 21
1 vote
1 answer
94 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?
varman's user avatar
  • 21
0 votes
2 answers
82 views

Is defining a function improves speed rather computing average for each analog input separately

My Arduino controller reads data coming from four different sensors. After the data is read, I individually compute four input average values. I understood that I am having the same lines of code ...
Mainland's user avatar
  • 115
0 votes
1 answer
316 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 ...
JTaft121's user avatar
0 votes
2 answers
502 views

Arduino FFT results of "beautiful" signal seem inconsistent

I have a BEAUTIFUL doppler radar signal here from a 24.050-24.250 GHZ sensor measuring a very small object at 143 fps speed (speed from another 10 GHZ radar) in a measuring area of about 300mm-500mm ...
TommyS's user avatar
  • 71
0 votes
2 answers
1k 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 ...
Basit Ali's user avatar
1 vote
0 answers
118 views

Problem with sending sound sensor data to app using ESP32 over BLE_UART

I was working on Adafruit Electret Microphone Amplifier - MAX4466 with Adjustable Gain and ESP32. I want to send data to an app using BLE UART I have printed data to the serial monitor or serial ...
Rajbir's user avatar
  • 17
1 vote
0 answers
104 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 ...
Dema Govalla's user avatar
2 votes
2 answers
79 views

Dealing with a Signal Source

The following circuit is a simplified version of a more complex system. For testing purposes, the 555 Timer was added to serve as a test signal source with frequencies set by the resistors in series. ...
David Wisniewski's user avatar
1 vote
1 answer
190 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 ...
Plutonian Fairy's user avatar
0 votes
0 answers
3k views

Reading TCD1304 linear CCD Sensor

I want to read the TCD1304 linear CCD sensor with an ESP32 and I'm facing some problems. As a first "warm-up" and to get familiar with this sensor I tried to generate the sensors input ...
Sim Son's user avatar
  • 1,859
2 votes
2 answers
991 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 ...
beard999's user avatar
1 vote
1 answer
152 views

Maximum frequency that can be converted with Arduino Uno?

Arduino Uno Board use successive approach ADC of 12 bits and 16 MHz frequency clock. What is the maximum voice frequency can be converted using arduino uno board? I want the step by step solution with ...
Nimesha Dilini's user avatar
0 votes
1 answer
150 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 ...
user avatar
0 votes
1 answer
536 views

Using Arduino to Record analog signals with SPI ADC + Sampling Rate Issue

I am using Arduino UNO to Read 8-channel, 24-bits resolution Analog signals using ADS1299 Analog-fornt-end. ADS1299 use SPI interface to talk with Arduino. Currently, I can record the analog signal ...
Abed's user avatar
  • 11
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 ...
Hector Ta's user avatar
1 vote
1 answer
157 views

Measure voltage changes with unknown baseline [closed]

I would like to monitor an audio stream and detect when it is "active" and music is playing or when it is "inactive" and is silent. What is a good way to measure when an audio stream changes state and ...
Aaron Ciuffo's user avatar
1 vote
0 answers
617 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 ...
dandev's user avatar
  • 53
1 vote
0 answers
390 views

AD7606 DAQ and datalogging

I'm making a Data Acquisition System for force impact usign an AD7606 from Analog Devices, an Arduino DUE and a load cell. I already tested it following this guide an making the proper changes for ...
Luis Fernando Hernndez Palacio's user avatar
-1 votes
1 answer
133 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 ...
xakepp35's user avatar
  • 133
1 vote
1 answer
429 views

Arduino Uno ADCH register stuck at 255 when read from ISR

I'm working on a project that will essentially become an oscilloscope in the long run. I am following this guide. My code is uploaded here for more reference. In my .ino file I have called functions ...
CookieMonster317's user avatar
0 votes
1 answer
1k 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 ...
user1949366's user avatar
0 votes
2 answers
308 views

If I use a biasing circuit for a signal going into an analog input pin, will it affect the ADC operation?

If I have a single 100Hz AC signal biased by two 1 M-ohm resistors (as per schematic below), and then output to an Arduino UNO analog input pin, with the UNO sampling at around 1 kHz using delays, ...
plu's user avatar
  • 123
0 votes
1 answer
32 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 ...
supreme_leader's user avatar
1 vote
1 answer
100 views

Sampling and serial transfer

I am trying to get a sampling rate of over 10k Samples per second as well as send each sample over a serial line. Taking a sample and putting it on the serial line each time took too long. I am using ...
supreme_leader's user avatar
2 votes
2 answers
919 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 ...
Dr Krishnakumar Gopalakrishnan's user avatar
-1 votes
1 answer
163 views

External ADC reference when using MATLAB support package for Arduino

I am using the MATLAB support package for Arduino. However, I need to configure the ADC reference to external. MATLAB documentation doesn't really explain how to do this? Is there any way I can use ...
Dr Krishnakumar Gopalakrishnan's user avatar
-1 votes
2 answers
388 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. ...
gamma's user avatar
  • 161
1 vote
2 answers
711 views

Sampling/transmission limits for USB and Arduino UNO R3

I'm very new at this and I need some help. This is a college project that I must do and not even the professor knows for certain if it is possible. I have to sample two signals at a fixed sampling ...
Lucas Mol's user avatar
2 votes
2 answers
818 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. ...
Martin.E's user avatar
0 votes
2 answers
715 views

Reducing noise and finding sampling rate

I have Arduino Due R3 (84MHz) and I am trying to find the mean of value from AnalogRead. I have to set the sampling rate of 8000 samples/second with 4 channels. I tried using for loop for this purpose....
Sam Thornton's user avatar
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". ...
Jot's user avatar
  • 3,246
2 votes
1 answer
2k views

Speed of reading I2C

How long does it take to read I2C? I'm reading data from I2C sensor through a 20Hz timer interrupt. The interrupt handler only set the readSensorFlag, and I double checked that it happens at 20Hz ...
Dzung Nguyen's user avatar
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 ...
Frank Donald's user avatar
1 vote
3 answers
757 views

Specific noise while using arduino ADC in free running mode

To make an oscilloscope in matlab environment, for data acquisition on arduino side, when inbuilt analogRead() is used, it's working fine, but with very low sampling rate, that aliasing is clearly ...
Wupadrasta Santosh's user avatar
3 votes
2 answers
787 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 ...
tahsin314's user avatar
  • 131
0 votes
1 answer
957 views

Amplified piezo sensor wiring problem

I am trying to amplify the signal from an Adafruit Small enclosed piezo. The piezo is working using the Arduino Knock example but I want to increase the sensitivity using an amplifier. The wiring ...
GBG's user avatar
  • 178
2 votes
3 answers
603 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 ///////////////////////////////////////////////////////////////////...
Nightky Sin's user avatar
2 votes
0 answers
705 views

Using Analog Comparator on Uno to Read Differential Voltage Signaling

I am trying to use the Arduino Uno to read an AVCLan bus on a Toyota vehicle. Logic 0 is when +/- drive are 120mV or more apart, and logic 1 is 20mV or less. See Toyota AVC-Lan description. I ...
Jeff's user avatar
  • 121
1 vote
1 answer
48 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 ...
KIM's user avatar
  • 19
0 votes
1 answer
2k views

Sampling rate of analog read

I have a simple following analog reading code: void setup() { // initialize serial comms Serial.begin(9600); } void loop() { // read A0 int val0 = analogRead(0); int val1 = analogRead(1); ...
Dzung Nguyen's user avatar
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 ...
bhashimoto's user avatar
1 vote
1 answer
422 views

how do you capture the top value in a fallen edge in analogs data (flex sensor)

Guys i'm working with a flex sensor and I'm trying to capture a specific value which is the moment before the user lets go of a flexed flex sensor and its represented as the top point of a falling ...
Raed's user avatar
  • 173
0 votes
1 answer
300 views

How to interpret analog values sent to Arduino from line scanner?

So I have a line scan camera attached to my Arduino Mega and I'm trying to send it a digital clock impulse and get an analog output back. The line scan camera is supposed to return 128 pixels. So far ...
Fortuna Iwasaki's user avatar