Introduction: Automation of Washing Machine Using Arduino

We are having a semi automatic washing machine. Timer switch and drain switch are spoiled. I tried to replace them but it costs more money. We stopped using it. Then I thought to remove the manual switches and make it automatic. Then I tried this using arduino and worked well with lesser cost. I presented this to my grand mother. In their house there is no over head water tank system. So I didn't try for automatic water filling. We have to fill water manually.

Step 1: Parts Needed

  • Arduino UNO
  • 2 channel relay board
  • 12v 1amp step down transformer
  • 5v regulator IC
  • L293D motor driver board
  • 60 rpm geared motor
  • PCB clad
  • common anode 7 segment display
  • 2* Tactile switches
  • Threaded rod with nut
  • Wires
  • 2* push to ON switches
  • Buzzer
  • 2* 10k resistors

Step 2: Code

Initially it checks for drain closed or not. If it is open drain will be closed automatically, if not all the filled water will be drained. After the drain is closed program runs. There are three timer settings i.e.,3/6/9 mins. After completing washing drain opens and after few mins drain closes and it beeps indicating that the washing is completed. During drain open display blinks until drain is closed.

Step 3: Control Pannel

make the control panel using 2 tactile switches as shown in the pictures. Diptrace PCB layout is attached. For smooth functioning of tactile switches I used styrofoam, It acts as waterproof.

Step 4: Drain System

In semi automatic washing machines the drain knob is connected to the drain switch with a nylon thread. When we operate the drain switch, it pulls the drain switch and lets the water drain. I replaced the manual switch using geared motor along with threaded rod. I inserted nut into a wooden block, and fixed the threaded rod to motor so that it pulls the drain switch with nylon thread as shown in the picture. I used two push to ON switches to control the range of geared motor movement to a certain distance. Otherwise it may pull off and break the switch or may not open fully to let the water drain. This is the major setup to take care.

Step 5: Washing Motor Control and Wiring

Washing motor contains 3 wires. In my washing machine one is directly connected to phase. Remaining two for CW and CCW motion. I connected through relay board as shown in the picture. Neutral is connected to relay board as shown in the picture. When relay 1 is ON motor rotates CW. When both relays are ON motor rotates CCW.

Step 6: Fitting

Fit all the components as shown in the pictures.

Step 7: Wiring

L293D motor driver:

  • 5v to EN A pin.
  • A1 to pin 4 of arduino, A2 to pin 5.
  • Supply 12v to board.
  • Geared motor red wire to MA1, black to MA2.

Control board:

Connect mode switch to arduino pin 3, start switch to pin2 and power the board with 5v.


Connect +ve to pin 6 of arduino and -ve to ground.

7-Segment display:

Connect anode to +5v and remaining to arduino pins from 12-19.

Step 8: Testing

Step 9: Washing Clothes After Assembling


JaidityaK made it! (author)2017-07-17

Hi I have a capacitor attached to the motor of my washing machine. will it be directly connected to phase wire between the relay and the motor?

sandilya.anisetty made it! (author)sandilya.anisetty2017-07-18

Hi... Let me know the actual wiring. Then I can suggest you.

JaidityaK made it! (author)JaidityaK2017-07-28

3 wires go inside the motor (as shown by you also). 2 wires are directly connected to a capacitor and one wire(phase) is coming from PCB of the machine. And what do i need to add bigger switch buttons to this motor.

riyancy made it! (author)2017-06-19

Dear Sandilya,

I have old front loading washer with broken timer. Can I fix this to front loader with same setup or do I need code changes. Pls advise.


Riyancy K

sandilya.anisetty made it! (author)sandilya.anisetty2017-06-19

Thank you for reading my Instructable. Is it manual timer? If it is manual timer, by knowing the wiring connections only I can advise you.

DavidS697 made it! (author)2017-05-28

Amazing. What was your total cost of creating this?

sandilya.anisetty made it! (author)sandilya.anisetty2017-05-28

Thank you. Cost is around $10

BeachsideHank made it! (author)2015-12-20

Man, you should be given a Nobel prize in economics. Electronic controls in appliances are notorious for consigning an otherwise good, usable machine to the junkyard simply because the original electronics are obsoleted by the manufacturer, sometimes within a year or less after model launch. I can't praise your idea highly enough, you have potentially save tens of thousands of currency with this tip, thanks.

DavidS697 made it! (author)DavidS6972017-05-28

Dear BeachsideHank, I agree with you. A lot of people nowadays simply just throw otherwise well made machines out, due to that a little tiny thingummibob has stopped working. They don't know what to do - and the so called and self-pronounced professional wants like USD 100 just to look at the thing, and then he wants maybe USD 500 to fix it, even though he knows that it is maybe a thermal fuse or similar little thing. I think, without knowing it, that it is greed and lack of education of our population. Most people would be able to fix those things, if they had not wasted some 1000 hours on useless TV series - per year ... And if TV was forbidden, as an example, then people would be doing much more creative things than sitting there as coach-potatoes not being able to do more than saying boo or baa, ha ha ha... So, lots of kudos to the likes of sandilya.anisetty :-) for doing something.

sandilya.anisetty made it! (author)sandilya.anisetty2015-12-20

Thank you so much

TheKitMurkit. made it! (author)2016-11-24

Great work! But how do you control the rotation speed of motor? It will be bad for the machine if motor goes at full speed in all situations.

sandilya.anisetty made it! (author)sandilya.anisetty2016-11-26

Thank you... Speed controller is not provided by the manufacturer in my machine. Speed of the motor is constant.

Mjtrinihobby made it! (author)2016-10-09

You have the mind of an engineer! Well documented and executed work! Bravo. Why didn't you enter this into one of the contests? You would have won for sure!

sandilya.anisetty made it! (author)sandilya.anisetty2016-10-10

Thank you

ThomasK19 made it! (author)2015-12-20

I recently repaired my dryer where the program switch was toasted with an Attiny and upgraded it with a humidity sensor. Reminds me making an i'ble for that as well :-) Like in your case the formerly poor automation now only runs the dryer until there's nothing left to dry. And the Attiny control was by far cheaper than the replacement program switch!

sandilya.anisetty made it! (author)sandilya.anisetty2015-12-21

Thank you for visiting my Instructable. Using humidity sensor is a nice idea. Why dont you publish in Instructables? I am interested in your project.

About This Instructable




More by sandilya.anisetty:DIY Car Nearside CameraDIY PCB mini drill pressSpecial and Tasty Chicken Fry
Add instructable to: