User Tools

Site Tools


multiwiicopter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
multiwiicopter [2012/01/27 15:41] memeruizmultiwiicopter [2021/02/01 05:55] (current) – external edit 127.0.0.1
Line 71: Line 71:
  
 http://www.rcgroups.com/forums/showthread.php?t=1348268 http://www.rcgroups.com/forums/showthread.php?t=1348268
 +
 +===== Programming/development =====
 +
 +The multiwiicopter uses an arduino as the FC unit. You can program this board from debian by installing arduino package. You get version 1.0 with a relatively new gcc-avr. You have three ways to program the arduino pro mini:
 +
 +  - From arduino sketch, using upload function.
 +  - From arduino sketch, using upload with avrdude function.
 +  - Connecting an avr isp to the spi pins of the board (this may interfere with other electronics on the multiwiicopter, like sensors) and using upload with avrdude function but using the avrisp serial port. This is also use to program the arduino bootloader.
 +
 +In 1 and 2 you only need to specify the port device to program the arduino. In 3 you need to solder four wires and use an avr isp programmer board. Options 1 and 2 work fine with multiwiicopter. Version 3 is only necessary if more flash is needed and bootloader can be erased.
 +
 +To read the flash/eeprom from the arduino device you can't use arduino sketch. But you can use option 3 with avrdude to read it. Also, because the arduino bootloader is itself a programmer (in particular stk500v1). It can be used from avrdude to read and write flash/eeprom using a command similar to this:
 +
 +  /usr/share/arduino/hardware/tools/avrdude -C /usr/share/arduino/hardware/tools/avrdude.conf -pm328p -carduino -P /dev/ttyUSB0 -b57600 -v -Ueeprom:r:multiwiicopter_eeprom.hex:h
 +
 +http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1289849174
 +
 +If you want to program without arduino sketch take a look at /usr/share/arduino/Arduino.mk
 +
 +===== Calibration/configuration =====
 +
 +==== Altitude hold ====
 +
 +http://www.multiwii.com/forum/viewtopic.php?f=8&t=562&start=30
 +
 +http://www.multiwii.com/forum/viewtopic.php?f=7&t=363&start=70
 +
 +http://www.multiwii.com/forum/viewtopic.php?f=7&t=363&start=160
  
  
multiwiicopter.1327678866.txt.gz · Last modified: 2021/02/01 05:55 (external edit)