Problem Arduino Script Please Help Want Servo Run Movements Motor Start Upload Script Serv Q37139436

Problem with Arduino Script! Please help!

I want the servo to run through its movements and THEN have themotor start. When I upload the script the servo runs fine but themotor will not run. Any help is much appreciated!

#include <Servo.h>

// Servo initialization
// Defining output pin
Servo myservo;   

// Hobby motor initialization
// Defining output pin
const int motorPin = 9; // Pin for motor

void setup() {

// Assigning PWM to send signals to motor
myservo.attach(5); // Pin for servo
myservo.write(90); // Starts the servo at 90 degrees (can move 90degrees clockwise of 90 degrees counterclockwise)

// Hobby motor setup
// Assigning the pin to be an output for the

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.