Вы здесь

Урок 11. Биполярный шаговый двигатель на L298N

Комментарии: 13764



В этом уроке вы узнаете как подключить биполярный шаговый двигатель к arduino через драйвер L298N.

Я подключил:
Ln1 к Pin3
Ln2 к Pin2
Ln3 к Pin5
Ln4 к Pin4

Скетч код:

//Определяем порты подключенные к L298N
int input1 = 2;
int input2 = 3;
int input3 = 4;
int input4 = 5;
 
void setup()
{
  pinMode(input1,OUTPUT);
  pinMode(input2,OUTPUT);
  pinMode(input3,OUTPUT);
  pinMode(input4,OUTPUT);
}
 
void loop()
{
//1-ый шаг
digitalWrite(input1,HIGH);
digitalWrite(input2,LOW);
digitalWrite(input3,LOW);
digitalWrite(input4,HIGH);
delay(10);  //задержка между шагами регулирует скорость двигателя
 
//2-ой шаг
digitalWrite(input1,LOW);
digitalWrite(input2,HIGH);
digitalWrite(input3,LOW);
digitalWrite(input4,HIGH);
delay(10);
 
//3-ий шаг
digitalWrite(input1,LOW);
digitalWrite(input2,HIGH);
digitalWrite(input3,HIGH);
digitalWrite(input4,LOW);
delay(10);
 
//4ый шаг
 
digitalWrite(input1,HIGH);
digitalWrite(input2,LOW);
digitalWrite(input3,HIGH);
digitalWrite(input4,LOW);
delay(10);
//для полного оборота надо совершить несколько циклов по 4 шага
}

Комментарии:

related:www.viagra.com/ viagra http://viagrawithoutdoctorusa.net - viagra without a doctor prescription viagra quick <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - viagra and naturists gallery viagra online uk

value pharmaceutical viagra http://viagrawithoutdoctorusa.net - viagra without a doctor prescription prozac compatability with viagra <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - viagra dosage when to take usergroups viagra 20mg side effects jump to

viagra generic name show the last http://viagrawithoutdoctorusa.net - viagra without a doctor prescription levitra vs viagra comparison guestbook_sign.php <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - viagra side effects for young men sort by viagra and ecstasy

viagra for daily use reviews search http://viagrawithoutdoctorusa.net - viagra without a doctor prescription viagra for daily use reviews total posts <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - viagra compatability with other medication viagra pills india go to page...

viagra generic name most users ever online was http://viagrawithoutdoctorusa.net - viagra without a doctor prescription ramipril viagra <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - generic viagra usa no prescription levitra dosage viagra vs levitra guest.asp

can i take viagra if i have not got erectil problems http://viagrawithoutdoctorusa.net - viagra without a doctor prescription what is the deffirence between genric viagra and brand viagra <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - does viagra work immediately diary.cgi?mode= buy online with visa card female viagra

viagra 20 http://viagrawithoutdoctorusa.net - viagra without a doctor prescription canadian pharmacy viagra 20mg you cannot reply to topics in this forum <a href="http://viagrawithoutdoctorusa.net">viagra without a doctor prescription</a> - where can i find viagra professional in london viagra super active

cialis 5mg generic forum rules http://cialiswithoutdoctorprescr.org - cialis without a doctor's prescription viagra fiyatA± <a href="http://cialiswithoutdoctorprescr.org">cialis without a doctor's prescription</a> - viagra generics community cheapest viagra online

cialis drug http://cialiswithoutdoctorprescr.org - cialis without a doctor's prescription uk pharmacy online viagra <a href="http://cialiswithoutdoctorprescr.org">cialis without a doctor's prescription</a> - generic viagra right now viagra vs viagra prices gaestebuch.html

heap cialis http://cialiswithoutdoctorprescr.org - cialis without a doctor's prescription viagra 5 mg coupon website <a href="http://cialiswithoutdoctorprescr.org">cialis without a doctor's prescription</a> - viagra for women dosage social groups viagra information dosage no new posts

cialis 5mg canada announcements http://cialiswithoutdoctorprescr.org - cialis without a doctor's prescription buy generic .5mg viagra daily <a href="http://cialiswithoutdoctorprescr.org">cialis without a doctor's prescription</a> - viagra overnight delivery real brand viagra no prescription

buy cialis online icq number http://cialiswithoutdoctorprescr.org - cialis without a doctor's prescription soft viagra reliable <a href="http://cialiswithoutdoctorprescr.org">cialis without a doctor's prescription</a> - viagra from canada online pharmacy log out poppers viagra and meth

on line cialis http://pharmshop-online.net - viagra for sale cialis tadalafil reviews add.asp <a href="http://pharmshop-online.net">viagra for sale</a> - uk suppliers of cialis cialis from canada pharmacy this page has had

cialis lilly http://pharmshop-online.net - viagra for sale cialis for women does it work jump to <a href="http://pharmshop-online.net">viagra for sale</a> - does cialis work for everyone guestbook.htm cheapest genuine cialis cialis online

cialis reviews user avatars http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription mexico pharmacy cialis gto <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - viagra with cialis cialis 20mg pills legend

cialis daily overcomes erectile dysfunction caused by meth use http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis dosage forms help <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - generic cialis review vendita online cialis generico

cialis generic name show the last http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis gerenico <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis 20mg i forgot my password canada cialis

free shipping cialis cheap http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis 20 mg coupon knowledge base <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis 10 mg 4 tablet knowledge base cialis lawyer columbus

propecia cialis soft tabs online http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis pills online <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis and alcohol interaction topics generic cialis no prescription

how to cure ed http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis for order <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - purchase of viagra and cialis pills buy cialis online website

cialis from canada online sticky topic [url=http://viagrawithoutdoctorprescr.org]viagra without a doctor prescription[/url] cialis fda approval bph <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - can u get cialis into canada from india treatment for ed

buy cialis uk 99 http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis doesnt seem to work for me <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis 20mg tablets most users ever online was combining cialis and viagra

cialis 20mg side effects jump to http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription trackback skriv en kommentar cialis <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis enligne cialis for daily use commercial what

cialis mayo marriage counseling wang wangs http://viagrawithoutdoctorprescr.org - viagra without a doctor prescription cialis super active <a href="http://viagrawithoutdoctorprescr.org">viagra without a doctor prescription</a> - cialis 20mg online search cialis viagra differences

cheap generic cialis http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis discount <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis 10 mg 4 tablet most users ever online was order cialis online no prescription

cialis 20mg canada administrators [url=http://viagrawithoutdoctorpresc.com]viagra without a doctor prescription[/url] why professional cialis <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis vs viagra vs levitra which is better msboard.cgi?id= cialis information

cialis coupon free trial location http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription vipps approved pharmacy for cialis <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - is cialis good cialis tablet

cialis for daily use prices logged http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis therapy guidelines <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - side effects of cialis penis erection that is painful or lasts 4 hours or longer cialis from canada with a prescription reply #6 on

does cialis work for performance anxiety fantasy.cgi http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis dosage 30 mg important topics <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis eli lilly prescription buy cialis online most users ever online was

dangers of cialis http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis online safety <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis 10mg how long does it last last post cialis without prescriptions

how long does cialis last http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis generic online if this is your first visit be sure to check out the faq by clicking the lin <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis dose mg contact info cialis 10 mg 4 tablet total posts

viagra or cialis what is the difference http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription buy cialis .u.k. <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - order cialis online usa cialis more:drug_side_effects

viagra vs cialis drugs gaestebuch.cgi http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis 10mg last post <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - viagra vs cialis pictures cialis coupon lilly help

cialis sale http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis and alcoholic drinks the team <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis for women my groups side effects of cialis penis erection that is painful or lasts 4 hours or longer

cialis daily overcomes erectile dysfunction caused by meth use http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis information logged <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - trackback lascia un commento cialis how to cure ed

cialis 5mg daily password http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription comparison online cialis <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - generic for cialis effective cialis soft

cialis and alcohol use posts http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis information blog find all posts <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis adn alcohol generic cialis india

cialis coupon code website http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis comparison levitra <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis generic online picture/text buy cialis online usa

cialis daily dose http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis directions <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis prescription cialis erection pictures

cialis and alcohol interaction board index http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis side effects cialis information in descending order <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis for women blogs centro de informaciA?n cialis generic find all posts by

what is the difference between man's cialis and women's cialis? http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis 10 mg effectiveness users browsing this forum <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - have nightmares when taking cialis cialis or viagra

viagra cialis levitra [url=http://viagrawithoutdoctorpresc.com]viagra without a doctor prescription[/url] cialis dose mg password <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis 20mg side effects username cialis online reviews last post

cialis price with insurance http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis concentration <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis mayo marriage counseling wang wangs discounted cialis tablets

soft cialis http://viagrawithoutdoctorpresc.com - viagra without a doctor prescription cialis to buy <a href="http://viagrawithoutdoctorpresc.com">viagra without a doctor prescription</a> - cialis 10mg or 20mg e-mail address cialis vs viagra comparison board.cgi?mode=

cialis from imdia http://cialiswalmart.biz - cialis over the counter at walmart cialis 5mg new posts <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - cialis 20mg canada return to board index is cialis safe

buy cheap cialis soft tabs pills online http://cialiswalmart.biz - cialis over the counter at walmart chemist's price of cialis <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - buying cialis over the counter us pharmacy leeds cialis

cialis for daily use http://cialiswalmart.biz - cialis over the counter at walmart cialis 7uk <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - cialis and alcohol consumption sort by cialis dosing

what is cialis http://cialiswalmart.biz - cialis over the counter at walmart cialis coupon lilly yabb <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - liquid cialis prix cialis 20mg

cialis and alcohol consumption administrators http://cialiswalmart.biz - cialis over the counter at walmart cialis half life <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - black cialis cialis 200mg

erection problems cialis http://cialiswalmart.biz - cialis over the counter at walmart cialis in new zealand <a href="http://cialiswalmart.biz">cialis over the counter at walmart</a> - cialis 20 mg 12 table total posts cialis coupon lilly important topics

Страницы