Ticker

6/recent/ticker-posts

Header Ads Widget

How to simulate DC motor with motor driver in proteus?

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:


//* 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) ;
}

Post a Comment

0 Comments