Открыть Электронные книги
Категории
Открыть Аудиокниги
Категории
Открыть Журналы
Категории
Открыть Документы
Категории
Arduino
LEGO TECHNIC DIY
Tower Pro
9g SG90
SG90
SG90 ( Micro
Servo 9g ):
: 3V 7.2V ()
:22mm x 11.5mm x 22.5mm
: 9
: -30 +60
( Ground,
GND Arduino )
+5 V (
5V Arduino )
(
Arduino )
Tower Pro.
Servo,
.
1 #include <Servo.h>
, .
1 Servo myservo;
setup()
.
9.
1 void setup()
2 {
3 myservo.attach(9);
4 }
1 void loop()
2 {
3 myservo.write(60);
4 delay(100);
5 }
60 .
SG90
,
1
.
1 #include <Servo.h>
2
3 Servo myservo;
4
5 void setup()
6 {
7 myservo.attach(9);
8 }
9
10 void servoslow( Servo num, int pos, int time, int start) // robotday.ru ***
11 {
12 num.write(start);
13
14 for ( int i=start; i<pos; i++)
15 { num.write(i);
16 delay(time);
17 }
18 }
19
20 void loop()
21 {
22
23 servoslow(myservo, 180, 10, 0);
24
25 }
servoslow.
:
1.
2. ( )
3. (
,
)
4. .
.
0 180
.
,
,
,
.
.
, 0
10-15
,
165-170 .
.
,
.
,
.
,
,
.
Arduino, SG90,
10
Bu4 says: March 12, 2017 at 11:35 pm
?
9v = 1.67a
5v = 2.0a
?
Reply
Reply
.
. ?
Reply
:
, ,
1/. ?
Reply
. , .
, , .
, .
Reply
, , Class Servo
myServo.read()
Reply
, ,
Tower Pro 9g SG90?
Reply
. .
( ,
) .
.
Reply
Reply
Reply
Leave a Reply
Your email address will not be published.
Comment
Name
Website
Post Comment