Thread Number: 38244
Henry's Project - Help With Programming
[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# 567790   1/8/2012 at 07:41 (4,488 days old) by henrypeter21 ()        

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.





Post# 567994 , Reply# 1   1/8/2012 at 22:42 (4,488 days old) by qualin (Canada)        

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...


CLICK HERE TO GO TO qualin's LINK



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