Mundarija:
Video: RPS Bot: 3 qadam
2025 Muallif: John Day | [email protected]. Oxirgi o'zgartirilgan: 2025-01-13 06:58
Bu mening o'qituvchilar uchun birinchi loyiham. Umid qilamanki, odamlar sizga yoqadi. Bu arduino loyihasi. Sizga nima kerak: Arduino (men arduino nano ishlatganman) 3x servo dvigatel Ultrasonik sensorBuzzerLed
PCB taxtasi
Tayoqlar (qo'llar uchun)
1 -qadam: O'chirish
// ultratovush
vcc pin --------- 5V pinli arduino
trigl pin --------- d6 pinli arduino
echo pin --------- d5 pin arduino
gnd pin --------- gnd pin arduino
// servo
VCC ------------ 5V arduinognd to _------------- gnd pin arduino
*Servo 1
signal pin ----------- d2 pin arduino
*servo 2
signal pimi ----------- d3 pinli arduino*servo 3
signal pimi ----------- d4 pinli arduino
// ovozli signal
gnd pin ------- gnd pin arduino
vcc pin -------- d8 pinli arduino
// LED
gnd pin ------- gnd pin arduino
vcc pin --------- d7 pinli arduino
Mana, jirkanch fayl:-
2 -qadam: tayanch
Baza ichidagi barcha servolarni yopishtiring. Bundan tashqari, taxtadagi sxemani tuzating. Qo'lni burab, servoga mahkamlang. Qo'lning rasmini chizib, ularni qo'ltiqqa yopishtiring. Siz hatto ularni chop etishingiz mumkin.
3 -qadam: kod
bu erda RPS kodi:-