25-01-2020, 23:08
(Ten post był ostatnio modyfikowany: 25-01-2020, 23:10 przez mikolaj_plaz.)
Witam!!! Wczoraj otrzymałem paczkę z serwem towerPro sg90 360 stopni. Podłączyłem je do arduino, Wgrałem program z biblioteką servo.h, a serwo ani drgnie. Zasilanie serwomechanizmu mam z pakietu 4,8v do odbiorników rc, płytka arduino nano. Wie ktoś dlaczego to nie działa ?
kod jakiego użyłem:
#include <Servo.h>
Servo serwomechanizm;
void setup() {
// put your setup code here, to run once:
attach.serwomechanizm(9)
}
void loop() {
// put your main code here, to run repeatedly:
write.serwomechanizm(180)
}
kod jakiego użyłem:
#include <Servo.h>
Servo serwomechanizm;
void setup() {
// put your setup code here, to run once:
attach.serwomechanizm(9)
}
void loop() {
// put your main code here, to run repeatedly:
write.serwomechanizm(180)
}