Questions tagged [signal-processing]
Use this tag if your question is related to signal processing techniques (within the Arduino's capability).
98 questions
3
votes
1
answer
1k
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 ...
1
vote
3
answers
173
views
How can I create a short (0.5us) electrical pulse (50mV amplitude)
I'm working on a charged particle detector consisting of a plastic scintillator and a SiPM to create an electrical signal and I'm using an arduino with an ADC to detect these pulses.
I'd like to ...
1
vote
2
answers
84
views
How to best connect a 5V input signal to an MKR WiFi 1010?
I have a bunch of 5V signals I want to process with my MKRWiFi1010, but that only takes 3.3V max.
What is the best way to connect these signals? They are video signal (HSync, VSync and Video) where ...
0
votes
1
answer
4k
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
1
answer
213
views
Not registering complete rotary encoder input
I am working on a project using a Rotary Encoder and I am trying to receive the output from the encoder. As it stands I am able to get a count for degrees of change and direction of rotation, however ...
1
vote
0
answers
319
views
Is it possible to create a RS485 bridge over Wifi using 2 ESP07's
I've got a solar energy inverter that has a RS485 port for connecting a meter. You can place a separate energy meter in your distribution panel at home, that measures things like power usage, purchase ...
1
vote
2
answers
505
views
GPS Module not catching signal
I am making a gps tracker with neo6m gps module and esp32 dev board.
I checked wiring and coding but still my module isn't catching a signal
I am already on roof of my house in case it require clear ...
-1
votes
1
answer
428
views
Generation of TTL Signal
I would like to generate a TTL signal using an Arduino.
As far as I understand, a TTL signal is just a predefined controlled signal that repeats at a certain interval (e.g. 2 μs).
An Arduino circuit ...
3
votes
1
answer
218
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
0
answers
173
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
337
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 ...
20
votes
5
answers
27k
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 ...
-1
votes
1
answer
435
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 ...
0
votes
3
answers
5k
views
Connect function generator to Arduino
How do I connect a function generator that generates an analog signal to an Arduino Uno?
I don't know how to begin, so could you also tell me the settings for the function generator, e.g. its ...
0
votes
1
answer
358
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. ...
1
vote
1
answer
1k
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
190
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
94
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
687
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
63
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 ...
0
votes
1
answer
266
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.
4
votes
1
answer
708
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()...
2
votes
1
answer
270
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=...
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 ...
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 ...
0
votes
2
answers
689
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 ...
0
votes
1
answer
2k
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
340
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
486
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
251
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). ...
1
vote
1
answer
422
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?
...
1
vote
2
answers
54
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
46
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
2
answers
473
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 more ...
0
votes
0
answers
95
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");
...
2
votes
2
answers
354
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-...
1
vote
0
answers
83
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
239
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 ...
0
votes
1
answer
578
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:
...
1
vote
0
answers
338
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, ...
2
votes
3
answers
4k
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 ...
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 ...
2
votes
0
answers
812
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 ...
1
vote
2
answers
638
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 ...
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 ...
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
542
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
56
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
227
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,...