Thread Number: 20610
Lee's project
[Down to Last]

automaticwasher.org's exclusive eBay Watch:
scroll >>> for more items --- [As an eBay Partner, eBay may compensate automaticwasher.org if you make a purchase using any link to eBay on this page]
Post# 327320   1/28/2009 at 09:50 (5,538 days old) by hotpoint95622 (Powys)        

hotpoint95622's profile picture
It all started when I came across a book on micro-controllers in Maplin called PIC in practice by D W Smith and is a simple project-based approach , the aim of the book is to teach you how to build control circuits using devices such as switches, keypads, analogue sensors and LED‘s, and so on. The PIC has timers and input, outputs. After a few weeks of working thought the book I hit on the idea of making my own washing machine control PCB using the 16F872 micro controller. I then started to work with some electronics books to teach myself how to use circuits to interface with the PIC (micro-controller) so that the outputs will work relay. PIC used 5V DC and relay use 12V DC and switch 240V AC to operate the machine components (pump, valves, motor) It has taken about 8 months to get to this point as I am total self taught and have made a lot of mistakes and found out the hard way.

So the program is complied in the software which comes with the PIC program board which connect to the office PC via the serial connection, the software converts the ASM file (assemble file) to the machine code which is then transferred to the chip (PIC).

The PIC is separated in to ports, which can be set up as an input or an output.

Porta 6bit = 6 input or output
Portb 8bit = 8 input or output
Portc 8bit = 8 input or output





Post# 327322 , Reply# 1   1/28/2009 at 09:54 (5,538 days old) by hotpoint95622 (Powys)        

hotpoint95622's profile picture
I have complied my program which look like this

;========================================================================================
;PROGRAM STARTS NOW
;========================================================================================

SW0 BTFSS PORTA,1 ;SELECTS WHITES 90c
GOTO WASH90

SW1 BTFSS PORTA,2 ;SELECTS COLOUR FAST 60c
GOTO WASH60

SW2 BTFSS PORTA,3 ;SELECTS NON COLOUR FAST 40c
GOTO WASH40

SW3 BTFSS PORTA,4 ;SELECTS DELICATE & WOOLENS 40c
GOTO WASH30

SW4 BTFSS PORTA,5 ;SELECTS LAST RINSE AND SPIN 1000rpm
GOTO H
GOTO SW0 ;RECHECK SWITCHES TILL ONE IS PRESSED

;========================================================================================
;WHITES 90c ( 12 SECOND WASH WITH 6 SECOND WAITE )
;========================================================================================

WASH90 BSF PORTB,0 ;SWITCH ON DOOR SAFETY LOCK
BSF PORTC,7 ;SWICTH ON HOT WATER VALVE
BTFSS PORTC,0 ;CHECK PRESSURE SWITCH
GOTO WASH90 ;REPEAT ABOVE TILL WATER REACHES FULL LEVEL

BCF PORTC,7 ;SWITCH OFF HOT WATER VALVE

CLRF COUNT
MOVLW .6 ;SET COUNTER TO 6
MOVWF COUNT

A BSF PORTB,2 ;WASH ACTION CLOCKWISE
CALL DELAY12

BCF PORTB,2 ;STOP WASH ACTION

CALL DELAY3
BSF PORTB,3 ;SWITCH ON CHANGE OVER RELAY
CALL DELAY3

BSF PORTB,2 ;WASH ACTION ANTI CLOCKWISE
CALL DELAY12

BCF PORTB,2 ;STOP WASH ACTION

CALL DELAY3
BCF PORTB,3 ;SWITCH OFF CHANGE OVER RELAY
CALL DELAY3

DECFSZ COUNT
GOTO A ;REPEAT ABOVE FOR 6 CYCLES 12 WASH ACTIONS

The basics of the program is to check the inputs and then move to the next instruction or repeat the last till the input is clear then move onto the next instruction to set the output and then Waite the amount of time in the delay before executing the next instruction to clear the output and so on.

Key:-
BTFSS bit test file skip if set (check input if it is set (on) skip to next instruction)
GOTO go to label stated (go to the label on the left and continue)
BSF bit set file (switch on output)
BCF bit clear file (switch off ouput)

If your think of trying this out it is best to start with the book I have used and work thought.

Photo of chip in program board connected to office PC


Post# 327323 , Reply# 2   1/28/2009 at 09:58 (5,538 days old) by hotpoint95622 (Powys)        

hotpoint95622's profile picture
More to come when I have found a suitable host machine, I would like to find a hotpoint 95

Post# 327327 , Reply# 3   1/28/2009 at 10:44 (5,538 days old) by unimatic1140 (Minneapolis)        

unimatic1140's profile picture
Very interesting Lee, I'm interested to see the interface you built between the computer and the washer as I have done something very similar with my Super Unimatic Washer.

Post# 327349 , Reply# 4   1/28/2009 at 12:50 (5,538 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
Hi, there is no interface between the computer and the washer, once the chip is programmed it works alone, I have build a circuit board to hold the chip and it also contains the circuits to interface with the 12V DC relays and the inputs from switches, pressure switch for water level and 2 stats, one 90C and one that is 40C/60C I have built a power supply to feed the PCB and the relays with DC and these will operate the 240V AC components, so once programmed will not need to be connected to PC.

Photo of PCB with chip installed note: connector with red LED’s are outputs to relays and the group in the top left in rows are inputs from switches and pressure, stats.


Post# 327350 , Reply# 5   1/28/2009 at 12:53 (5,538 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
Photo of 12V DC power supply for PCB

Post# 327351 , Reply# 6   1/28/2009 at 12:58 (5,538 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
Wiring digram

Post# 327381 , Reply# 7   1/28/2009 at 16:04 (5,538 days old) by unimatic1140 (Minneapolis)        

unimatic1140's profile picture
Very interesting Lee, I'm impressed. What do your relays look like?

I don't know if you have seen the pictures of the washer I built using parts from vintage and modern machines alike. I added two way communication with sensors that communicate back to the computer from the washer...


CLICK HERE TO GO TO unimatic1140's LINK


Post# 327385 , Reply# 8   1/28/2009 at 16:14 (5,538 days old) by toggleswitch2 ()        

YAY WAY COOL.

Now a similar item to function as a vintage dishwasher "timer" and we may approximate a DW that actually cleans!


Post# 327662 , Reply# 9   1/30/2009 at 05:28 (5,536 days old) by vivalalavatrice ()        
oh guys... I did...

something of similar...


CLICK HERE TO GO TO vivalalavatrice's LINK


Post# 327663 , Reply# 10   1/30/2009 at 05:29 (5,536 days old) by vivalalavatrice ()        
and here you are the result....

.

CLICK HERE TO GO TO vivalalavatrice's LINK


Post# 327664 , Reply# 11   1/30/2009 at 05:30 (5,536 days old) by vivalalavatrice ()        
then...

Very very much congratulations to your project Lee, it seems indeed better and goodlooking than mine...

They're in Italian but here you are the features of my machine


CLICK HERE TO GO TO vivalalavatrice's LINK


Post# 327665 , Reply# 12   1/30/2009 at 05:32 (5,536 days old) by vivalalavatrice ()        
.... and of course...

IT WORKS!!!





type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=425 height=344>


Bye
Diomede


CLICK HERE TO GO TO vivalalavatrice's LINK


Post# 327670 , Reply# 13   1/30/2009 at 06:30 (5,536 days old) by wiljan ()        

That is so cool! I wish I could do that!

Post# 327748 , Reply# 14   1/30/2009 at 13:48 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
The relays.

2 on the left of photo are for motor isolation and armature change over, 4 in the middle are for motor speed selection which I will talk about later and the last one on the right is a 30A relay for the water heater.


Post# 327749 , Reply# 15   1/30/2009 at 13:54 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
The Solid stat relays ( triac ) to control water valves and the drain pump which are all low ampage, this board is opto-isolated from the mains power and has it’s own power supply. No moving parts to ware out like relays.

Post# 327754 , Reply# 16   1/30/2009 at 14:07 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
The speed control of the universal motor, a bit of a cheat, as this is a Hotpoint unit that will go nicely with the Hotpoint motor I have acquired. Don’t forget that the heat sink on this type of unit is, one, very hot and, two, LIVE, and will BITE like a pit-bull bog.



Post# 327759 , Reply# 17   1/30/2009 at 14:18 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
Basic wiring diagram for the speed control and motor, speed control unit is a simple comparator module which increases power or decreases power by the voltage sent from the taco generator on the back of the motor, change over on this Hotpoint set up is achieved by the field windings, which I thought was odd as the other units ( Bendix ) I have change over the armature instead.

Can’t Waite for the motor to arrive so I can play.


Post# 327760 , Reply# 18   1/30/2009 at 14:24 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
I would like to than Tom (hotpoint9534) for sending some wiring diagrams and anyone else who has contributed to this project?

Photo of back os speed control.


Post# 327761 , Reply# 19   1/30/2009 at 14:27 (5,536 days old) by hotpoint95622 (Powys)        
Lee's project

hotpoint95622's profile picture
Display module and program selection buttons.

Post# 334995 , Reply# 20   3/11/2009 at 21:48 (5,496 days old) by jetcone (Schenectady-Home of Calrods,Monitor Tops,Toroid Transformers)        
Lee

jetcone's profile picture
Mahalo for sharing! I have been trying to figure this out for the last 5 years! How did you get the 5 v Dc output from the PIC to trigger the 12 v DC relays?

Jon


Post# 335113 , Reply# 21   3/12/2009 at 14:20 (5,495 days old) by hotpoint95622 (Powys)        
Hi Jon

hotpoint95622's profile picture
I have used BC337-16 low power NPN transistors which are protected by 1N4148 switching diodes have also put an LED to show when the output is active.

Post# 335192 , Reply# 22   3/12/2009 at 19:56 (5,495 days old) by jetcone (Schenectady-Home of Calrods,Monitor Tops,Toroid Transformers)        
OH ISNT THAT

jetcone's profile picture
SMART!
And the diodes absorb all the shock of switching the inductance loads!!
Is that a high wattage 1Kohm resistor in series with the PIC output?
Good you Lee, now I see where to go!
Thanks
jon


Post# 335301 , Reply# 23   3/13/2009 at 10:12 (5,494 days old) by unimatic1140 (Minneapolis)        

unimatic1140's profile picture
Jon, for the two relay boards that I had constructed for the Super Unimatic, I used a similar setup. I didn't realize that the part marked BC547 was an actual transistor! You know I prefer vacuum tubes :-D

Post# 335319 , Reply# 24   3/13/2009 at 12:55 (5,494 days old) by hotpoint95622 (Powys)        
Thanks

hotpoint95622's profile picture
Resistor is ¼ watt 1 K metal film. Stops the relay making a humming sound.


Forum Index:       Other Forums:                      



Comes to the Rescue!

The Discuss-o-Mat has stopped, buzzer is sounding!!!
If you would like to reply to this thread please log-in...

Discuss-O-MAT Log-In



New Members
Click Here To Sign Up.



                     


automaticwasher.org home
Discuss-o-Mat Forums
Vintage Brochures, Service and Owners Manuals
Fun Vintage Washer Ephemera
See It Wash!
Video Downloads
Audio Downloads
Picture of the Day
Patent of the Day
Photos of our Collections
The Old Aberdeen Farm
Vintage Service Manuals
Vintage washer/dryer/dishwasher to sell?
Technical/service questions?
Looking for Parts?
Website related questions?
Digital Millennium Copyright Act Policy
Our Privacy Policy