9DOF Razor, programming

High Guys,

 

As total newbe, I started to understand sensors and programming Arduino in combination with Processing. So far I can read speed (precisely) with a 10 hpa (mbar) diff press sensor. This allows speed measuring up to 130 km/h. Temperature and pressure corrected it showes True Airspeed. Second I made the altitude sensor SPC1000 work. a simple somewhat integrating math filter stabilises the output of both sensors.

Parallel I "built" an EFIS in Processing, showing speed, alt and temp on sliders and digital. Kolsman window to adjust alt for air pressure. Looks like the "ancient" Archangel EFIS screen.

 

Now I try to understand the Razor.

Plugging in is no problem, there are datas on serial windows.

Is there a step by step manual, how I can amend or change the preloaded program with my Arduino program?

 

If I try to upload the main c from 9DOF-v15_8MHz   by simply pasting it into my Arduino sketch, I get a .h missing error with bad -6 lines.

I know I am doing it terribly wrong, but I don´t know better. I will not upload other software on the razor, unless I can´t restore to the original v15 as a fallback.

 

Will there be anyone so kind and give ma a step by step instruction (for beginners) please.

 

many thanks in advance and best regards from Austria, from an aircraft free invironment up to at least 1400 of today.

 

b.r.

Wolfgang

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

Join diydrones

Email me when people reply –

Replies

  • High Gentlemen,

    Now I managed to upload to my razor.
    After burning a new bootloader, it accepted the AHRS code finally. As I never burnt a bootloader before, I followed the steps as written in the Arduino tutorial, using my 2009 board as ISP. At first I did not find the code, but realised after hours of search that it is already on my computer, in the folder Arduino/examples! After setting to pro mini (3.3V, 8 Mhz), the bootloader was burnt sucessfully at the first attempt. The AHRS code followed thereafter the standard upload procedure and voila, it is working perfectly.

    many thanks for your time again,
    b.r.
    Wolfgang
  • Dear Chris, Dear Patrick,

    many thanks for your kind replies,
    putted that in at Sparkfun as well, no reply so far.

    Just for my understanding:

    By uploading the AHRS code to the razor,the original C codeI will be deleted, with the new code keeping the clockwork running.
    As I am in the office right now, I can´t check momentarialy, ist it correct to upload program SF9DOF_AHRS.pde to read the sensor datas?
    Once again thanks
    b.r.
    Wolfgang
  • You can't compile that code on arduino and have it work as you would expect...at least that is what the guy who wrote the original code told me. You need to use a different compiler. My suggestion would be to download the AHRS code from:

    http://code.google.com/p/sf9domahrs/source/list

    If you want to run the AHRS code you have to choose: Arduino Pro or Pro Mini(3.3 V, 8Mhz) with AtMega328 as the board to upload to in the arduino ide. Then it will do all the filtering in the imu. Be sure to change your baud rate to 57600. I have had good success doing this. Works like a charm.
  • 3D Robotics
    The Razor is sold by Sparkfun, not us, so you should turn to them for product support. But a quick answer to the above is that it sounds like you're trying to run C code with Arduino. If you want to run the Arduino AHRS code, you should get it here.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…