Questions tagged [signal-processing]

Use this tag if your question is related to signal processing techniques (within the Arduino's capability).

Filter by
Sorted by
Tagged with
20 votes
5 answers
26k views

Are there any signal smoothing libraries for Arduino?

I am working on a mobile robot controlled via a wireless 2.4 GHz link.The receiver is connected to the Arduino Uno which serves onboard as the main controller. The most critical (and main) input ...
asheeshr's user avatar
  • 3,837
10 votes
4 answers
2k views

How do you handle sensor drift?

I have a pair of potentiometers, on the Arduino, the output seems to drift, by one or 2 digits, back and forth. I would prefer they were read as one fixed value, without variation when their knobs are ...
j0h's user avatar
  • 882
6 votes
1 answer
2k views

PWM signaling with Arduinos: What is the reason for the ground connection?

This may sound like a very dumb question and I apologise in advance. I've gone through reading about PWM and working on some example sketches to control PC fan speeds using PWM and Arduino. In all ...
Phil's user avatar
  • 455
6 votes
3 answers
14k views

How can I filter out noise from ADC lines without delay or signal change?

I'm working on a project with a joystick and I'm trying to keep everything a simple and low latency as possible. I am reading the pots with the onboard 10bit ADC on the ATmega 32u4 but may be ...
user862's user avatar
  • 71
4 votes
4 answers
3k views

How useful could the Arduino Yun be in computer vision in a robotics project?

I've recently ordered an Arduino Yun and several other components to begin on a small robotics project (based on an old 4x4 RC Truck). Although not mandatory for what I'd like to do, I was wondering ...
cnsumner's user avatar
  • 193
4 votes
1 answer
413 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
3 votes
2 answers
309 views

Code exceeds Uno board memory

I have been stuck for a long time on a piece of Arduino code that performs an FFT on a Photoplethysmogram signal and decides signal quality after that. #include <math.h> #include "...
Divyayan Dey's user avatar
2 votes
4 answers
24k views

How can I generate a sinewave with Arduino Uno?

I would like to generate a sine wave with my Arduino Uno. As far as I know, there is no library for Uno to generate such a signal (correct me if I'm wrong), so the only option available is to write a ...
mickkk's user avatar
  • 271
2 votes
2 answers
300 views

How do I make a proper long string scanner to detect specific tags in a stream of characters?

Here's my code: #include <SoftwareSerial.h> SoftwareSerial BTserial(2, 3); // RX, TX void setup() { Serial.begin(9600); BTserial.begin(9600); Serial.println("Communication with HC-...
JingleBells's user avatar
2 votes
3 answers
3k views

Sum values, store them and print the last value

I have a mass flow meter connected to an Arduino Uno board. I have managed to read the volume flow in L/hour, but now I'm struggling to implement a code that stores the values so that I see the number ...
Physther's user avatar
  • 207
2 votes
1 answer
3k views

Arduino Cross Correlation?

How can I write lightweight cross correlation code for arduino? I couldnt find any solution. The measurement system contains an ultrasonic sensor and a servo that turns from 45 to 135 degree and ...
acs's user avatar
  • 235
2 votes
1 answer
5k views

Sniffing RF signals

I am using an Arduino UNO and an RXb6 (I would link to the data sheet if I could find one) to try to decode a RF Signal that controls a remote outlet. I have the devices connected as you would assume ...
Nick's user avatar
  • 131
2 votes
1 answer
603 views

High frequency audio sampling and storage

I want to use an arduino duemilanove atmega168 for audio signal processing. I can sample the signal at around 38.5kHz using this code. I want to send the sampled data over the serial to a computer for ...
aaa's user avatar
  • 21
2 votes
2 answers
867 views

Arduino audio frequency reader

I have a simple project for my arduino : light some leds when i send a certain frequency from my smartphone through the jack output . For example , I play a simple audio file generated with a ...
Sir's user avatar
  • 23
2 votes
1 answer
169 views

How to separate a specific frequency signal from a summation of a few signals?

I want to calculate THD. SO how do I isolate the fundamental frequency from a signal with harmonics? I have a signal V which is a sum of V1, V2 and V3. V1=A1sin(w1t+phi1), V2=A2sin(w2t+phi2) and V3=...
Krish Ambre's user avatar
2 votes
1 answer
145 views

How can i increase the range of values that a light sensor gives?

I have constructed 2 ceptometers that measure light intensity. Each ceptometer consists of 50 photodiodes that are connected to 2 copper wires (+ and - of the photodiodes are on the same orientation). ...
Dimitrios_Lioilios's user avatar
2 votes
1 answer
275 views

Reading Ground/Open signal wire combonations to power specific LED's - Can it be done?

This might be a super easy question to answer. I ordered an Arduino Uno anyways for the sole purpose to understand this. Would not mind getting a jump on things before it's here. I would like to ...
Cody R's user avatar
  • 21
2 votes
1 answer
133 views

Frequency will not change

I am working on a project where I am trying to get an input signal filtered according to its frequency. I checked the signal before it went into my DSP algorithm to see where the problem was and I ...
user3007's user avatar
2 votes
0 answers
106 views

Arduino NANO RF reciever and Digispark Attiny 85 transmitter issues

I am trying to send RF signal from Digispark Attiny 85 (this one) and receive the signal with Arduino NANO V3.0 ATmega328 (this one). Transmitter and receiver are STX882 and SRX882 (these). Library ...
Le_Peck's user avatar
  • 21
2 votes
1 answer
75 views

Processing doesn't respond to arduino

First of all if I make a wrong sentence this is because my main language isn't english. I have a homework so i am trying to make a radar with Arduino IDE and Processing. I found and wrote the codes ...
Earas's user avatar
  • 21
2 votes
0 answers
2k views

read with Arduino SSI encoder signal

I'm stuck in my project, I try to read an absolute encoders angular position with my Arduino. I used and cabled a differential line receiver and driver between Arduino and the encoder, like explained ...
ian's user avatar
  • 21
2 votes
0 answers
517 views

Real time Cross Correlation...? [closed]

I saw the one of your Answer that dated the 13th May 2015, i want to cross- correlate the vibration signal (with Predefined Signal) to remove the unwanted signals.But i want to do that real time so ...
kaveendra's user avatar
2 votes
0 answers
764 views

3 square wave pulse by 120° phase shift and 3 inverted of each by Arduino

I want to make a three phase inverter (DC to AC) bridge type using Arduino. For that I want to generate three square wave each is 120° phase shifted and other three waves of main three wave forms ...
user110079's user avatar
2 votes
0 answers
411 views

Problem with biased circuit for oxygen sensor (SGX EC410) [closed]

I have designed a circuit for an SGX EC410 oxygen sensor by using these application note -PAGE 4, FIGURE 4 - (http://www.sgxsensortech.com/content/uploads/2014/08/A1A-EC_SENSORS_AN2-Design-of-...
Viktor Scherf's user avatar
2 votes
0 answers
537 views

Which components to built remapping keyboard via USB in + out (remapped)

I know that it's fairly easy to change the emulate keyboard and mouse by Arduino. But I'm quite specific about the goal I would like to achieve hence I would appreciate if you could advise me which ...
Kamil's user avatar
  • 121
1 vote
3 answers
4k views

How to generate Chirp Signal using Arduino

i would like to generate Chirp Signal (Frequency Sweep) using Arduino. i have searched a lot in internet but didn't find anything. Basically, any parameters is also ok. But the concept is what i am ...
user3213767's user avatar
1 vote
1 answer
291 views

Signal sampling: losing data every 103 points when it is recorded in SD

I'm working on a system of acquisition and ECG datalogging with the Arduino, and I'm having the following problem: I'm losing data every 103 points (just 103). No matter the sampling frequency to use, ...
rnt_42's user avatar
  • 13
1 vote
2 answers
258 views

digitalWrite queued signals?

I have this simple code who send a signal to a android phone when I press a button: const int botonPinD = 8; const int relayPin = 12; int retardo = 100; int finBoton=1000; void setup() { ...
Kristian Damian's user avatar
1 vote
1 answer
203 views

Input Capture Mode PPM signal

Greetings to all members of the Forum. I would like to express my deepest gratitude, with respect to the title of this post. The last week I am trying to capture and decode a PPM Signal from an RC ...
k. theodosis's user avatar
1 vote
2 answers
34 views

Generate 5VDC signal when external sensor input changes from high to low

I am new to arduino. I have a project in which I need an arduino to generate a +5VDC signal in response to a change of status, (high/5VDC To low/ground) from an external source. The external ...
Randy Anglin's user avatar
1 vote
2 answers
491 views

Connecting Function Generator to Arduino

I want to send a function generator's signal to an Arduino UNO Analog pin. Can I use an Oscilloscope probe connected to the function generator output BNC, set to 1x to connect to the Arduino headers ...
Harini's user avatar
  • 55
1 vote
1 answer
1k views

Send big amouts of data to PHP script via gsm module SIM800L

I'm looking for a way to get lots of sensory data from my Arduino Micro to a PHP script. My current attempt is using the following AT-commands: Sent: [AT+HTTPPARA=URL,www.example.com/newData.php?data=...
Cowboy_Patrick's user avatar
1 vote
1 answer
2k views

How to vary the frequency of a PWM sinewave with arduino uno?

I'm generating a sine wave using a table, a PWM pin and an RC filter on the output. I would like to be able to control the frequency of the sine wave, how can I do that easily? By the way, which is ...
mickkk's user avatar
  • 271
1 vote
1 answer
284 views

Slave to Send Data after Receiving Command using I2C

I want to have my Slave Arduino to send signal to Master after the command was made. But the Slave Arduino does not proceeds to sending the signal after doing the command. What is wrong with my code? ...
Julius's user avatar
  • 91
1 vote
1 answer
861 views

Arduino Square Wave Phase Shift by 270 degrees

I am using this code to generate a square wave with Arduino and shift it by 90 and 180 degrees. However, this code is not able to shift it to 270 degrees. Could you please suggest how may I modify the ...
Bogdan Raspopin's user avatar
1 vote
1 answer
191 views

How to send signal ONCE when within constant range of sensor?

I am working on a project to have a open/close a solenoid at certain ranges (using HC-SR04 ultrasonic sensor). #include <NewPing.h>2 #define Relay1 7 #define Relay2 8 NewPing SonarRight(12, ...
bkwillpker2's user avatar
1 vote
1 answer
1k views

Smooth out digital signal from SW-420 vibration sensor in order to record duration?

I'm attempting to make a sensor that will record the duration and frequency of a pump going off. It always fires for at least 4 seconds, but the duration can be up to 7 days. The vibration sensor I ...
nickbarnett's user avatar
1 vote
3 answers
73 views

Turning an LED on when an error occurs, then turn it off after 2 seconds

I am currently working on making some test equipment for µUSB cables. The code is supposed to recoqnise when an error in the cable occurs. Most of it works as expected, but I have some trouble ...
Michael Falk Vedel's user avatar
1 vote
1 answer
2k views

MPU6050 Sending Bad values for Angular Velocity

The mpu gives me perfectly fine values for the yaw, pitch, and roll position of the chip, but when I use mpu.getRotation(&gx, &gy, &gz) to obtain the current angular velocity of the chip, ...
Ember's user avatar
  • 83
1 vote
1 answer
142 views

Get pin input status without using the arduino library

I am not allowed to use the Arduino Library (or any Library) for this program. How would I check the input of a pin? I found two different functions: In Arduino.h: #define bitRead(value, bit) (((...
kingcobra1986's user avatar
1 vote
1 answer
267 views

Is it possible to create an interface between Teensy 3.2 and a DSP?

I realize that this is a forum for Arduino but since the Teensy 3.2 is compatible with the Arduino IDE I thought it would be appropriate to ask the question here. Anyway, can I create an interface ...
user3185216's user avatar
1 vote
0 answers
52 views

Transfer a single pulse from Tektronix function generator to Arduino UNO

I have set up a single pulse (width of ~400 ms) using the burst feature on the Tektronix AFG3102 function generator and I want to transfer this signal to the digital pin of Arduino UNO. Essentially I ...
Nikan's user avatar
  • 11
1 vote
0 answers
42 views

Audio range with custom waveshape

I am planning to use several Arduino to produce audio range analog signals. I need to use custom waveshapes generated on the fly. As far as I understand, there are two paths: Aquiring a DAC, but can ...
huhu roro's user avatar
1 vote
1 answer
689 views

Communication between two Arduinos using ENC28J60?

How can I connect and send data between two Arduinos using ENC28J60 ethernet adapters on both of them? Is there any guide or example code for me to take a look from or any library I can use to achieve ...
rohithrathod banoth's user avatar
1 vote
0 answers
60 views

line following IR sensor not giving readings at 3m wire length?

I am using line following IR sensor with arduino mega. I need the sensor 2-3m away from arduino since the length of rover is 2m (sensor front & motor back). However, I cannot get accurate analog ...
suu's user avatar
  • 85
1 vote
0 answers
182 views

ultrasonic phased array

I have the following code for Arduino mega to output 40 kHz square waves at the analog pins. I need to apply specific phase delays for the signals at each pin though and am struggling to find out how ...
Marion's user avatar
  • 11
1 vote
0 answers
277 views

Best approaches to reading a high-count quadrature encoder?

I have a 24v servo motor coupled to a 2,000 segment optical encoder that runs on 5v. That's 2,000 "ticks" per revolution at it's base resolution. (Full quad reading allows 8,000 ticks per revolution, ...
111936's user avatar
  • 19
1 vote
0 answers
42 views

Signal reading from existing snackmachine

So - i started a project at my civil-service. I want to fill a old snack-machine with things we need in the ambulance (bandages, cool-packs, etc.) In order to get the current amount of everything ...
CozyPaw's user avatar
  • 11
1 vote
0 answers
197 views

Decoding RF Signal

I have a motorized curtain and I'm trying to understand its rf control signal in order to control it from my arduino. I got the times, and checked the code is not static. I believe it has some kind ...
BrunoAraujo's user avatar
1 vote
1 answer
1k views

Sending a character 'A' through blinking led

How do i code to send a character 'A' to the arduino through a blinking led? i am doing a project about data transmission. i really need help&some guide. Material used are arduino uno r3,...
Nyssa's user avatar
  • 15