Thanks a lot everyone!!! Your advices had helped me a lot!!! >You need to explain in some more detail what you are trying to do and what >the specifications of the equipment are so that people can understand your >problem and help you. > >What is the motor voltage / What is the motor current / Is the power supply >able to handle the motor load and the PIC / Does the motor work OK when >directly connected to the power supply / Has the PIC got adequate power >supply smoothing and / decoupling. / have you attempted to reduce motor >switching noise / ????? ........... > > >Especially - > >- How many volts is your PIC power supply (5 probably???)? 5volts > >- What is the rated voltage of the motor ie will it work on the PIC supply? the motor is a small dc motor and it can start to operate at small voltage, such as 1V. > >- If you have the PIC running correctly and then connect the motor to the >supply manually or with a switch but NOT using the PIC to control it, does >the PIC still run correctly? If not the problem is not so much PIC control >related as power supply loading or noise or ... Yeah...it is still correct as long as the motor is not connected(or nothing to do with) the PIC > >- Why do you need to switch the motor faster than a relay would allow? >Motors are not very responsive to very fast switching. It may be that you >are trying to control motor speed by fast on/off switching - known as "PWM" >(Pulse Width Modulation). The motor then follows the 'average" voltage. Actually l'm trying to use the motor to indicate different frequencies. The limit for the relay is 1800 turns per hour and l need about 5000 turns per hour > > >It would be most useful if you told us what you are trying to achieve as an >end result. Thanks a lot for your advices. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu