Servo motor tip SG90 cu rotatie la 360 grade, greutate 9grame, ideal pentru aplicatii RC.
Rotatia este continua si nu se poate controla pozitia exacta a servomotorului la un anumit grad. Prin "servo.write" se stabileste directia si viteza de rotatie a servomotorului.
Specificatii:
Tensiune alimentare: 3 - 7.2VDC
Viteza functionare: 0,12 s/60o (la 4,8V)
Cuplu in blocare: 1Kg/cm la 4.8V
Dimensiuni mm: 22 x 11.5 x 22.5
Include diferite estensii brat si suruburi de fixare
Exemplu cod test pentru servomotor:
// zoomkat 3-28-14 serial servo incremental test code
// using serial monitor type a character (s to increase or a
// to decrease) and enter to change servo position
// (two hands required, one for letter entry and one for enter key)
// use strings like 90x or 1500x for new servo position
// for IDE 1.0.5 and later
// Powering a servo from the arduino usually *DOES NOT WORK*.
#include<Servo.h>
String readString;
Servo myservo;
int pos=1500; //~neutral value for continous rotation servo
//int pos=90;
void setup()
{
myservo.attach(9, 400, 2600); //servo control pin, and range if desired
Serial.begin(9600);
Serial.println("serial servo incremental test code");
Serial.println("type a character (s to increase or a to decrease)");
Serial.println("and enter to change servo position");
Serial.println("use strings like 90x or 1500x for new servo position");
Serial.println();
}
void loop()
{
while (Serial.available()) {
char c = Serial.read(); //gets one byte from serial buffer
readString += c; //makes the string readString
delay(2); //slow looping to allow buffer to fill with next character
}
if (readString.length() >0) {
if(readString.indexOf('x') >0) {
pos = readString.toInt();
}
if(readString =="a"){
(pos=pos-1); //use larger numbers for larger increments
if(pos<0) (pos=0); //prevent negative number
}
if (readString =="s"){
(pos=pos+1);
}
if(pos >= 400) //determine servo write method
{
Serial.println(pos);
myservo.writeMicroseconds(pos);
}
else
{
Serial.println(pos);
myservo.write(pos);
}
}
readString=""; //empty for next input
}
Detalii
Quick Compare
Produs |
|
|
|
|
Availability |
|
|
|
|
Pret |
10,74 lei
|
20,00 lei
|
18,00 lei
|
20,00 lei
|
Descriere |
Servo motor tip SG90 cu rotatie la 360 grade, greutate 9grame, ideal pentru aplicatii RC. Rotatia este continua si nu se poate controla pozitia exacta a servomotorului la un anumit grad. Prin "servo.write" se stabileste directia si viteza de rotatie a servomotorului. Specificatii: Tensiune alimentare: 3 - 7.2VDC Viteza functionare: 0,12 s/60o (la 4,8V) Cuplu in blocare: 1Kg/cm la 4.8V Dimensiuni mm: 22 x 11.5 x 22.5 Include diferite estensii brat si suruburi de fixare Exemplu cod test pentru servomotor: // zoomkat 3-28-14 serial servo incremental test code // using serial monitor type a character (s to increase or a // to decrease) and enter to change servo position // (two hands required, one for letter entry and one for enter key) // use strings like 90x or 1500x for new servo position // for IDE 1.0.5 and later // Powering a servo from the arduino usually *DOES NOT WORK*. #include<Servo.h> String readString; Servo myservo; int pos=1500; //~neutral value for continous rotation servo //int pos=90; void setup() { myservo.attach(9, 400, 2600); //servo control pin, and range if desired Serial.begin(9600); Serial.println("serial servo incremental test code"); Serial.println("type a character (s to increase or a to decrease)"); Serial.println("and enter to change servo position"); Serial.println("use strings like 90x or 1500x for new servo position"); Serial.println(); } void loop() { while (Serial.available()) { char c = Serial.read(); //gets one byte from serial buffer readString += c; //makes the string readString delay(2); //slow looping to allow buffer to fill with next character } if (readString.length() >0) { if(readString.indexOf('x') >0) { pos = readString.toInt(); } if(readString =="a"){ (pos=pos-1); //use larger numbers for larger increments if(pos<0) (pos=0); //prevent negative number } if (readString =="s"){ (pos=pos+1); } if(pos >= 400) //determine servo write method { Serial.println(pos); myservo.writeMicroseconds(pos); } else { Serial.println(pos); myservo.write(pos); } } readString=""; //empty for next input } |
Senzor MQ4 folosit pentru detectarea gazelor naturale si a metanului. Specificatii: Senzorul de gaz este Dioxidul de Staniu (SnO2) cu conductivitate scazute in aerul curat. Tensiune alimentare: 5VDC, 150mA Concentratie detectata: 300 - 10000ppm Output: Pin Digital sau pin Analogic Iesire Analogica: 0 - 5V; voltajul creste sau scade in functie de concentratia detectata Iesire Digitala TTL
Exemplu cod citire analogica: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability } |
Senzor MQ5 folosit pentru detectarea gazelor naturale, GPL si fum de carbuni. Specificatii: Rezistenta excelenta la interferenta cu Alcool si fum Tensiune alimentare: 5VDC, 150mA Output: Pin Digital sau pin Analogic Iesire Analogica: 0 - 5V; voltajul creste sau scade in functie de concentratia detectata Iesire Digitala TT
Exemplu cod citire analogica: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability } |
Senzor MQ6 folosit pentru detectarea GPL (gaz petrol lichid), Butan, Propane, LNG (liquefied natural gas). Specificatii: Rezistenta excelenta la interferenta cu Etanol si Fum Tensiune alimentare: 5VDC, 150mA Output: Pin Digital sau pin Analogic Iesire Analogica: 0 - 5V; voltajul creste sau scade in functie de concentratia detectata Iesire Digitala TTL
Exemplu cod citire analogica: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability } |
| No features to compare | ||||
There are no products selected for comparison

Comentarii Produse