Thursday, 23 March 2017

Motorised Laundry System (EMSA)

Motorised Laundry System (EMSA)
MUHAMMAD ISKANDAR BIN MOHD SANI                          01DIS15F1025
MUHAMMAD HAMIZAN BIN MD MARZUKI                        01DIS15F1006
AHMAD HANIF BIN BADRUL HISHAM                                  01DIS15F1007          
SYAFIQ AIMAN BIN SOBRI                                                        01DIS15F1079

INTRODUCTION
Motorised Laundry System

Nowadays, it is hard to keep track on the progress of our laundry that we kept on drying outside in the daylight. But, little did we know that the weather is not going to be sunny all the time because rains and heavy storm might come along in the way when we want to do our laundry.

Hence, we have created a Motorised Laundry System to prevent the laundry from getting ruined by the rain when we cannot collect it because of the weather is raining heavily or so. Besides, it eases our burden of having to carry the laundry there and then by just simplifying it with a single switch to do all the work for us.


The system works by pressing the switch to move the laundry outside and pressing it again to move the laundry back inside the area where there is a roof covering the laundry from rains.
This is a simple project from us using a PIC16F877A .This tools function when the user presses a button and dc motor serves to pull the clothes into the home area covered by the aid of the conveyor belt.This will make the user ease when the rain come and we just push the button to pull the clothes into the home area.
A simple prototype model


1     List of hardware, software and components

Hardware
i. DC motor
ii. LED GREEN
iii. L293D
iv.SWITCH
v.Capasitor
vi.PICKIT 2(PIC16F877A)

Software
i. MPLab ver 8.3
ii. Hi-Tech C compiler ver 2.3

     Circuit diagram

3    Coding
#include<htc.h>
void delay(unsigned long);
void forward(void); 
void stop(void);

__CONFIG (0x3F3A);
#define sw1 RB0 
#define MOTOR_2  RB4 
#define PWM      RC2

void main()
{
      TRISB=0b00000001;
      PORTB=0b00000000;
      TRISC=0b00000000;
      PORTC=0b00000000;

while(1)
{
     if(sw1==1) //press sw1, move clockwise
{

forward();
}
else
{
     stop(); //stop the motor
}
}
}
void forward(void)
{
MOTOR_2=0;
PWM=1;
}
void stop(void)
{
MOTOR_2=0;
PWM=0;
}

void delay(unsigned long)
{
 unsigned char i;
  for (i=0x08;i!=0;i--)
  {
   unsigned char j;
   for (j=0x00;j!=0;j--)
  {
  unsigned char k;
  for (k=0x00;k!=0;k--)
{
 }
 }
}
}
    

   Video



No comments:

Post a Comment