Mexanik harakatlarni mikrokonroller orqali boshqarishda Arduino Uno va
elektrodvigatelning uzatma orqali ulanish sxemasi
Mikrokontroller orqali relelarni ulanish sxemasi
Mikrokontrollerdan keladigan signalni kuchaytirib
kontaktni iishga tushirgan
holatda uni harakatini qaysi tomonga yurishini ta’minlashda ushbu sxema o’rinli
bo’ladi:
Dastur
listing
int k=0,t=0;
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
Serial.begin(9600);
}