I just realised that the two sensors HC-SR04 and Sharp interfer with eachother when both are connected. This happens even if the sensors is not actively used at the same time.
When the sharp sensor is connected I cannot get a greater distance measurement than 55cm from the sonar. But when I disconnect the sharp sensor I get better measurements.
I tried a decoupling condensator but no difference...
http://forums.adafruit.com/viewtopic.php?f=8&t=19431
ReplyDeletehttp://www.youtube.com/watch?feature=player_embedded&v=weJ4JdFat8o#!
http://forums.adafruit.com/viewtopic.php?f=25&t=11597&hilit=analogread+delay&start=45