IN command changed sensitivity
EverQurious
Posts: 48
I originally had bumpers on my bot that used the IN4 and IN5 commands for left and right collision detection and it worked fine with one side of the switches connected to ports 4 and 5 and the other sides connected to VDD with a 470 ohm pull down resistor. Then all of a sudden the bumpers stopped responding after I had been working on other systems on the bot. Now in order to get the bumpers to respond I have to connect the wires formally connected to VDD to the VIN connectors.
Battery supply to the BS2 is fine. Did I somehow damage the BS2 and could it cause further damage using the VIN supply voltage instead of the VDD? Has anyone else had a similar problem?. All seems to operate fine in this configuration, but it bothers me why the change.
Any feedback would be appreciated.
Battery supply to the BS2 is fine. Did I somehow damage the BS2 and could it cause further damage using the VIN supply voltage instead of the VDD? Has anyone else had a similar problem?. All seems to operate fine in this configuration, but it bothers me why the change.
Any feedback would be appreciated.
Comments
Remember that the whiskers are just springy contacts that are arranged to touch the grounded aluminum spacers when pressed. They work, but they're not resistant to corrosion or dirt or skin oils from touching. Clean up the areas where the whisker contacts the spacers. Clean up the connections to the whisker contacts. Make sure there's a good ground connection from the board to the spacers.
Use a little piece of fine sandpaper lightly on the contact areas. A little bit of rubbing alcohol on a Q-tip can be used to remove the skin oils.
PS: Lots of "fried chip" posts here lately. Baked is much healthier!
What I don't understand is what changed that the VDD terminals quit working BEFORE I switched them to the VIN terminals. Then pins are still good as output pins so I may take Ercos advice and try switching pins and see if that works. Mike the bot seems to work normally now ( with bumpers connected to VIN. If I have already damaged those pins as inputs can I do any more harm leaving it this way?
Thanks for the input from both of you. Let me know what you think Mike.
Dave
Now I have another question. I am wanting to put the bot in a sleep stage by sending it through a loop at the beginning of the program so it just sits there until it gets a 1 from a parallax motion detector. Problem is, using the BS2 example program I downloaded which shows the status of whichever line you have the MD plugged into using the IN command (IN4,IN5 ect..) when motion is detected and the line goes from 0 to 1 it stays as 1 for a few seconds. This causes the loop to keep repeating my test program. Is there any way to make the response/recovery time more instantaneous?
Thanks again Dave.
http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/555-28027-PIRsensor-v1.4.pdf