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.

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. A sampler is a subsystem or operation that extracts samples from a continuous signal. A theoretical ideal sampler produces samples equivalent to the instantaneous value of the continuous signal at the desired points. The original signal is retrievable from a sequence of samples, up to the Nyquist limit, by passing the sequence of samples through a type of low pass filter called a reconstruction filter.

64 questions
5
votes
4 answers

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". To my surprise there is not even a start to make…
Jot
  • 3,276
  • 1
  • 14
  • 21
4
votes
1 answer

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(); if (millis() > t + 1000) { value_old =…
3
votes
2 answers

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 very high sampling rate (sampling rate has to be…
3
votes
1 answer

Arduino Due: Interrupt-based ADC hangs processing

I am trying to build an oscilloscope using an Arduino Due and an LCD. I have the LCD running perfectly and started working on using the ADC peripheral to sample signals. Here's what I have so far: #define SAMPLE_BUFFER_SIZE 800 volatile int…
Alex
  • 129
  • 1
  • 8
2
votes
2 answers

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 the…
C.SH.K
  • 45
  • 6
2
votes
2 answers

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. Each arbitrary signal is indicated by a push…
2
votes
2 answers

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 transformer. I will use a 24V/50W soldering iron…
beard999
  • 93
  • 8
2
votes
2 answers

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 external reference voltage of 50mV on the AREF pin…
2
votes
2 answers

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. The AD7980 can run up to 1 MSPS, and I know I…
Martin.E
  • 23
  • 4
2
votes
1 answer

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 through putting a Serial print there. void…
Dzung Nguyen
  • 417
  • 1
  • 8
  • 17
2
votes
3 answers

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 ////////////////////////////////////////////////////////////////////////////// this is code const byte adcPin = 0; …
2
votes
0 answers

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 currently set the TCNT1 timer to /1 prescaler for…
Jeff
  • 121
  • 1
2
votes
1 answer

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 guitar plugged into an amplifier (about 10x) +…
bhashimoto
  • 23
  • 4
2
votes
3 answers

Integration of signal

In my house, I have a low voltage AC signal (0-10V) that is proportional to the amount of current that is drawn at any moment (or as it is presented: kW) (europe, 50Hz). Presently, it is just shown as a dial in my kitchen, of course I would to log…
MortenSickel
  • 143
  • 8
2
votes
4 answers

Connect HX711 to a three wire load cell

I have the following load cells: I'm using the following HX711 amplifier Every guide i can find on the internet describes how to connect a load cell with four wires to the amplifier. How can i connect a load cell with three wires to the…
Peter D
  • 121
  • 1
  • 1
  • 4
1
2 3 4 5