Shop OBEX P1 Docs P2 Docs Learn Events
Interesting proplem with Sonar and Motors — Parallax Forums

Interesting proplem with Sonar and Motors

DiablodeMorteDiablodeMorte Posts: 238
edited 2008-05-27 08:59 in Propeller 1
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

Comments

  • Graham StablerGraham Stabler Posts: 2,510
    edited 2008-05-27 08:59
    Try some suppression capacitors on the motor to to reduce noise, that would seem the most likely cause of a problem. Also ensuring the power supply is noise free under the load of the motor may help, some capacitors on the output of regulators etc.

    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
Sign In or Register to comment.