Suggestions are coming in on ways to test or fix the problems I'm encountering. Let me explain what's happening now.
I've inserted the diode that j suggested... works! The buzzing has disappeared (see video below). So we're getting close. Right now, pushing either switch (that will serve the robot as a trigger to stop and back away from an obstacle) does not stop the motor from spinning - pushing either button is SUPPOSED to cause a drop in voltage on pin 2, so I think my next step is to use a chip tester to see if pin 2 is being triggered. (Right? No?)
First video below is WITHOUT the diode.
Second video is WITH the diode.
(FYI - family visiting this weekend so I may not get much more work done on this circuit until early next week.)
It's hard to tell from the photos whether all the wiring is correct but I think you have a definite problem with the relay wiring.
ReplyDeleteYou appear to have the motor connected between pins 6&11 instead of 4&13 (& vice versa)
See http://twitpic.com/2w5x3s for numbering.
If you add the diode it should be connected across the coil (Pins 1&13) and not in-line with the connection to IC1 pin3. Looking at the picture it doesn't appear connected anyway as it is shown connected to the non-existent pin 15.
... *cough* obviously I meant pins 1 & *16* for the coil.
ReplyDeleteSee http://en.wikipedia.org/wiki/Flyback_diode for an explanation of why the diode might be used and which way round it should be connected.
After looking at that Twitpic, I think you're totally correct about my wiring of the relay - will take a look at that shortly. Thank you!
ReplyDeleteOoops again.
ReplyDeleteI changed my original picture to reduce the amount of rework you needed to do but this would actually result in the motor running in reverse until a microswitch is activated. For numbering that actually matches the circuit see the picture at http://twitpic.com/2w5mlf
As an afterthought. While the motor direction may not matter in a tabletop exercise if you planned using it in a real robot situation you might prefer to choose the option where the coil is not energised by default. Thereby reducing power consumption by that last little bit.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete