Multi Wii Copter LCD Config: Unterschied zwischen den Versionen

Aus HeliWiki
Zur Navigation springen Zur Suche springen
Zeile 64: Zeile 64:
  pin 11  MOSI  SPI master out, slave in
  pin 11  MOSI  SPI master out, slave in
  pin 10  SS  SPI slave select
  pin 10  SS  SPI slave select
== LED for status ==
Red: Error, app halted
Yellow: blinking means I/O, permanent means waiting for user input
Green: logging
LEDs are connected through 150Ohm resitors.
Ports A1 (red), A3 (yellow) und A5 (green)


== States Graphic ==
== States Graphic ==

Version vom 26. Januar 2011, 13:45 Uhr

About

LCD_Config is a hardware and software solution to programm the Multi Wii Copters on flying field, also it contains the possibility to log data while flying.

You need:

  • an Arduino board Arduino Boards
  • Arduino 022 (for SD Card support)
  • a LCD Display, either using parallel 4 Wires or ShiftReq control (based on the Hitachi HD44780 (or a compatible) chipset, which is found on most text-based LCDs.)
  • Some keys, some cable
  • latest Arduino Sketch for LCD_Config: http://www.rc-heli-fan.org/download/file.php?id=91727

Features

  • works for Multi Wii Software 1.5 (stable) and 1.6 beta
  • Communicates to the MultiWii software over serial line like the GUI
  • Same parameters changeable as in the GUI
  • Output of values for sticks, gyro, acc, and ESCs (excluding graphical views)
  • Logging onto SD card

Hardware

LCD Keypad Shield

This is the original LCD used with the LCD_Config app:

Schematics: http://www.nuelectronics.com/estore/index.php?main_page=project_lcd

Hardware Keys

If you like to use normal hardware keys on digital ports use this schematic to connect them:

http://arduino.cc/en/Tutorial/DigitalReadSerial

Then remove the comment signs // in front of line:

#define HWKEYS 

Define the ports to use here:

// 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

It is possible to controll everything with out the Select key, so you don't need this key.

Shift Register LCD

Using 3 wires interface for LCD display:

http://www.arduino.cc/playground/Code/LCD3wires

Adjust the ports used here:

  ShiftRegLCD lcd(3, 2, 4, 2);        // (Datapin, Clockpin, Enablepin or TWO_WIRE [, Lines [, Font]]])

SD card connections

pin 13   SCK   SPI clock   
pin 12   MISO   SPI master in, slave out
pin 11   MOSI   SPI master out, slave in
pin 10   SS   SPI slave select


LED for status

Red: Error, app halted Yellow: blinking means I/O, permanent means waiting for user input Green: logging

LEDs are connected through 150Ohm resitors.

Ports A1 (red), A3 (yellow) und A5 (green)

States Graphic

Simplified state chart of the LCD Config app

Gallery

Schematics as PDF,.PLT, Image

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=105#p1178184

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=120#p1180305


Here some links to already build and working boxes

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=60#p1171774

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=60#p1171802

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=105#p1180155

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=120#p1180731

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=135#p1180893

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=135#p1181027

http://www.rc-heli-fan.org/viewtopic.php?f=255&t=80336&start=135#p1181131