DIY Plywood Robot Base: Testing (With a Simple Arduino Project)

Поделиться
HTML-код
  • Опубликовано: 25 фев 2016
  • For written step by step instructions, visit: www.instructables.com/id/Multi-Purpose-Plywood-Robot-Prototyping-Base
    This video will guide you through the process of testing the plywood robot base made in the Part 1 of this video: • Multipurpose Plywood R...
    You will only require an Arduino (UNO or Nano) and some jumper cables.
    ______________________________
    Connections are as per the following:
    Arduino Vcc -------- Battery +ve terminal
    Arduino 5v --------- Pin 1, 9, 16 of motor driver IC
    Arduino Gnd -------- Pin 4, 5, 12, 13 of IC & Battery -ve terminal
    Arduino Digital pin 5 ------- Pin 2 of IC
    Arduino Digital pin 6 ------- Pin 7 of IC
    Arduino Digital pin 9 ------- Pin 10 of IC
    Arduino Digital pin 10 ----- Pin 15 of IC
    Then you will have to upload the code below to your arduino:
    ////////////////////
    void setup()
    {
    pinMode(5, OUTPUT);
    pinMode(6, OUTPUT);
    pinMode(9, OUTPUT);
    pinMode(10, OUTPUT);
    delay(3000);
    }
    void loop()
    {
    digitalWrite(5, HIGH);
    digitalWrite(9, HIGH);
    delay(3000);
    digitalWrite(5, LOW);
    digitalWrite(9, LOW);
    digitalWrite(5, HIGH);
    digitalWrite(10, HIGH);
    delay(2000);
    digitalWrite(5, LOW);
    digitalWrite(10, LOW);
    digitalWrite(6, HIGH);
    digitalWrite(9, HIGH);
    delay(2000);
    digitalWrite(6, LOW);
    digitalWrite(9, LOW);
    digitalWrite(6, HIGH);
    digitalWrite(10, HIGH);
    delay(3000);
    digitalWrite(6, LOW);
    digitalWrite(10, LOW);
    delay(3000);
    }
    ////////////////////
    _____________________________________
    Please follow me on my instructables profile: www.instructables.com/member/S...
    My blog: sirkitstudio.blogspot.in
    For any assistance, you can drop a comment below or contact me personally at agrawalsanyam946@gmail.com
    I can even provide you the pdf file will detailed instructions if you want.
    Don't forget to subscribe for more cool projects!
  • НаукаНаука

Комментарии • 1