i need help. i have connected two micrositches which act like whiskers, to detect obstacle, to a basic stamps input ports. there is no problem when the output is giving value 1. it gives constant all the time. but, when 0....it fluctuates.not constant 0 instead a combination of 1 and 0 values. so, when this happen...at certain conditions,the motors seem to be stucked, not knowing which direction to go for.
i need to know what can i do to make the 0's to be all zeros instead of the combinations number of 0 and 1.pls help me. im in the state of giving up thinking after tried many attempst to fix it.