Hello,
I am trying to program my quadrocopter (from jdrones) using purely arduino based programming. However I am having trouble finding the pins for everything on the board. Does anyone know where I could find the pin names for everything? (including the sonar, magnetometer and gyros on the blue IMU shield board).
I am using an arducopter board, with an ATMega2560 processor. I can find information on the pin names of the ATMega2560 processor, but not how it interacts with the proprietary arducopter board.
Here are pictures of the arducopter board.
https://store.diydrones.com/ArduPilot_Mega_kit_p/kt-apm-01.htm - not assembled
-assembled arducopter board (with the blue IMU shield on top)
any help will be appreciated!
Thanks~
Replies
this seems to be what I'm looking for, but I don't know how to use it. The input pins lead to the mega328 processor, with the names:
IN0: PD0(RXD)
IN1: PD1(TXD)
IN2: PD2(INT0)
IN3: PD3(INT1)
IN4: PD4(XCK/T0)
IN5: PD5(T1)
IN6: PD6(AIN0)
IN7: PD7(AIN1)
I don't see any connections from the mega328 to the main ATMega2560 processor so I don't know how to access these registers.
Does anyone know any code I could use to read the input pins?
The wiki only tells information on how to set up mission planner, and briefly tells you how to upload arduino code. It does not tell you specific information on how to code arducopter.
http://code.google.com/p/arducopter/wiki/ArduCopter?tm=6
The only thing about arduino is under Appendix >> programming with arduino (which only tells you how to set it up).
read the wiki again more throuroughly...all the details are there if I am not mistaken.