Muhammad Zulhilmi bin Kamaruddin (01DIP15F1072)
Noor Nadia binti Barhulin (01DIP15F1045)
Nurul Adilah binti Mohd Asri (01DIP15F1057)
Nur Azalifah binti Muhammad Anuar (01DIP15F1042)
Sinopsis
People often forget to lift the suspension of clothing during the day rain. For household, sometimes they forget to pick up their clothes when it gets dry. When raining they want to pick up the clothes but it was wet. This project can make the household pick up their clothes easily. The household just need to press the switch and the clothes from outside the house will enter the house. This project is to use Microcontroller PIC16F877A to install all program that will give instructions to conduct the system properly. This part needs DC motor to convert electrical power into mechanical power for retrieve-in all the clothes.
List of hardware
- Dc motor
- Pic microcontroller PIC16F877A
- Dc supplier
- Motor driver L293D
List of software
- Proteus 8 Professional
- MPLAB IDE v8.83
Video
Circuit Diagram
Coding
#include<htc.h>
__CONFIG (0x3F3A);
#define SW1 RB0
#define SW2 RB1
#define MOTOR_1 RD0
#define MOTOR_2 RD1
#define led1 RB7
void main()
{
void clockwise();
void counterclockwise();
void stopmotor();
TRISB = 0b00000011;
PORTB = 0b00000000;
TRISD = 0b00000000;
PORTD = 0b00000000;
SW1=0;
SW2=0;
MOTOR_1=0;
MOTOR_2=0;
while(1)
{
if (SW1==0)
{
counterclockwise();
}
else if(SW1==1)
{
if(SW2==1)
{
stopmotor();
}
}
if(SW2==0)
{
clockwise();
}
}
}
void clockwise()
{
MOTOR_1=0;
MOTOR_2=1;
led1=1;
}
void counterclockwise()
{
MOTOR_1=1;
MOTOR_2=0;
led1=1;
}
void stopmotor()
{
MOTOR_1=0;
MOTOR_2=0;
led1=0;
}
Conclusion
In conclusion it can be said that this project will help many people out there. Therefore this project does not consist a lot of money.
No comments:
Post a Comment