Learn to interface and simulate DC motor with motor driver in proteus professional.
Components Used:
- Arduino uno – 1
- L293D – 1
- Dc Motor 12 volt – 1
- 12 volt supply – 1
Source Code:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Code by satyam singh. ****** | |
//* subscribe my youtube channel from below link | |
//* https://www.youtube.com/channel/UCOrVJ1fDDCKDYMAYQmn6zWw | |
//* | |
//*************************************"**********************// | |
#define M1 7 | |
#define M2 6 | |
void setup() { | |
pinMode(M1,OUTPUT) ; | |
pinMode(M2,OUTPUT) ; | |
} | |
void loop() { | |
digitalWrite(M1,HIGH) ; | |
digitalWrite(M2,LOW) ; | |
delay(3000) ; | |
digitalWrite(M1,LOW) ; | |
digitalWrite(M2,HIGH) ; | |
delay(3000) ; | |
} |
0 Comments