DragonOSD+ - ArduIMU+ V2 firmware modification
Posted: Mon 05 Apr 05 2010 3:21 pm
This instructional is to be used with the ArduIMU+ V2 (flat) found here:-
https://store.diydrones.com/ProductDeta ... ArduIMU-20
To use the ArduIMU+ V2 (flat) with the DragonOSD+, you will need to program the IMU with a specialized firmware. In order to do that, you will need to download the Arduino development environment from:-
http://www.arduino.cc/en/Main/Software
Download the latest version (currently 0018) for the operating system you are using and extract the ZIP file to your drive. Also, download the attached firmware source files to your computer (preferably in a different location from where you extract the Arduino development environment to.)
Next, click on the Arduino.exe file in the arduino-0018 (if this was the version you downloaded) directory. Doing so will open it up with a "sketch" file open already. You will not be using this file. Click on the "File" menu item and select "Open":- Now, navigate to the directory where you extracted the firmware source files. Under the "arduimu" sub-directory, select the file "arduimu.exe" and open it. This will open up another instance of the Arduino IDE. At this point, you may close the first IDE window (the one with the "sketch") as it will no longer be needed.
You will need to configure the board type for the Arduino. To do so, go to the "Tools" menu item, and under "Board", select:-
Arduino Duemilanove or Nano / ATmega328 At this point, you can click on the "play" button or go to the "Sketch" menu item and click on "Verify / Compile":- This will take a few moments and after a while, you should simply get a single line in the output window (bottom) saying:-
Binary sketch size: 17166 bytes (of a 30720 byte maximum)
Next, you will need to configure the serial port for uploading the firmware. Be sure that you have the USB serial-ttl port attached and that you know the COM port number. Under the "Tools" menu item, select "Serial Port" and select the COM port you want to use:- Up to this point, you should not see any error messages (red text) in the lower output window. If so, you are on the way to programming the board. Now, connect the serial port to the ArduIMU+ V2 board, being mindful of the correct pinouts (as per silk-screened labels on the underside of the board. The pins you are interested in are:-
TX
RX
5V
GND
It is important that your serial port is supply 5V to the 5V-pin as this is what powers the IMU board during the firmware update process. If for some reason your serial port does not have the 5V present, you should be have to power the board using the VIN(>6V) pin with a 2S Li-Po battery. Again, be very sure of your connections as a power reversal could destroy the board. If you are externally powering the board (ie. not via the 5V on the serial port), you should connect anything to the 5V pin.If you have a DMM handy, you may verify that 5V is present across the 5V and GND pins. At this point, if everything works, there should be some LED lit on the board. You may then proceed to click on the "File" menu item and select "Upload to I/O Board":- Wait about 5-seconds and then press the reset button on the ArduIMU+ V2 board. This will initiate the firmware update and there will be a progress indication. The upload will take around 15-20 seconds if all goes well. When does, the board will re-start itself and will flash the LEDs during the start-up initialization phase.
It should be mentioned that the ArduIMU+ V2 board will attempt to determine what "level" is during this phase and so it would be important to keep the IMU orientation level until the lights stop flashing.
kempo has put up a very nice video that helps visualize the above steps:-
Daniel
https://store.diydrones.com/ProductDeta ... ArduIMU-20
To use the ArduIMU+ V2 (flat) with the DragonOSD+, you will need to program the IMU with a specialized firmware. In order to do that, you will need to download the Arduino development environment from:-
http://www.arduino.cc/en/Main/Software
Download the latest version (currently 0018) for the operating system you are using and extract the ZIP file to your drive. Also, download the attached firmware source files to your computer (preferably in a different location from where you extract the Arduino development environment to.)
Next, click on the Arduino.exe file in the arduino-0018 (if this was the version you downloaded) directory. Doing so will open it up with a "sketch" file open already. You will not be using this file. Click on the "File" menu item and select "Open":- Now, navigate to the directory where you extracted the firmware source files. Under the "arduimu" sub-directory, select the file "arduimu.exe" and open it. This will open up another instance of the Arduino IDE. At this point, you may close the first IDE window (the one with the "sketch") as it will no longer be needed.
You will need to configure the board type for the Arduino. To do so, go to the "Tools" menu item, and under "Board", select:-
Arduino Duemilanove or Nano / ATmega328 At this point, you can click on the "play" button or go to the "Sketch" menu item and click on "Verify / Compile":- This will take a few moments and after a while, you should simply get a single line in the output window (bottom) saying:-
Binary sketch size: 17166 bytes (of a 30720 byte maximum)
Next, you will need to configure the serial port for uploading the firmware. Be sure that you have the USB serial-ttl port attached and that you know the COM port number. Under the "Tools" menu item, select "Serial Port" and select the COM port you want to use:- Up to this point, you should not see any error messages (red text) in the lower output window. If so, you are on the way to programming the board. Now, connect the serial port to the ArduIMU+ V2 board, being mindful of the correct pinouts (as per silk-screened labels on the underside of the board. The pins you are interested in are:-
TX
RX
5V
GND
It is important that your serial port is supply 5V to the 5V-pin as this is what powers the IMU board during the firmware update process. If for some reason your serial port does not have the 5V present, you should be have to power the board using the VIN(>6V) pin with a 2S Li-Po battery. Again, be very sure of your connections as a power reversal could destroy the board. If you are externally powering the board (ie. not via the 5V on the serial port), you should connect anything to the 5V pin.If you have a DMM handy, you may verify that 5V is present across the 5V and GND pins. At this point, if everything works, there should be some LED lit on the board. You may then proceed to click on the "File" menu item and select "Upload to I/O Board":- Wait about 5-seconds and then press the reset button on the ArduIMU+ V2 board. This will initiate the firmware update and there will be a progress indication. The upload will take around 15-20 seconds if all goes well. When does, the board will re-start itself and will flash the LEDs during the start-up initialization phase.
It should be mentioned that the ArduIMU+ V2 board will attempt to determine what "level" is during this phase and so it would be important to keep the IMU orientation level until the lights stop flashing.
kempo has put up a very nice video that helps visualize the above steps:-
Daniel