Ardupilot API port to atmega328p.

3689698268?profile=original

3689698424?profile=original

This is a most focused development for beginner APM developers to understand how multitasking work with interrupts and APIs.

The main purpose about this port is the scheduler developed by Andrew Tridgell and introduced to Ardupilot for atmega2560.
Right now it's the main structure multitask process for all APM platform.

There are 2 ports:

ARDUPILOTMICRO: A complete API library ported to atmega328p. https://github.com/hiro2233/ArdupilotMicro

ARDUPILOTTINY: A Scheduler HAL port only to atmeg328p with arduino headers enviroments integration. https://github.com/hiro2233/ArdupilotTiny

There are 2 example:

- Compass TEST. 
- Scheduler TEST.

Important Changes

STORAGE: Fited to 328p Eeprom size. It's secure work with AP_Param. 
GPIO: Remaped for 328p, all work good.
SPI: Working.
I2C: Working.
Scheduler: Working very good, now we have fully multitasking on atmega328p.

Changes without testing

RCOutput. 
RCInput.

Not Working

Analog input. 
ADC.

HOW TO BUILD

- Download and install Arduino 1.6.6 (Tested with this version). 
- Open Arduino, click File, Preference and select ArdupilotMicro or ArdupilotTiny path root respectively.
- Open included example and compile.

Enjoy!

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Has anyone tried this code yet? Are these full implementations of Ardupilot; support for Arduplane or Arducopter? I'm interested in using an Arduino Nano with a 10DOF board. Both cheap Chinese versions. I noted the code in the sketchbook is scheduler test, but the standard folders for Arduplane and Arducopter are missing. I'm wondering why the apparent lack of interest in this posting?

  • Developer

    This is great. It would be nice to have a simple schematic for the examples and some info as to what is needed, such as breakout board etc.

    Are you planning to turn it into a complete flight controller?

This reply was deleted.