Hi everyone, I have ventured into the world of electronics and struggling to combine two sketches. I have went through all the basics of blinking an led, afmotor control, magnotrometer to name but a few. I am finding it hard to go from the basic of using a magnotromoeter and a dc motor control to combining them together to make the motor drive a base plate to the compass heading. There seems to be nothing in between the basics and expert if that makes any sense.
My problem is this.
I have an HMC5883L mag which I have set up and can get readings from in the serial monitor perfectly, a dc motor (AfMotor) to work in forward and reverse but I cant seem to marry the two codes up together to drive the motor to a certain compass heading.
I have downloaded Arduino reference library but this seems to be way out of my knowledge as there is no clear explantions of wording. Whilst I say this I understand that there is a lot of learning to be done for a newbie
Can anyone give me any pointers.?
Thanks for any time.