Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Cannot run include files. Getting 'No such file or directory' for any include. on: January 04, 2013, 09:51:05 am
I had a few problems using libraries with the Due. I do not think the servo library is compatible by default, but there is a modified copy floating around somewhere in this forum.

I cannot find the page where these files are hosted originally, but I have attached the two files I've been using to drive servo's on my Due.

I've been placing these files in the same folder as the sketch I'm working on, then typing

#include "servo.h"

as opposed to

#include <servo.h>

This way, once you save the sketch and reopen, it will open the servo.h file in another tab, and you can be sure you're using the modified version.

Hope this helps, Phil.
2  Products / Arduino Due / Due Quadrotor code on: January 03, 2013, 09:54:43 pm
Hey guys. I'm building a quadrotor as part of my university project, but I'm having a couple of problems with the code, I was hoping someone might be able to help. My hardware is as follows..

Arduino Due
accelerometer and gyro - MPU6050
magnetomoter - HMC5883
barometer - BMP085
wireless comms - XBee

As it stands i'm also in the process of building a controller, so for the testing process i've been using an Uno with a potentiometer to set the throttle speed, and sending the value over XBee to the quad.

So far the quad reads all necessary values from all sensors without any errors, and the speed of all four motors can be controlled using the throttle. My problem arises when I try to use the sensor data to calculate how much to vary the motor speeds.

Ideally i'd like to take advantage of someone else's stabilisation algorithms to handle the sensor data, and had hoped to use part of the AeroQuad code or similar. I would use the AeroQuad code in its entirety, and remove the functions I do not need, but it relies on too many libraries that don't run on the Due (please correct me if I'm wrong here.)

Has anyone managed to write/port quadrotor code for the DUE?

Or has anyone managed to use only the stabilisation algorithms from one of these open source projects in their own quadrotors?

I dont mind having to write my own code but I hope to develop the quad much further and don't want to waste too much time re-inventing the wheel.

Thanks in advanced for any help or advice.
Phil Downie.
Pages: [1]