Question: It is required to design the controller for a washing machine. The system is composed of the following components: PIC16F84A microcontroller A DC motor, and

It is required to design the controller for a washing machine. The system is composed of the following components:

PIC16F84A microcontroller

A DC motor, and an H bridge

An electronic valve to control the flow of water

A switch to select the washing cycle type, we have a cycle for white clothes and a cycle for coloured clothes

A push button to start the washing cycle

A heating element to heat the water

The washing machine operates as follows:

1) The system waits for the start button to be pushed

2) The heater is turned on for a period of time: 40 seconds for coloured clothes and 80 seconds for white clothes

3) The water valve is turned on for 80 seconds

4) Motor is rotated clockwise for 20 seconds

5) Motor is rotated counter clockwise for 20 seconds.

6) Repeat steps (4) and (5) for a period of time: 40 minutes for coloured clothes, and 80 minutes for white clothes

Write a program in C to operate the system, Assume a delay of 20 seconds is available.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!