How to make Robot Sumo / sumo robot yasash
HTML-код
- Опубликовано: 10 сен 2024
- Sxema disk.yandex.ru...
Sketch / Code disk.yandex.ru...
3D Wheel disk.yandex.ru...
Telegram t.me/Robomax_M
★song : Courtney Jenaé - Accelerate (Sauniks Remix)
►Sauniks:
/ sauniks
/ sauniksofficial
/ sauniks
►Courtney Jenaé:
/ courtneyjenae
/ courtneyjena. .
/ courtneyjenae
#diysumo #robotsumo #arduinosumo
What motor did you use sir for the wheels?
Умно придумано!
Best
Класс!!!! Крутые видео снимаете
Ахах, а чё так можно было что-ли 😂
Judayam zor
How to do this using motor control shield and arduino
Zo'r
Бунда линия сенсори йукми ? Линиядан чикиб кетиб колмайдими ?
👍👍👍👍👍
Ko'rinmas sumochaku
where can i buy complte parts of it??
Online Store
what kind of dc dc motor used??
Motorresuctor for steren shop
iltimos
чем то напоминает искусственный интеллект
pulini beraman yasab berasizmi?
assalomu aleykum. ha. telegramda yozing
Hallo, can you say to me, what apk did you use to open the file???
because i cant open it..... I think if i download same apk like you, i can open the file!!!
Please can you or anyone who can open the file say to me 👏👏
Arduino IDE
@@Shuxrat_Zokirov can you copy and paste here all of your code in arduino IDE? Please
@@falaksyarie3299 #include
Servo myservo;
int trigPin = 6;
int echoPin = 7;
int davomiylik, sm;
unsigned long last;
void oldinga () {
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
}
void chapga () {
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
}
void toxta() {
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
}
void ultrasonic() {
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15);
digitalWrite(trigPin, LOW);
davomiylik = pulseIn(echoPin, HIGH);
sm = davomiylik / 58;
}
int static state = 0;
void setup() {
myservo.attach(8);
myservo.write(90);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
delay(3000);
}
void loop() {
if (state == 0) {
myservo.write(90);
delay(200);
ultrasonic();
if (sm > 1 && sm < 50) {
state = 2;
} else {
myservo.write(0);
delay(200);
ultrasonic();
if (sm > 1 && sm < 50) {
state = 1;
myservo.write(90);
} else {
myservo.write(180);
delay(300);
ultrasonic();
if (sm > 1 && sm < 50) {
state = 3;
myservo.write(90);
}
}
}
}
if (state == 1) {
oldinga();
delay(2000);
toxta();
state = 0;
} else if (state == 2) {
chapga();
delay(300);
oldinga();
delay(2000);
toxta();
state = 0;
} else if (state == 3) {
chapga();
delay(600);
oldinga();
delay(2000);
toxta();
state = 0;
} else {
toxta();
state = 0;
}
}
kodi ishkamadiku
jvob yozing
Дерзкий, как пуля резкийку бу бача
Qoyil kuchi yetmasa ham aqli yetarkan
tel qilmng
Gugurtni kursa ham robotni kurmadi
Kruta
Kechirasiz santimetrlarini aytib yuboring iltimos. Yoki telegram nomberizni yozing iltimos