« Construction quadropter » : différence entre les versions

De Breizh-Entropy
Aller à la navigation Aller à la recherche
Ligne 71 : Ligne 71 :


If this works, it should be able to flash programs using:
If this works, it should be able to flash programs using:
avrdude -c usbtiny -p m168p -U flash:w:code.hex:i
 
sudo avrdude -c usbtiny -p m168p -U flash:w:code.hex:i


Some platforms do not know the 168PA, neither 168P, but they know 168 -> use 168 profile and -F option to force ignoring signature checking:
Some platforms do not know the 168PA, neither 168P, but they know 168 -> use 168 profile and -F option to force ignoring signature checking:


sudo avrdude -c usbtiny -p m168 -F
'''sudo avrdude -F -c usbtiny -p m168p -U flash:w:code.hex:i'''


(checked using a hello world)
(checked using a hello world)

Version du 7 juin 2012 à 21:07


Quadropter / Quadropter / QuadTrollPter

we intend to build a home-made quadropter with video streaming feature for remote control and HD video recording for processing after the shot strike


Hardware

Je viens d'acheter ce materiel sur le site http://www.rctimer.com

2212-15 930KV Outrunner Brushless Motor (x4) $43.96
ESC 30A Prgrammable ESC 30A Brushless Motor Speed Controller (x4) $43.96
CFN1045 1 Pair Carbon Reinforced 10x4.5" Counter Rotating Propellers (x4) $15.96
KK-5.5 KKmulticontroller V5.5 Controller Board (x1) [1] $19.99
11.1V 2200mAh 15C 2Set 11.1V 2200mAh 15C Lipo Battery Black-B (x2) $44.98

Air Control

Control the propeller in order to enable air control. Arduino based mainboard.

Compilation and flashing toolchain

Tested on Ubuntu & ArchLinux, doc is done for Ubuntu

Install required tools: sudo apt-get install flex byacc bison gcc avrdude avr-libc gcc-avr libusb-1.0-0 libusb-1.0-0-dev libc6-dev

Compiling

avr-gcc -mmcu=atmega168p -O1 -I/usr/lib/avr/include/avr/ XXcontrol.c

Converting .out -> .hex

avr-objcopy -O ihex a.out out.hex

Flashing

Connect ISP programmer "usbtiny" to the computer and kk blackboard. Run test to check connectivity with the board:

sudo avrdude -c usbtiny -p m168

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e940b avrdude: Expected signature for ATMEGA168 is 1E 94

Double check chip, or use -F to override this check.

avrdude done. Thank you.

If this works, it should be able to flash programs using:

sudo avrdude -c usbtiny -p m168p -U flash:w:code.hex:i

Some platforms do not know the 168PA, neither 168P, but they know 168 -> use 168 profile and -F option to force ignoring signature checking:

sudo avrdude -F -c usbtiny -p m168p -U flash:w:code.hex:i

(checked using a hello world)

Video Stream

Here we discuss how to enable the following set-up : One camera for remote control feedback with cheap resolution and one camera for HD recording.

Video aquisition

Simpler / cheaper solution: (no drift, using IR horizon)


Remote Control

Documentation


Dropez des liens ici