Add Realistic Slow Motion to Servo Point Motors
I prefer servo point motors because they're cheap and reliable compared with other methods. Another benefit of servos is that with a small amount of code they can be slowed down to look more realistic.
In this video we look at two methods for coding realistic slow motion into a servo point motor.
The first method uses the delay() function and does the job, but can cause problems elsewhere.
The second method using the millis() function is slightly more complicated to setup, but allows everything to happen at the same time without delay.
If you want to know more then this guide from Adafruit is really helpful: https://learn.adafruit.com/multi-tasking-the-arduino-part-1/ditch-the-delay
These methods can be used to slow down any servo motor or even to add fade to LEDs connected to a PCA9685.
If you'd like to give this a go yourself then all the kit can be found in my Amazon shop or via the affiliate links below. Note that these are affiliate links which means the channel receives a small percentage of the sale which goes to support production, but don't worry you still get the same great price. Thanks for your support.
https://www.amazon.co.uk/shop/littlewicketrailway
Arduino Nano: https://amzn.to/3tSFpBb
SG90 Servos: https://amzn.to/2N3uzY4
Servo Driver Board (PCA9685): https://amzn.to/2NoTKo3
IR Sensors: https://amzn.to/2LQJmVF
LEDs: https://amzn.to/3rSViFz
Chapters:
00:00 Introduction
01:25 Setup
01:58 For Loops
03:17 Delay Function
03:58 A Problem
06:29 Mr Nano Demonstrates
07:36 Millis Function to the Rescue
09:31 Improved Code
10:36 Summary
11:19 Reward for Making to the End
Видео Add Realistic Slow Motion to Servo Point Motors канала Little Wicket Railway
In this video we look at two methods for coding realistic slow motion into a servo point motor.
The first method uses the delay() function and does the job, but can cause problems elsewhere.
The second method using the millis() function is slightly more complicated to setup, but allows everything to happen at the same time without delay.
If you want to know more then this guide from Adafruit is really helpful: https://learn.adafruit.com/multi-tasking-the-arduino-part-1/ditch-the-delay
These methods can be used to slow down any servo motor or even to add fade to LEDs connected to a PCA9685.
If you'd like to give this a go yourself then all the kit can be found in my Amazon shop or via the affiliate links below. Note that these are affiliate links which means the channel receives a small percentage of the sale which goes to support production, but don't worry you still get the same great price. Thanks for your support.
https://www.amazon.co.uk/shop/littlewicketrailway
Arduino Nano: https://amzn.to/3tSFpBb
SG90 Servos: https://amzn.to/2N3uzY4
Servo Driver Board (PCA9685): https://amzn.to/2NoTKo3
IR Sensors: https://amzn.to/2LQJmVF
LEDs: https://amzn.to/3rSViFz
Chapters:
00:00 Introduction
01:25 Setup
01:58 For Loops
03:17 Delay Function
03:58 A Problem
06:29 Mr Nano Demonstrates
07:36 Millis Function to the Rescue
09:31 Improved Code
10:36 Summary
11:19 Reward for Making to the End
Видео Add Realistic Slow Motion to Servo Point Motors канала Little Wicket Railway
Показать
Комментарии отсутствуют
Информация о видео
19 сентября 2021 г. 17:00:03
00:12:15
Другие видео канала
![Build your own Servo Point Motor](https://i.ytimg.com/vi/jvQH2K3Ee1M/default.jpg)
![Little Wicket Layout Design and Track Plan ✏️📏📐](https://i.ytimg.com/vi/AzROa2iVXWI/default.jpg)
![DIY Pen Plotter with Automatic Tool Changer | Arduino based CNC Drawing Machine](https://i.ytimg.com/vi/virDtVVt2Xo/default.jpg)
![Moving Home 🏡 Prize Giveaway 🎁 and other stuff 🚂](https://i.ytimg.com/vi/I8n_hR7PzMM/default.jpg)
![](https://i.ytimg.com/vi/XvMFFinkAuE/default.jpg)
![Super Detailed Catenary ULTRA Low Cost](https://i.ytimg.com/vi/3u2RePSwqF8/default.jpg)
![Easy servo installation for points/turnout control](https://i.ytimg.com/vi/YmKIYHZn4Xk/default.jpg)
![00 Wills point rodding kit and lever/ground frames.](https://i.ytimg.com/vi/OGdScfMOVAY/default.jpg)
![Updated: Using Servo's to control Model Railroad Turnouts](https://i.ytimg.com/vi/sAD6CsetuLw/default.jpg)
![The cheapest 3D printed actuator for robots (with brushless motor)](https://i.ytimg.com/vi/2dG_F9rR-jM/default.jpg)
![OO gauge British automatic working level crossing project](https://i.ytimg.com/vi/M23Mwwt-4zk/default.jpg)
![Model Railway Digital Controller (DCC++) for £40 or less! 😮](https://i.ytimg.com/vi/qScLz-kq88k/default.jpg)
![Servo Motor Control for Model Railways Part 1 of 3 - Setup with Arduino](https://i.ytimg.com/vi/ayOoUkdjHtg/default.jpg)
![How To Turn Any Motor Into A Servo Motor (#075)](https://i.ytimg.com/vi/7aU2ESpwp5A/default.jpg)
![Linking Multiple PCA9685 Servo Driver Boards](https://i.ytimg.com/vi/v1f_EDHV390/default.jpg)
![Are Rails Connect Point motors the future for solenoid motors?](https://i.ytimg.com/vi/2DebF4EVaGg/default.jpg)
![Five BIGGEST MISTAKES I Made Building Little Wicket Model Railway 😩](https://i.ytimg.com/vi/qVlPPKk_nRI/default.jpg)
![Model Rail Inspiration Part 4 Continuous Run N Scale Layouts](https://i.ytimg.com/vi/Y1lc7XvXJoE/default.jpg)
![How to Use Servo Motors with NO Programming! - Hotwire Servo Tutorial](https://i.ytimg.com/vi/UCuKg5RrsPA/default.jpg)
![Hornby TTS Sound Decoder Speaker Upgrade Experiment](https://i.ytimg.com/vi/FlTV8qideoI/default.jpg)