{"id":2020,"date":"2019-12-03T13:16:10","date_gmt":"2019-12-03T21:16:10","guid":{"rendered":"http:\/\/www.donluc.com\/?p=2020"},"modified":"2019-12-03T13:16:10","modified_gmt":"2019-12-03T21:16:10","slug":"project-12-robotics-rc-servo-motor-mk02","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2020","title":{"rendered":"Project #12: Robotics &#8211; RC Servo Motor &#8211; Mk02"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2020-1\" width=\"720\" height=\"406\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/dl1912mk01.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/dl1912mk01.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/dl1912mk01.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01a.png\" alt=\"Robotics\" width=\"720\" height=\"775\" class=\"alignnone size-full wp-image-2022\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01a-279x300.png 279w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01b.png\" alt=\"Robotics\" width=\"720\" height=\"775\" class=\"alignnone size-full wp-image-2023\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01b-279x300.png 279w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01c.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2024\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01d.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2025\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01d.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01d-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01e.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01e.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2026\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01e.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01e-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01f.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01f.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2027\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01f.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01f-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01g.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01g.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2028\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01g.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01g-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01h.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01h.png\" alt=\"Robotics\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2029\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01h.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/12\/DL1912Mk01h-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Servo (Radio Control)<\/strong><\/p>\n<p>Servos (also RC servos) are small, cheap, mass-produced servomotors or other actuators used for radio control and small-scale robotics.<br \/>\nRadio control servos are connected through a standard three-wire connection: two wires for a DC power supply and one for control, carrying a pulse-width modulation (PWM) signal. Each servo has a separate connection and PWM signal from the radio control receiver. This signal is easily generated by simple electronics, or by microcontrollers such as the Arduino. This, together with their low-cost, has led to their wide adoption for robotics and physical computing.<\/p>\n<p><strong>DL1912Mk01<\/strong><\/p>\n<p>1 x Adafruit RGB LCD Shield 16\u00d72 Character Display<br \/>\n1 x Arduino UNO &#8211; R3<br \/>\n1 x ProtoScrewShield<br \/>\n2 x EasyDriver &#8211; Stepper Motor Driver<br \/>\n2 x Small Stepper Motor<br \/>\n2 x Pololu Mounting<br \/>\n2 x RC Servo Motor<br \/>\n2 x Potentiometer 1M Ohm<br \/>\n2 x Knob<br \/>\n4 x Jumper Wires 3&#8243; M\/M<br \/>\n22 x Jumper Wires 6&#8243; M\/M<br \/>\n3 x Half-Size Breadboard<\/p>\n<p><strong>Arduino UNO<\/strong><\/p>\n<p>SP1 &#8211; Digital 3<br \/>\nDI1 &#8211; Digital 2<br \/>\nSP2 &#8211; Digital 5<br \/>\nDI2 &#8211; Digital 4<br \/>\nSV1 &#8211; Digital 6<br \/>\nPO1 &#8211; Analog A0<br \/>\nSV2 &#8211; Digital 7<br \/>\nPO2 &#8211; Analog A1<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL1912Mk01.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"DL1912Mk01.ino\">\r\n\/\/ ***** Don Luc Electronics \u00a9 *****\r\n\/\/ Software Version Information\r\n\/\/ Project #12: Robotics - RC Servo Motor - Mk02\r\n\/\/ 12-01\r\n\/\/ DL1912Mk01p.ino 12-02\r\n\/\/ Arduino UNO\r\n\/\/ Screw Shield\r\n\/\/ Adafruit RGB LCD Shield\r\n\/\/ 2 x Small Stepper Motor\r\n\/\/ 2 x EasyDriver\r\n\/\/ 2 x RC Servo Motor\r\n\/\/ 2 x Potentiometer\r\n\r\n\/\/ include the library code:\r\n#include &lt;Adafruit_RGBLCDShield.h&gt;\r\n#include &lt;Servo.h&gt;\r\n\r\n\/\/ Adafruit RGB LCD Shield\r\nAdafruit_RGBLCDShield RGBLCDShield = Adafruit_RGBLCDShield();\r\n\r\n\/\/ These #defines make it easy to set the backlight color\r\n#define OFF 0x0\r\n#define RED 0x1\r\n#define YELLOW 0x3\r\n#define GREEN 0x2\r\n#define TEAL 0x6\r\n#define BLUE 0x4\r\n#define VIOLET 0x5\r\n#define WHITE 0x7\r\n\r\n\/\/ Momentary Button\r\nint yy = 0;\r\nuint8_t momentaryButton = 0;\r\n\r\n\/\/ 2 x EasyDriver\r\nint dirPinR = 2;                           \/\/ EasyDriver Right\r\nint stepPinR = 3;                          \/\/ stepPin Right\r\nint dirPinL = 4;                           \/\/ EasyDriver Left\r\nint stepPinL = 5;                          \/\/ stepPin Left\r\nint i = 0;\r\n\r\n\/\/ 2 x RC Servo Motor\r\n\/\/ 2 x Potentiometer\r\nServo isRCServo1;                          \/\/ Create servo object to control a RCServo1\r\nint servo1 = 6;                            \/\/ Servo 1\r\nint iPot1 = A0;                            \/\/ Analog Potentiometer 1\r\nint iVal1;                                 \/\/ Variable - Analog Potentiometer 1\r\nServo isRCServo2;                          \/\/ Create servo object to control a RCServo2\r\nint servo2 = 7;                            \/\/ Servo 2\r\nint iPot2 = A1;                            \/\/ Analog Potentiometer 2\r\nint iVal2;                                 \/\/ Variable - Analog Potentiometer 2\r\n\r\nvoid loop() {\r\n\r\n  \/\/ Clear\r\n  RGBLCDShield.clear();\r\n   \r\n  \/\/ Momentary Button\r\n  momentaryButton = RGBLCDShield.readButtons();\r\n\r\n  switch ( yy ) {\r\n    case 1:\r\n    \r\n      \/\/ Up\r\n      isSwitch1();\r\n      \r\n      break;\r\n    case 2:\r\n    \r\n      \/\/ Down\r\n      isSwitch2();\r\n      \r\n      break;\r\n    case 3:\r\n\r\n      \/\/ Right\r\n      isSwitch3();\r\n      \r\n      break;\r\n    case 4:\r\n\r\n      \/\/ Left\r\n      isSwitch4();\r\n      \r\n      break;\r\n    case 5:\r\n\r\n      \/\/ Stop\r\n      isSwitch5();\r\n      \r\n      break;\r\n    default:\r\n\r\n      \/\/ Stop\r\n      yy = 5;\r\n      RGBLCDShield.setBacklight(RED);\r\n      isSwitch5();\r\n\r\n   }\r\n   \r\n   if ( momentaryButton ) {\r\n    \r\n    if ( momentaryButton &amp; BUTTON_UP ) {\r\n      \r\n      yy = 1;\r\n      \/\/ Up\r\n      RGBLCDShield.setBacklight(GREEN);\r\n      \r\n    }\r\n    \r\n    if ( momentaryButton &amp; BUTTON_DOWN ) {\r\n      \r\n      yy = 2;\r\n      \/\/ Down\r\n      RGBLCDShield.setBacklight(VIOLET);\r\n      \r\n    }\r\n    \r\n    if ( momentaryButton &amp; BUTTON_LEFT ) {\r\n      \r\n      yy = 3;\r\n      \/\/ Right\r\n      RGBLCDShield.setBacklight(TEAL);\r\n      \r\n    }\r\n    \r\n    if ( momentaryButton &amp; BUTTON_RIGHT ) {\r\n\r\n      yy = 4;\r\n      \/\/ Left\r\n      RGBLCDShield.setBacklight(YELLOW);\r\n    }\r\n    \r\n    if ( momentaryButton &amp; BUTTON_SELECT ) {\r\n\r\n      yy = 5;\r\n      \/\/ Stop\r\n      RGBLCDShield.setBacklight(RED);\r\n   \r\n    }\r\n    \r\n  }\r\n  \r\n}\r\n<\/pre>\n<p><strong>getServo.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"getServo.ino\">\r\n\/\/ Servo\r\n\/\/ isServoSetup\r\nvoid isServoSetup() {\r\n\r\n  \/\/ 2 x RC Servo Motor\r\n  isRCServo1.attach( servo1 );\r\n  isRCServo2.attach( servo2 );\r\n  \r\n}\r\n\/\/ isServo1\r\nvoid isServo1() {\r\n\r\n  \/\/ EasyDriver\r\n  isStepperStop();\r\n   \r\n  \/\/ Potentiometer RC Servo Motor 1\r\n  iVal1 = analogRead( iPot1 );              \/\/ Reads the value of the iPot1 (Value between 0 and 1023)\r\n  iVal1 = map(iVal1, 0, 1023, 0, 180);      \/\/ Scale it to use it with the isRCServo1 (Value between 0 and 180)\r\n  isRCServo1.write( iVal1 );                \/\/ isRCServo1 sets the servo position according to the scaled value\r\n  delay(15);    \r\n\r\n  \/\/ Display\r\n  \/\/ Set the cursor to column 0, line 0  \r\n  RGBLCDShield.setCursor(0,0);\r\n  RGBLCDShield.print(&quot;isRCServo 1&quot;);        \/\/ isRCServo 1\r\n  \/\/ Set the cursor to column 0, line 1\r\n  RGBLCDShield.setCursor(0, 1);\r\n  RGBLCDShield.print( iVal1 );              \/\/ Reads the value iVal1\r\n  \r\n  delay(500);\r\n\r\n}\r\n\/\/ isServo2\r\nvoid isServo2() {\r\n\r\n  \/\/ EasyDriver\r\n  isStepperStop();\r\n   \r\n  \/\/ Potentiometer RC Servo Motor 1\r\n  iVal2 = analogRead( iPot2 );              \/\/ Reads the value of the iPot2 (Value between 0 and 1023)\r\n  iVal2 = map(iVal2, 0, 1023, 0, 180);      \/\/ Scale it to use it with the isRCServo2 (Value between 0 and 180)\r\n  isRCServo2.write( iVal2 );                \/\/ isRCServo2 sets the servo position according to the scaled value\r\n  delay(15);    \r\n\r\n  \/\/ Display\r\n  \/\/ Set the cursor to column 0, line 0  \r\n  RGBLCDShield.setCursor(0,0);\r\n  RGBLCDShield.print(&quot;isRCServo 2&quot;);        \/\/ isRCServo 2\r\n  \/\/ Set the cursor to column 0, line 1\r\n  RGBLCDShield.setCursor(0, 1);\r\n  RGBLCDShield.print( iVal2 );              \/\/ Reads the value iVal2\r\n  \r\n  delay(500);\r\n\r\n}\r\n<\/pre>\n<p><strong>getStepper.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"getStepper.ino\">\r\n\/\/ Stepper\r\n\/\/ isStepperSetup\r\nvoid isStepperSetup() {\r\n\r\n  \/\/ 2 x EasyDriver\r\n  pinMode(dirPinR, OUTPUT);\r\n  pinMode(stepPinR, OUTPUT);\r\n  pinMode(dirPinL, OUTPUT);\r\n  pinMode(stepPinL, OUTPUT);\r\n\r\n}\r\n\/\/ isStepper1\r\nvoid isStepper1(){\r\n\r\n   \/\/ set the cursor to column 0, line 0\r\n   RGBLCDShield.setCursor(0,0);\r\n   RGBLCDShield.print(&quot;EasyDriver&quot;);        \/\/ EasyDriver  \r\n   RGBLCDShield.setCursor(0,1);    \r\n   RGBLCDShield.print(&quot;Up&quot;);\r\n   delay(500);\r\n\r\n   \/\/ 2 x EasyDriver\r\n   digitalWrite(dirPinR, LOW);              \/\/ Set the direction.\r\n   delay(100);\r\n   digitalWrite(dirPinL, LOW);              \/\/ Set the direction.\r\n   delay(100);\r\n\r\n   for (i = 0; i&lt;300; i++)                 \/\/ Iterate for 1000 microsteps.\r\n   { \r\n     digitalWrite(stepPinR, LOW);           \/\/ This LOW to HIGH change is what creates the\r\n     digitalWrite(stepPinR, HIGH);          \/\/ &quot;Rising Edge&quot; so the easydriver knows to when to step.\r\n     delayMicroseconds(170);                \/\/ This delay time is close to top speed.\r\n     digitalWrite(stepPinL, LOW);           \/\/ This LOW to HIGH change is what creates the\r\n     digitalWrite(stepPinL, HIGH);          \/\/ &quot;Rising Edge&quot; so the easydriver knows to when to step.\r\n     delayMicroseconds(170);                \/\/ This delay time is close to top speed.\r\n   } \r\n   \r\n}\r\n\/\/ isStepper2\r\nvoid isStepper2(){\r\n\r\n   \/\/ set the cursor to column 0, line 0\r\n   RGBLCDShield.setCursor(0,0);\r\n   RGBLCDShield.print(&quot;EasyDriver&quot;);        \/\/ EasyDriver  \r\n   RGBLCDShield.setCursor(0,1);    \r\n   RGBLCDShield.print(&quot;Down&quot;);\r\n   delay(500);\r\n\r\n   \/\/ 2 x EasyDriver\r\n   digitalWrite(dirPinR, HIGH);              \/\/ Set the direction.\r\n   delay(100);\r\n   digitalWrite(dirPinL, HIGH);              \/\/ Set the direction.\r\n   delay(100);\r\n\r\n   for (i = 0; i&lt;300; i++)                 \/\/ Iterate for 1000 microsteps.\r\n   { \r\n     digitalWrite(stepPinR, LOW);           \/\/ This LOW to HIGH change is what creates the\r\n     digitalWrite(stepPinR, HIGH);          \/\/ &quot;Rising Edge&quot; so the easydriver knows to when to step.\r\n     delayMicroseconds(170);                \/\/ This delay time is close to top speed.\r\n     digitalWrite(stepPinL, LOW);           \/\/ This LOW to HIGH change is what creates the\r\n     digitalWrite(stepPinL, HIGH);          \/\/ &quot;Rising Edge&quot; so the easydriver knows to when to step.\r\n     delayMicroseconds(170);                \/\/ This delay time is close to top speed.\r\n   } \r\n   \r\n}\r\n\/\/ isStepperStop\r\nvoid isStepperStop() {\r\n\r\n   \/\/ 2 x EasyDriver\r\n   digitalWrite(dirPinR, LOW);              \/\/ Set the direction.\r\n   delay(100);\r\n   digitalWrite(dirPinL, LOW);              \/\/ Set the direction.\r\n   delay(100);\r\n   digitalWrite(stepPinR, LOW);             \/\/ This LOW to HIGH change is what creates the\r\n   digitalWrite(stepPinL, LOW);             \/\/ This LOW to HIGH change is what creates the \r\n\r\n}\r\n<\/pre>\n<p><strong>getSwitch.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"getSwitch.ino\">\r\n\/\/ Switch\r\n\/\/ Switch 1\r\nvoid isSwitch1(){\r\n\r\n   \/\/ Up\r\n   yy = 1;\r\n\r\n   \/\/ 2 x EasyDriver\r\n   isStepper1();\r\n\r\n}\r\n\/\/ Switch 2\r\nvoid isSwitch2(){\r\n\r\n   \/\/ Down\r\n   yy = 2;\r\n\r\n   \/\/ 2 x EasyDriver\r\n   isStepper2();\r\n   \r\n}\r\n\/\/ Switch 3\r\nvoid isSwitch3(){\r\n\r\n   \/\/ Right\r\n   yy = 3;\r\n\r\n   \/\/ Potentiometer RC Servo Motor 1\r\n   isServo1();\r\n   \r\n}\r\n\/\/ Switch 4\r\nvoid isSwitch4(){\r\n\r\n   \/\/ Left\r\n   yy = 4;\r\n\r\n   \/\/ Potentiometer RC Servo Motor 2\r\n   isServo2();\r\n   \r\n}\r\n\/\/ Switch 5\r\nvoid isSwitch5(){\r\n\r\n   \/\/ Stop\r\n   yy = 5;\r\n\r\n   \/\/ set the cursor to column 0, line 0\r\n   RGBLCDShield.setCursor(0,0);\r\n   RGBLCDShield.print(&quot;Robotics&quot;);         \/\/ Robotics \r\n   RGBLCDShield.setCursor(0,1);    \r\n   RGBLCDShield.print(&quot;Stop&quot;);\r\n\r\n   delay( 500 );\r\n\r\n   \/\/ EasyDriver\r\n   isStepperStop();\r\n       \r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"setup.ino\">\r\n\/\/ Setup\r\nvoid setup() {\r\n\r\n  \/\/ Adafruit RGB LCD Shield\r\n  \/\/ Set up the LCD&#039;s number of columns and rows: \r\n  RGBLCDShield.begin(16, 2);\r\n  RGBLCDShield.setBacklight(GREEN);\r\n  \r\n  \/\/ Display\r\n  \/\/ Set the cursor to column 0, line 0  \r\n  RGBLCDShield.setCursor(0,0);  \r\n  RGBLCDShield.print(&quot;Don Luc Electron&quot;);         \/\/ Don luc Electron\r\n  \/\/ Set the cursor to column 0, line 1\r\n  RGBLCDShield.setCursor(0, 1);\r\n  RGBLCDShield.print(&quot;Robotics&quot;);                \/\/ EasyDriver\r\n\r\n  delay(5000);\r\n\r\n  \/\/ Clear\r\n  RGBLCDShield.clear();\r\n\r\n  \/\/ 2 x EasyDriver\r\n  isStepperSetup();\r\n  \r\n  \/\/ 2 x RC Servo Motor\r\n  isServoSetup();\r\n\r\n}\r\n<\/pre>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> http:\/\/neosteamlabs.com\/<br \/>\n<strong>Web:<\/strong> http:\/\/www.jlpconsultants.com\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/channel\/UC5eRjrGn1CqkkGfZy0jxEdA<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Etsy:<\/strong> https:\/\/www.etsy.com\/shop\/NeoSteamLabs<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Servo (Radio Control) Servos (also RC servos) are small, cheap, mass-produced servomotors or other actuators used for radio control and small-scale robotics. Radio control servos are connected through a standard three-wire connection: two wires for a DC power supply and one for control, carrying a pulse-width &#8230; <a title=\"Project #12: Robotics &#8211; RC Servo Motor &#8211; Mk02\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2020\" aria-label=\"Read more about Project #12: Robotics &#8211; RC Servo Motor &#8211; Mk02\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,47,50,38,59,5,46,58,10,43],"tags":[86,6,87,19,85,24,9,27,95,97,96],"class_list":["post-2020","post","type-post","status-publish","format-standard","hentry","category-robotics-projerts","category-adafruit","category-arduino","category-digitalelectronics","category-fritzing","category-microcontrollers","category-pololu","category-arduino-programming","category-projects","category-sparkfun","tag-adafruit","tag-arduino","tag-display","tag-electronics","tag-fritzing","tag-microcontroller","tag-programming","tag-projects-2","tag-robotic","tag-servo","tag-stepper"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2020"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020\/revisions"}],"predecessor-version":[{"id":3723,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020\/revisions\/3723"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}