#102 Arduino C++ - Lesson 11 Advanced Servo Control

preview_player
Показать описание
In this lesson the Arduino UNO will be controlling 4 servos using a couple of buttons and a potentiometer to demonstarte different methods.

The code from lesson 10 will be rewritten using various arrays to allow extra servos to be added quickly and simply as well as the main control code being moved into it's own function for future reuse.

By the end of the lesson you should be able top control the servo speed and destination using different methods ready for any servo project.

The lesson also explains how to use #define in code to set up some simple definitions to make working with the arrays easier.

As always the code uses millis for timing so in non-blocking state machine code.

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

Very generous to share your experience for us to learn. Great resource for the Micro makers. Thx

spasticjackson
Автор

Brilliant, thank you. Some great tips.

neilnagel
Автор

very nice use of arrays and non blocking code, it has got me thinking of how to improve some of my code, thanks.

brucenelson
Автор

Thank you once again awesome vid Cheers

markdebsauzzietravels