Jump to content
43oh

ninjaplatypus42

Members
  • Content Count

    2
  • Joined

  • Last visited

About ninjaplatypus42

  • Rank
    Noob Class
  1. I have done that. I've gotten the ultrasonic to give me back correct values via the serial monitor, and i can make the servo do whatever i want separately.
  2. I have a code from an arduino to control servo position based on the distance output of the ultrasonic sensor. The servo just turns back and forth and there's no serial output at all. Everything is attached to the appropriate pins. I'm literally brand new at this so i really have no idea how to trouble shoot. Any help would be appreciated. This is the code i'm using. #include <Servo.h> //Setup the variables for the HC-SR04 const int trigPin = 3; const int echoPin = 4; // create servo object to control a servo // a maximum of eight servo objects can be created Servo myservo;
×
×
  • Create New...