Henry's Project - Help With Programming

Automatic Washer - The world's coolest Washing Machines, Dryers and Dishwashers

Help Support :

henrypeter21

Well-known member
Joined
Oct 13, 2011
Messages
155
Does anyone Out there know the commands for Drain, Distribute, and Spin, I dont mind what the spin speeds are - 88RPM Distributing and 1000RPM Spin Would be perfect. I am using a PIC 16F872 Micro-Controller and have got most of the code written now. I am not sure what type of motor i am using, i think until i find a usable analogue tacho motor i will be using a digital tacho motor with field tapping. Here's a Little Sample of the code:

A BSF PORTB,2 ;WASH ACTION CLOCKWISE
CALL DELAY12

BCF PORTB,2 ;STOP WASH ACTION

CALL DELAY2
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

Any other Help with this would be greatly Apreciated. Thankyou.
 
Henry, I don't really understand your request.

There wouldn't be any commands in the controller for that.

Reading the instruction sheet, "BCF" instruction is "Bit Clear"

Thereby BCF PORTB,2 ;STOP WASH ACTION

Would mean, Bit Clear on Port B .. Port B is an 8 line port.. So 2 is in decimal, right? Equating to clearing Line RB2 on the controller?

BSF PORTB,3 ... Set the bit on Port B .. 3 .. Is that the third line?

Sounds like you are toggling lines on an off at this point in time.

Now, Drain, wouldn't that just be tied to a relay connected to Port B as well?

IE. BSF PORTB, 5 ; Turn on Drain Solenoid
BCF PORTB, 5 ; Turn off Drain Solenoid

(Assuming that the 5th line on Port B was connected to the drain solenoid.)

Distribute and spin would require a tacho like you said. However, your code is way too simple for that because you are just switching a motor on and off.

So... First of all, this code above would not be adequate for your project. It's a bit more complex than just toggling bits on and off.

To distribute, you need to be able to detect the speed of the drum and then also detect the out of balance switch.

During wash, you have a tub speed of about what.. 25 RPM? So, to distribute, you ramp the tub speed to 80 RPM... Then you do a pulse spin lets say, determine if the out of balance indicator switch came on, drop the tub speed back down to 25 RPM, then bring it back up to 80 RPM again.

To Spin, you just do a "wash" speed really fast. :)

Here's a neat link which is the begin and end all of induction motors. Most commercial washers are based upon this kind of motor now...

 

Latest posts

Back
Top