Популярное

Motion Control with RC Servo and Arduino Microcontroller (1/3)

133 Просмотры
Размещено
Creating a sinusoidal motion with a PWM controlled servo …
↓↓↓ Complete description, time index and links below ↓↓↓

Controlling a RC servo with an Arduino, or any microcontroller for that matter, is trivial. You just need to send a PWM signal encoding the desired position, respectively angle, to the RC servo. There’s even an Arduino library for that purpose.

However, having a RC servo execute a controlled motion, that is to move from position A to B in a defined manner, is an entirely different matter. In this video I’ll make my RC servo to execute a periodic/cyclic sinusoidal motion.

00:00 Intro – the problem with RC servos
01:58 Acceleration – something to avoid in mechanical systems
03:43 Servo control – it’s PWM for those RC servos
06:25 Tower Pro MG995 – pulse with timings for my application
10:07 Trigonometry – don’t fear the sine/cosine circular functions
16:25 PWM signal – that’s needed for a sinusoidal motion
20:03 Sinusoidal motion – at last the servo is moving
21:02 Code version 1 – just for() loops with a delay()
26:51 Explanations – why so complicated
31:14 Code version 2 – without delay() you have time to do stuff
35:59 Wrap-up – next time we change the sinusoidal motion

Tutorials https://www.youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Tower Pro MG995 RC Servo: Full Size, 180°, Metal Gear and Cheap – Review & Test https://youtu.be/rgkJVHD-ROg
MC14490 Hex Contact Bounce Eliminator (e.g. Two Rotary Encoders & Arduino) https://youtu.be/CJmeKgykHtM
My Arduino code https://drive.google.com/drive/folders/13k4hqu2GMPqT3IGQPFE2cM1613GmQKcY?usp=sharing

#tutorials #tutorial #how-to #arduino #servo #motioncontrol #motioncontroller #rc #robertssmorgasbord
Категория
Ардуино
Комментариев нет.