Questions tagged [signal-processing]
Use this tag if your question is related to signal processing techniques (within the Arduino's capability).
93
questions
0
votes
1
answer
41
views
Not registering complete rotary encoder input
I am working on a project using a Rotary Encoder and I am trying to recieve the output from the encoder. As it stands I am able to get a count for degrees of change and direction of rotation, however ...
0
votes
0
answers
60
views
OpenCV on ESP32 Arduino Nano
I am implementing a program on Arduino Nano ESP32: the KY-037 microphone is connected to the board and collects five seconds of analog signal. Then, an algorithm is applied to create a 128 x 128 ...
2
votes
0
answers
108
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 ...
-1
votes
1
answer
138
views
If I reduce ADC sample rate, do I get an average over the time period?
I am working with a ESP32-C3 devkit. I am using the internal ADC on that chip to read from an analog microphone. I initialize the ADC like this:
adc_continuous_config_t dig_cfg = {
.sample_freq_hz ...
2
votes
1
answer
77
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 ...
0
votes
1
answer
93
views
Creating an AC pulse with arduino and perhaps components
I want to create an AC PWM pulse with arduino. The microcontoller, will be also responsible for specifying the frequency (which will be around 500 Hz).
External electronic components can also be used. ...
0
votes
1
answer
92
views
About the FFT library on Arduino
From the output results, i see that the arduinoFFT returns only positive frequencies, thus i think it self removes the negative sided values and compensates the lost energy by multiplying by 2. Is ...
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 ...
0
votes
0
answers
390
views
Detecting peak frequency in a microphone's output signal
I'm using a simple electrode microphone with an Arduino UNO board with the aim of detecting peak frequencies in the output signal overtime. I set the sampling rate to 1 MHz, but i can't pick up a peak ...
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 ...
4
votes
1
answer
417
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()...
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 ...
0
votes
1
answer
1k
views
Decode rf remote signals with ESP32 or node MCU?
I'm trying to decide my rf remote signals using ESP32 or node MCU. I have tried with Arduino and was successful but for some reason it is not working on either ESP32 or node MCU even using the same ...
1
vote
1
answer
697
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 ...
0
votes
2
answers
485
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 ...
1
vote
1
answer
204
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 ...
3
votes
2
answers
315
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 "...
2
votes
1
answer
170
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=...
2
votes
1
answer
149
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). ...
0
votes
0
answers
2k
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 ...
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 ...
-1
votes
1
answer
34
views
acelermetor count goes down after 1 peak
I am using a Wemos D1 Mini and an mpu 6050 accelerametor. I managed to get the acceleratmetor to work and have 1 value come out of movements. So when a peak it hit (aka, the threshold of 1.00 is hit) ...
0
votes
0
answers
72
views
With what can I replace this for loop so my Arduino doesn't spit jibberish?
I have this:
for (int i = 0; i < (DELAY_SIZE - 1); i++) {
if (check_tag_in_char(delay_chars[i], BOOK_UPLOAD_END_TAG)) {
tag_pos = 0;
Serial.println("Uploaded");
...
0
votes
2
answers
424
views
How do I make a character array scanner properly?
I start with this:
char delay_chars[10];
then I have a stream of incoming characters that I need to assign like this:
['I', ' ', 'l', 'o', 'v', 'e', ' ', 'p', 'i', 'e']
I can do that, but then ...
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-...
0
votes
1
answer
198
views
How to obtain the real and imaginary signal parts using Arduino FFT
How do you obtain the real and imaginary parts of a signal using FFT in arduino?
I could not find a particular tutorial with code for this purpose in the internet.
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 ...
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 ...
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, ...
1
vote
1
answer
286
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?
...
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 ...
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 ...
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=...
0
votes
1
answer
461
views
SIM800l doesn't respond on arduino micro
I want my Arduino Micro to interact with my SIM 800 L module. But unfortunately nothing happens, may you can help me figure out where I made a mistake. Here's my wiring:
Summary of my wiring:
...
0
votes
1
answer
459
views
making power harmonics analyser which will measure the amplitudes of the fundamental and its multiples (like 50hz, 100hz, 150hz,200 hz,...) there are)
i have been intendng to make a power frequency harmonics analyser which will measure the amplitudes of the fundamental and its multiples (like 50hz, 100hz, 150hz,200 hz,...) there are examples for ...
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 ...
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 ...
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,...
0
votes
1
answer
1k
views
Get IR Signal and its strength
Using an IR sensor, how can I get and decode signals from other IR devices? I've seen the IRRemote library and its forks, but it doesn't fulfill my second requirement which is that I need to be able ...
1
vote
0
answers
534
views
Configuring Timers to Add One More 50kHz Square Wave
I am generating two 50kHz square waves, but I would like to generate three square waves. I have problems with generating the third square wave.
Basically, I need to configure the timer bits so that I ...
1
vote
1
answer
862
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 ...
0
votes
1
answer
120
views
Coding Arduino's samples/period and cycles/sample configurations for input signal [closed]
Am I able to code the Arduino so that I can change cycles/sample of an input waveform and a number of samples/period configurations? I would like to modify these parameters in order to be able to ...
-1
votes
1
answer
1k
views
Generating Sinusoid Signal of 40khz [closed]
I would like to generate a sinusoidal signal of 40kHz using Arduino Uno.
Maximum I could generate was 1kHz, using bit banging, fast PWM. Do you have ideas of how to boost it to 40kHz?
I used "...
0
votes
1
answer
3k
views
High pass filtering accelerometer data on Arduino
I'm trying to use an accelerometer for user input to a device. The idea is that the user input will be tied to "taps" on the accelerometer, one tap means something, two taps something else, etc.
I'm ...
0
votes
1
answer
59
views
The code fails to generate the values I want, when both trigger pins 2, 3 are high or low. Why? [closed]
/*aim of the program is to generate 2 different varying frequency from the
same output which is controlled by 2 triggers*/
void setup()
{
pinMode(2,INPUT); //setting the trigger pins 2,3
...
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 ...
0
votes
1
answer
777
views
Why does void loop() stop after some samples?
I am not getting any compile time error. After some samples of data void loop() stops executing. Please let know what the problem is. Below is my code.
Thanks and regards
Thippeswamy
#include<SPI....
0
votes
2
answers
866
views
How the output of a bicycle dynamo can be displayed using Arduino?
I am on a project in which I need to make bicycle dynamo frequency meter.
The power generator’s output should vary with the speed of the wheel.
Which parts do I need to make it work?
The project ...
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, ...
1
vote
2
answers
1k
views
Voice recognition without module, is it possible? [closed]
I'm trying to figure out how to process a voice signal for simple purposes. Wherever I look people using or suggesting recognition modules for Arduino.
What I'm wondering: is this possible to make a ...