чертовщина какаято. купил arduino
подключил серво для теста
залил скетч
перебираю цифровые пины - не крутит серво ни на одном !Код:#include <Servo.h> Servo servoMain; // Define our Servo int ledPin = 13; void setup() { servoMain.attach(12); servoMain.write(90); pinMode(ledPin, OUTPUT); } void loop() { servoMain.write(45); // Turn Servo Left to 45 degrees digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(100); delay(1000); // Wait 1 second servoMain.write(0); // Turn Servo Left to 0 degrees delay(1000); // Wait 1 second digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(100); // servoMain.write(90); // Turn Servo back to center position (90 degrees) // delay(1000); // Wait 1 second // servoMain.write(135); // Turn Servo Right to 135 degrees // delay(1000); // Wait 1 second // servoMain.write(180); // Turn Servo Right to 180 degrees // delay(1000); // Wait 1 second // servoMain.write(90); // Turn Servo back to center position (90 degrees) // delay(1000); // Wait 1 second }
я гдето ошибся или в чем дело ?




 
			
			 
					
				 arduino - не работает тест сервомотора
 arduino - не работает тест сервомотора
				 
					
					
					
						 Ответить с цитированием
  Ответить с цитированием