2019-03-23, 03:10 PM
(2019-03-22, 03:05 PM)xfactor99 Wrote:It sounds like magnetic interference. It doesn't matter if the drive is 5 meters away, do any of the high power wires come near the compass sensors? You might need to keep the motor controller farther from the pi.(2019-03-22, 02:44 AM)seandepagnier Wrote: It does this manual control mode when the autopilot is not engaged.
Do you want to manually override and drive the motor when the autopilot is engaged?
I did't expect the autopilot to do anything when not engaged/standby ...
It is working manual like you said....... it engages the clutch and stears right/left ....
I´m still fighting with with my old NECO 24V drive. Manualy it works, but the IMU/compass values
start moving/fading (irrational) when the drive runs (5 meters distance). I guess this could be due to electromagnetic noise by the drive/brushes. I will first will try to change the connection btw. Pi and Nano to USB (right now it is
Quote:5V/GND/TX/TX-Pins) and if this does not help y will start cheching the drive for flyback diodes and capacitors to reduce noise.Relays really? I am using mosfets. This allows for variable speed control.
For now I use a simple H-Bridge consisting of two of the cheap chinese relays and a other relay for the cluch.
Quote:Are there any other suggestions ?It is not supported. Maybe you could add this to the code, but the delay from the compass would give worse performance. Without a gyro rate the autopilot won't work very well.
Is it possible to use an other compass source , NMEA or my old Simrad/Robertson RF35 ?
It's best to find out why your compass readings change when the motor is running.