You need to post a wiring diagram - As you have it wired as well as the code you have running
No body can much help you if they don't know what you have done
Thank-you for your sage advice . I had missed the forum instructions but on your instruction i have tried to read up on them (there's a lot there so go easy on me) .
I am using the code provided in the link in my first post "there's probably to much to post here hence the link"
Wiring / schematic has been followed from the fritz diagram provided with one change "using an Arduino uno" instead of the pro mini listed .
If you're seeing "motor 0" on the LCD, that suggests that computeCmd believes that there's no course correction required.
I'd suggest that you turn on the existing serial debugging in that routine and see what it's doing. You may need to add more Serial,print statements of your own to narrow it down.
wildbill:
If you're seeing "motor 0" on the LCD, that suggests that computeCmd believes that there's no course correction required.
I'd suggest that you turn on the existing serial debugging in that routine and see what it's doing. You may need to add more Serial,print statements of your own to narrow it down.
Thanks heaps sometimes its the simple things . I thought the compass had completed its calibration when in fact it had not (it took a few attempts and lots of movement in every direction to get it to calibrate properly ) . I am successfully getting power to the actuator when moving the compass now .
I got nuts, when I tried to build the autopilot according to the wiring diagram.
In the diagram the ACS712 is connected to PIN 2 of the Arduino. As a result, the actuator did not move at all, and I got the message of overcurrent on the display.
The code defines the connection of the ACS712 to A0 (Line 81 #define ACS712PIN A0).
After I corrected the connection it works really nice.