Thread Number: 20610
Lee's project |
[Down to Last] |
Post# 327320   1/28/2009 at 09:50 (5,538 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
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)   |   | |
Checkrate/Likes
 
     
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)   |   | |
Checkrate/Likes
 
     
|
Post# 327327 , Reply# 3   1/28/2009 at 10:44 (5,538 days old) by unimatic1140 (Minneapolis)   |   | |
Checkrate/Likes
 
     
|
Post# 327349 , Reply# 4   1/28/2009 at 12:50 (5,538 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
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)   |   | |
Checkrate/Likes
 
     
|
Post# 327351 , Reply# 6   1/28/2009 at 12:58 (5,538 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|
Post# 327381 , Reply# 7   1/28/2009 at 16:04 (5,538 days old) by unimatic1140 (Minneapolis)   |   | |
Checkrate/Likes
 
     
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 ()   |   | |
Checkrate/Likes
 
     
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 ()   |   | |
Checkrate/Likes
 
     
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 ()   |   | |
Checkrate/Likes
 
     
. CLICK HERE TO GO TO vivalalavatrice's LINK |
Post# 327664 , Reply# 11   1/30/2009 at 05:30 (5,536 days old) by vivalalavatrice ()   |   | |
Checkrate/Likes
 
     
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 ()   |   | |
Checkrate/Likes
 
     
IT WORKS!!! 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 ()   |   | |
Checkrate/Likes
 
     
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)   |   | |
Checkrate/Likes
 
     
|
Post# 327749 , Reply# 15   1/30/2009 at 13:54 (5,536 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|
Post# 327754 , Reply# 16   1/30/2009 at 14:07 (5,536 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|
Post# 327759 , Reply# 17   1/30/2009 at 14:18 (5,536 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
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)   |   | |
Checkrate/Likes
 
     
|
Post# 327761 , Reply# 19   1/30/2009 at 14:27 (5,536 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|
Post# 334995 , Reply# 20   3/11/2009 at 21:48 (5,496 days old) by jetcone (Schenectady-Home of Calrods,Monitor Tops,Toroid Transformers)   |   | |
Checkrate/Likes
 
     
|
Post# 335113 , Reply# 21   3/12/2009 at 14:20 (5,495 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|
Post# 335192 , Reply# 22   3/12/2009 at 19:56 (5,495 days old) by jetcone (Schenectady-Home of Calrods,Monitor Tops,Toroid Transformers)   |   | |
Checkrate/Likes
 
     
|
Post# 335301 , Reply# 23   3/13/2009 at 10:12 (5,494 days old) by unimatic1140 (Minneapolis)   |   | |
Checkrate/Likes
 
     
|
Post# 335319 , Reply# 24   3/13/2009 at 12:55 (5,494 days old) by hotpoint95622 (Powys)   |   | |
Checkrate/Likes
 
     
|