A Simple Proteus project for Beginners
Obstacle Avoiding Circuit :
We have to
draw an obstacle avoiding circuit in proteus. For that, open proteus and select
the following components . If you don't have proteus , then you can download and install it from here .
1. Arduino UNO R3
2. LOGICSTATE (I have used this instead
of “Echo” pin of the ultrasonic sensor)
3. 2 DC Motors
4. Motor Driver (L293D)
5. Ground
6. 5 Volt Power supply
th
fig : - Schematic diagram for the circuit
sc
Connection :
1. LOGICSTATE to PIN 2
2. Left Motor to OUT 1 & OUT 2
3. Right Motor to OUT 3 & OUT 4
4. IN1 to PIN 3 & IN2 to PIN 4
5. IN3 to PIN 5 & IN4 to PIN 6
6. VSS,VS,EN 1 & EN 2 to 5 V power suplly
Test :
Also, you can test the circuit ,if it’s working properly. For that, write
an Arduino code for obstacle avoiding .
void setup() {
pinMode(2, INPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
void general(){
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
}
void stop(){
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
}
void loop(){
if(digitalRead(2)==HIGH){
stop();
}
else{
general();
}
}
Now
1. Compile the code.
2. Select the .hex file
location of the code from the bottom of the compiling page.
3. Open the Proteus ,
double left click on Arduino board.
4. Paste the file on
the marked space.
5. Run the simulation .
Observation:
On pressing
the Logic State to HIGH the motors will stop , this means the detection of obstacle
and on the LOW state the motors will run , that means there are no obstacles.
It is a small project for beginners . You can try it , it will be fun.
Contribution : Snigdharani Dash
You can find her on linkedin
Keep up the good writing.
ReplyDeletewincracker.com
Proteus Crack
I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
ReplyDeleteProteus Crack
EaseUS Data Recovery Wizard Crack
Softube Weiss DS1-MK3 Crack
Thanks , means a lot.
Delete
ReplyDeleteGreat set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it up
Proteus Crack
Grand Theft Auto V Crack
Website Auto Traffic Crack
Thank You
DeleteThanks, means a lot to me..
ReplyDelete