標題:
L298N直流電機驅(qū)動模塊調(diào)試程序+電路圖
[打印本頁]
作者:
李如意
時間:
2021-7-7 00:09
標題:
L298N直流電機驅(qū)動模塊調(diào)試程序+電路圖
電路圖:
L298N實現(xiàn)直流電機的轉(zhuǎn)動
51hei圖片20210707101458.png
(11.9 KB, 下載次數(shù): 49)
下載附件
2021-7-7 10:15 上傳
實現(xiàn)電機的左轉(zhuǎn):
#include<reg51.h>
sbit IN1=P2^0;
sbit IN2=P2^1;
sbit IN3=P2^2;
sbit IN4=P2^3;
void main()
{
IN1=1,IN2=0;
IN3=1,IN4=0;
}
//俺是菜雞在一點點的學,不要噴我
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1