Hello,
First I want to say sorry for my possibly bad english, but I'm from Germany and school time is long, long, (maybe not too long, but you know...) ago!
I'm a beginner in working with Arduino and I want to build a digital compass with OLED Display, a few buttons and a possibility to connect a large 36V DC motor (or maybe a 36V 3A HARL 3612+, which is, in principe, a DC motor), which acts as a Autopilot for my small Sailing Yacht.
The plan is to mount the magnetometer module (later a kind of IMU) in the middle of the Mast (3m above the steeldeck (I know, a long distance, but propably I solve this making one Unit including the IMU, a Arduino Nano(or similar) and a to it connected Network Module that sends data to another module with the display and buttons etc) which sends data to the Arduino with display and buttons, which can send, after pressing a button, commands to another arduino which steers the Motor via two 12V relais (one forward, one backward).
How I already told you, I'm really new to programming and I just tried to change a few lines in an online available code which lights up a ring of LEDs depending on the compass heading (of HMC 5883L) or tried to combine it with a also online available code which steers two DC motors depending on the Heading of the LSM303 compass module.
!!!BUT I'VE GOT STUCK!!! REALLY!!!
I already got the Magnetometer module working with the OLED (with a different code and library for the HMC-module) , but when I try to steer the motor or right now, two LEDs,
one of the LEDs starts shining and at this point, nothing happens any more.
Could anyone please help me finding the right way to get the whole thing working?
Otherwise my plans for the winter are in danger...
HMC5883LLED.txt (2.24 KB)