How To Filter Signals In Arduino [Arduino Basics Tutorial 9]

preview_player
Показать описание
In this tutorial i'm going to show you how to filter signals in arduino. But first i'm going to show you a high level overview of this whole radar project (which i should've done much more earlier). So first i will show you the simplest filtering method which is the running average. Then we will implement a much better way of filtering, which is a low-pass or high-pass filter (depending on how you chose your filter value). Finally i will show you a better driving method for the stepper motor.

This tutorial series will be about the basics of Arduino, using sensors, motors, programming, electronics and some more advanced concepts, and projects.

Code:

The kits I use in this series:

Kit with an Arduino Mega:

Kit with an Arduino Uno:

Extra parts you will need for the radar:
...and access to a 3D printer.
__________________________________
► Music by: Jay Man (OurMusicBox)

Thanks for watching!

#Arduino #ArduinoTutorial #NGH
Рекомендации по теме
Комментарии
Автор

Timestamps:

00:00-00:15 Intro
00:15-02:59 Map of the radar project
02:59-03:22 Problem with the Ultrasonic sensor's signal
03:22-03:52 Plan to gather data from the sonar sensor
03:52-04:14 Resources for Processing
04:14-07:08 Writing the Processing code
07:08-07:36 Gathering data from the sensor
07:36-08:10 Signal filtering: Running average
08:10-09:51 Signal filtering: Frequency based filtering
09:51-11:23 Implementing the Frequency based filtering in Arduino
11:23-12:41 Implementing a better driving method for the stepper motor
12:41-12:48 What's next
12:48-13:08 Outro

ngh
Автор

Very easy to follow. I am getting to an older age and trying to learn this stuff from zero knowledge has been difficult. I have had an uno and a riorand 6-60v esc and a fly sky remote control for going on 3 weeks with no progress. My goal is to build a go kart size remote control car with hoverboard motors. My grandson thinks I can build/make anything but fabricating from go karts to military ships is easy. Figuring this stuff out is just a different world to me. I hope you post more tutorials

TheOldKid
Автор

Excellent video! I used your filtering algorithm (TrustFactor) in an Arduino balancing sketch to dampen the pid output to the escs controlling 2 brushless motors. It stopped the jittering completely and makes the motors run very smoothly, however the tradeoff is responsiveness to change requiring typically higher PID values to reach steady state but it does so nicely. Thanks and keep up the great presentations.

tacpreppers
Автор

weighted moving average exponential ... cool video

lobo
Автор

8:37 That's what I was looking for. Thanks!

carlosarena
Автор

Great explanation of an exponential filter.

brogains
Автор

Hi NHG, thanks for the in-depth video!
Is this "Trust Factor" calculation better than e.g. using the "Median"?

CalvinBacon
Автор

i have viewed all 9 tutorials, your explanation, documentation were simply fantastic, the best ones are those
from tutorial 7 to 9, zwei wichtige Punkte:
a) stepper motor, if you apply what you already know to servo, servo is actually quite amazing, as i did, stepper motors'
size and cost comparing to servos like rds3135...
b) you have enough kennis to build either a biped and/or a 4 limb robot, however, that is entirely your choice
i hope what i have wrote did not offend you, if i did, my apology
alles gute !!! bravo bravo !!! toll!!! toll !!! toll !!!

unglaubichuberlieber
Автор

very neat project. i have seen some roject with ultrasonic sensor but this is the first time with a 4 ultra sonic sensor.
i think its a brilliant idea.
if you don't have enough quality in ultrasonic sensor, you can still reach the desired succes with required quantity.
subscribed.

burakayan
Автор

where does the measurements.txt gets storaged?