Interesting proplem with Sonar and Motors
DiablodeMorte
Posts: 238
So, I'm continuing my work on my UAV blimp. I've gotten sonar(for altitude) working and the motor(s) working and I was all set to get them working togethor when I ran into an interesting phonomon. I'm using the MaxSonar Sonar Rangfinder and the FAN8200 motor controller. The MaxSonar is very much like the PING))) and the FAN8200 is simply a double full hbridge. When I ran the code without the motor attached to the FAN8200 it ran fine. When the range came below or above the specified interval it attempted to turn on the motor. When I finally added the motor I got quite a different response. The reported range fluctuated wildly and I had to pull the motor and then the ranging went back to normal.Note: the ranger is siting right next to the motor, but even about 1 foot away this still happens. Any ideas on what this is?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
Comments
Of course moving air can effect sound and the motor makes a noise itself so you might also try putting some sort of cup around the ultrasonics to shield it. You need to do some testing to rule out the various possibilities.
Graham