Hiiii frnds...
i hv designed a ckt for obstacle detection using ultrasonic sensors...
This is a part of my final yr project...
The ckt when tested gives high pulses at the o/p wen an obstacle is placed in front of the sensors while the o/p is low wen there is no obstacle...
This o/p is given to PIC 16f877 which controls the on/off of dc motor.
Driving of motor:The o/p pin of the PIC which controls the motor is connected to ULN 2803 relay driver which drives a 5v relay which turns the motor supply on/off..
what is expected to happen..:the ckt is fitted on a small toycar... with the sensors fixed infront..
when the mode is selected,the PIC turns on the motor by activating the corresponding o/p pin.the motor( and hence the vehicle) moves until a pulse is obtained at the sensor o/p. when this happens the PIC pulls the o/p pin low to turn off the motor.. The chip is programmed and the program is simulated using MPLAB and gives works as expected...
What actually happens:When the mode is selected..and there is no obstacle ahead of it,it was found that the moment motor starts to run, some pulses are obtained at the sensor o/p as long as the motor is running, which are misinterpreted by the PIC as the obstacle pulses and hence it stops the motor..from wher do these pulses come..
So wat i did ws..i removed the motor and connected a non inductive load instead (a resistor and an LED in series) jus to chk if those pulses are obtained.. bt this time no pulses wer obtained...ONly when an obstacle was placed infront it detected pulses..
So it is almost confirmed that it is the motor that is creating the problem..maybe it sends some back current or sumthin...bt the only common thing i can see between the motor and the sensor ckt is the PIC and the VCC and GND...otherwise there is total isolation..
so Can anyone help me solve this prob..
i tried putting cap, diode etc across th motor..bt the same thing happens...
So any help will be appreciated...
Thank you...