MultiWiiKopter-Konfigurationsprogramm für Arduino

helipage
Beiträge: 9
Registriert: 26.03.2011 00:41:09
Wohnort: 58... Iserlohn

#556 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von helipage »

yacco hat geschrieben:Direkt von Warthox geht das innerhalb von 2-3 Tagen...
Was meinst Du mit "Direkt von Warthox" ?
Er hatte mir im RC-Line Forum eine Platine angeboten.
Leider entsprach die nicht dem, was multiwiicopter.com als neue Platine anbietet.
Die "warthox FPV - MultiWiiCopter board - v2.0" gefällt mir aber vom Design her sehr gut.
Naja, lange dauerts hoffentlich nicht, bis sie bei mir eintrifft...

Btw. Das LCD4884-Shield sieht natürlich auch ganz nett aus... :wink:

Dirk
Benutzeravatar
tracer
Operator
Operator
Beiträge: 63804
Registriert: 18.08.2004 18:50:03
Wohnort: Kollmar
Has thanked: 2 times
Been thanked: 2 times
Kontaktdaten:

#557 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von tracer »

X-21 hat geschrieben:Die Fa. "wa...th" liefert schnell und einwandfreie Ware.
Das ist kein besonders brauchbarer Hinweis. Wie soll man da was googlen?

So ist's besser:
http://www.watterott.com/de/Arduino-Pro ... 8-5V/16MHz
http://www.watterott.com/de/FTDI-Basic-Breakout-5V

Übrigens, großes Lob an die Firma Watterott. Wir haben 2 Breakouts und zwei Arduiunos bestellt. Bei einem Breakout bekamen wir keine Verbindung zustande, dass andere ging ohne Probleme mit beiden Arduinos. Wir haben ein wenig gegoogled, vermutet, es könnte eine fehlende Brücke zur Umschaltung zwischen 5 und 3,3 V sein.
War es aber nicht. Dann ne eMail an Watterott, mit dem Hinweis, dass wir am Breakout selber schon rumgelötet haben.
Hat er ohne Probleme getauscht!
Benutzeravatar
calli
Beiträge: 6970
Registriert: 22.11.2004 12:40:52
Wohnort: Berlin
Kontaktdaten:

#558 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von calli »

Rubääääh! Auf meiner HW läuft es nicht mehr... (1.27 läuft noch, HW Schaden also ausgeschlossen)

Also genauer: die HW Keys werden nicht mehr erkannt. Ich kann also schon bei der Versionsabfrage nix machen auch im TESTING Mode geht nix.

Vielleicht beisst sich auch noch was mit anderen Optionen die ich ausversehen noch aktiviert habe? Yacco, kannst Du mal drauf schauen?

Ich habe auch kurz versucht es zu debuggen, irgendwie hatte ich das Gefühl der geht gar nicht in den Teil wo die HW Keys abgefragt werden....

Gruß,
Carsten

Code: Alles auswählen

// ----- begin of configuration parameters -----

// use ShiftRegLCD lib instead of LiquidCrystal lib
// [footprint: decreases ~200 bytes]
#define SRLCD     

// ----------

// use Hardwarekeys connected to Ports
// [footprint: ~120 bytes]
#define HWKEYS

// Input pins of the hardbuttons: (used when HWKEYS is defined)
#define HW_RIGHT    10
#define HW_UP        9
#define HW_DOWN     11
#define HW_LEFT      8
#define HW_SELECT    6

// Analog Input pin for cascading buttons
#define KEY_PIN      0

// ----------

// Use an analog Joystick (e.g., Sparkfun Thumb Joystick) instead of Keys (experimental!)
// Joystick and Buttons can be used simultaneously. The center position of the Joystick
// is calibrated during startup, so leave the stick in central position when switching on.
// [footprint: ~200 bytes]
//#define JOYSTICK

// uncomment the following line to enable the joystick select key 
//#define JS_SELECT_PIN A0
#define JS_HOR_PIN    A1
#define JS_VERT_PIN   A2

// Configuration of the Axes
#define JS_HOR_SIGN  +1 
#define JS_VERT_SIGN -1
#define JS_DEADBAND  48

// inverts the switch level of the SELECT key (default: high)
//#define JS_INV_SELECT_KEY

// ----------

// includes a hidden state to check the joystick input. 
// activated by pressing the RIGHT key in state 0 for more than a second.
// [footprint: ~174 bytes]
//#define CHECK_INPUT

// ----------

// includes code to read and visualize the state of the battery via the OSD functionality
// in MWC Versions >= v1.7prebis
// [footprint: ~200 bytes]
#define BATTERY_LEVEL

// Warning Levels:
//
// ----------RED------->|             |<------GREEN---------
//                      |             |
//  VBATLEVEL3 ... VBATLEVEL2 ... VBATLEVEL1 ... VBATLEVEL0
//      |                                            |
//      |<------------------YELLOW------------------>|

#define VBATLEVEL0 114  // 11.4V - 3.8V per cell @ 3S [above: green,        below: green/yellow]
#define VBATLEVEL1 111  // 11.1V - 3.7V               [above: green/yellow, below: yellow      ]
#define VBATLEVEL2 108  // 10.8V - 3.6V               [above: yellow,       below: yellow/red  ]
#define VBATLEVEL3 105  // 10.5V - 3.5V               [above: yellow/red,   below: red         ]

// ----------

// include logging to SD/SDHC card (formatted to FAT16 or FAT32) via SPI
// [footprint: ~12 kbytes]
//#define LOGGING
//#define CHIP_SELECT 10

// enables output in LogView format (~1 kbyte)
//#define LOGVIEW

// Logging Modes resp. LogFile Formats:
#define LOG_ERROR     -1
#define NO_LOGGING     0
#define LF_BINARY      1
#define LF_LOGVIEW     2

// ----------

// include routines to show some output as simple character graphic (for servo signals and angles) 
// [footprint: ~2.3 kbytes]
#define GRAPHIC

// ----------

// track minimum and maximum values of certain values
// [footprint: ~750 bytes]
#define MINMAX

#ifdef MINMAX
  #define MM_ACT [0]
  #define MM_DIM [3]
  #define MM_VAL [minMaxMode]
#else
  #define MM_ACT
  #define MM_DIM
  #define MM_VAL
#endif

// ----------

// include routines to show the state of the application with three leds 
// (red: error, yellow: busy/waiting for input, green: logging)
// [footprint: ~220 bytes]
//#define STATUS_LEDS

// Caution: Default Pins of LEDs and Joystick input overlap
#define RED_LED      A5
#define YELLOW_LED   A4
#define GREEN_LED    A3

// ----------

// if defined, allows dimming of LCD backlight intensity (Pin 10)
// [footprint: ~50 bytes (?)]
//#define BACKLIGHT

#define BACKLIGHT_PIN 10

// -----

// disables a connected APC220 module during playback of logfiles. It is assumed that the ENABLE pin of
// APC220 is connected to pin D2 of the Arduino board. I soldered a 20k resistor between the two pins, 
// seems to work.
// [footprint: 40 bytes]
//#define APC220

#define APC220_ENABLE_PIN 2

// -----

// :)
#define CREDITS

// simulates a serial connection, SELECT key in state "ESC Out" changes the configuration
//#define TEST

// ----------------

// Number of hardbuttons:
#define NUM_KEYS     5

// Identifiers for the five hardbuttons:
#define KEY_RIGHT    0
#define KEY_UP       1
#define KEY_DOWN     2
#define KEY_LEFT     3
#define KEY_SELECT   4
#define STATUS       5 // Last column in the transition table is reserved for status flags

// RC Channel Aliases:
#define ROLL         0
#define PITCH        1
#define YAW          2
#define THROTTLE     3
#define AUX1         4
#define AUX2         5
#define CAM_ROLL     6
#define CAM_PIT      7
Status: Flugtagebuch (grün=ok, orange=in Arbeit, rot=groundet)
Setup: Humingbird, Trex500ESP/FBL, WiiCopter, PZ Bf109, Easy Glider, Nuris, MCPx, MQX, Sim, Evo9 M-Link, DMFV
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#559 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Willkommen zurück, Carsten :)

Spontan fällt mir da nur die Stelle

Code: Alles auswählen

  pinOut(10);
(erste Zeile in der setup()-Routine) ein, kommentier die mal aus (das wird für die SPI-Geschichte beim Loggen benötigt und überschneidet sich mit dem KEY_RIGHT Pin). Evt. fehlen im Code ein paar Zeilen, die PinMode für deine Tasten richtig setzen... ich wüßte aber nicht, wann ich die gelöscht hätte.
Ciao, Arnd
Benutzeravatar
calli
Beiträge: 6970
Registriert: 22.11.2004 12:40:52
Wohnort: Berlin
Kontaktdaten:

#560 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von calli »

Achso: Das war es!

Carsten
Status: Flugtagebuch (grün=ok, orange=in Arbeit, rot=groundet)
Setup: Humingbird, Trex500ESP/FBL, WiiCopter, PZ Bf109, Easy Glider, Nuris, MCPx, MQX, Sim, Evo9 M-Link, DMFV
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#561 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Okay, dachte ich mir schon, hab die Zeile dann mal mit einem #define LOGGING umstellt.

Ach ja, es gibt in v2.7 ein Problem beim Einstellen der Delay time (das Maximum ist 250 ms, sollte 2500 ms sein). Da ich das nicht als besonders kritisch ansehe, gibt es keinen Patch. In der nächsten Release ist wieder alles beim alten.

Request: Is anyone out there using LCD_Config 2.7 with MWC Version 1.7preter AND the Battery Level Option? I would like to have some feedback if this option is working correctly with normal (wire-based) serial conenction. I had some problems using it with my APC220 modules (one extra byte is send) and would like to know if this is a systematic bug.
Ciao, Arnd
Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#562 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

hallo ihr ich habe von allem nichts verstanden möchte aber trotz allem hilfe bein programieren des arduino. wohne in der nähe von Frankfurt a main .Alex
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#563 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Wir sind gleich bei dir, Alex. :D

Ein bisschen konkreter könntest du schon sein. Wo haperts denn?
Ciao, Arnd
Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#564 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

alex
Zuletzt geändert von Elrond am 02.04.2011 15:56:20, insgesamt 1-mal geändert.
Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#565 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

Also ich versuche es .

ich habe mir eine Platiene bestelt und bekommen .diese http://www.multiwiicopter.com/products/ ... v3-0-naked

Dazu habe ich bei watterrott den Anduino und FTDI bestell und bekommen http://www.watterott.com/de/Arduino-Pro ... h1uqqepg15

dann habe ich bei amazon die wiimotion bestellt und alles auf die Platiene gelötett .(würde gerne ein foto senden wenn ich könnte .
Wenn ich nun den FTDI an den Rechner anschließe und dann das program starte Anduino 022 .startet das program ...Das läuft auch .
Dann steht das das ich das richtige Bord ausuchen soll tool und dann Anduino 383 5v 16 mhz . dann port auf sechs da ist der usb . wenn ich dann
auf upload gehe sagt er mir errror expected unqualifid-id before ;Publik ; was immer das heist . jaétzt habe ich gelesen das die pins vom FTDI nich mit denen des
Anduino übereinsteimmen .oh gott hilf mir ach so noch etwas wenn ich den usb reinstecke dann blinkt die grünne so 15 mal schnell und die rote bleibt an .
Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#566 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

Ich war jetzt mal frech und habe es be microkopter reingesetzt


http://gallery.mikrokopter.de/main.php/ ... 7.JPG.html

http://gallery.mikrokopter.de/main.php/ ... 8.JPG.html

http://gallery.mikrokopter.de/main.php/ ... 9.JPG.html

ich hoffe es geht oder ihr sagt wie ich die hier rein bekomme
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#567 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Elrond, das klingt nach einer Fehlermeldung des C++-Compilers, poste doch mal dein MWC Sketch hier. Ich schätze, du hast das Sketch nicht ordentlich konfiguriert (d.h. auf dein Setup angepaßt - das muß man machen, nur Compilieren reicht nicht).

Du mußt auf der Seite unten auf "Dateianhang hochladen" clicken, dann die Datei auswählen, die du hochladen willst, und auf "Datei hinzufügen" clicken. So kannst du auch Bilder ins Forum übertragen.
Ciao, Arnd
Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#568 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

ok dann hoffe ich das es geht
Dateianhänge

[Die Dateierweiterung bmp wurde deaktiviert und kann nicht länger angezeigt werden.]

Elrond
Beiträge: 18
Registriert: 30.03.2011 09:23:15

#569 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von Elrond »

so schaut die platiene aus
Dateianhänge
IMG_9060.JPG
IMG_9060.JPG (1.7 MiB) 692 mal betrachtet
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#570 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Das war leider daneben. Du solltest deinen MultiWii .pde File hochladen, kein Bild vom MultiWiiConf Sketch. (Nur so ein Verdacht, du hast nicht zufällig versucht, das MultiWiiConf Sketch auf den Arduino zu laden...? Das ist das Programm zum Einstellen der Parameter...).
Ciao, Arnd
Antworten

Zurück zu „Allgemeines“