MultiWiiKopter-Konfigurationsprogramm für Arduino

Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#496 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

You mean, the pins on the Pro Mini board? :)

Have you seen this post? I think Christoph already has connected the bluetooth module from goodluckbuy, but I think he used a level shifter (5V->3.3V).
Ciao, Arnd
Benutzeravatar
AlouetteIII
Beiträge: 11
Registriert: 13.03.2011 01:20:44
Wohnort: Gold Coast, Australia
Kontaktdaten:

#497 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von AlouetteIII »

No sorry, I am OK with Promini FTDI Tx and Rx, vcc and GND. So wiring diagram to connect the other end of the wires to this Robot LCD keypad the same as yours. Any photo or diagram of the two item connect by hardwires. ProMini->RobotLCD.
Dateianhänge
More detail of this end?
More detail of this end?
LCD_Config.jpeg (30.32 KiB) 1515 mal betrachtet
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#498 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Ah! Sorry, it's pretty late here. The wires in the picture are not connected to the ICSP port but to the DFRobot Interface Shield (the white rectangle in one of the pictures). I wasn't able to find the pin assignment for the ICSP, don't know if RX/TX is available there.
Ciao, Arnd
Benutzeravatar
AlouetteIII
Beiträge: 11
Registriert: 13.03.2011 01:20:44
Wohnort: Gold Coast, Australia
Kontaktdaten:

#499 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von AlouetteIII »

@Yacco ; OK - from that photo (above) I thought you hacked it some way from the ftdi chip pins legs on the Duemilanove. So that cable is really going to a daughter board which is hidden underneath in that photo http://www.dfrobot.com/index.php?route= ... uct_id=166 - !
Maybe somebody used a pro-mini wired under the DFRobot LCD to make it smaller with LiPo!
Benutzeravatar
AlouetteIII
Beiträge: 11
Registriert: 13.03.2011 01:20:44
Wohnort: Gold Coast, Australia
Kontaktdaten:

#500 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von AlouetteIII »

@yacco - happy - I got my RoboHhardware working :) with a ProMini - no interface shield.
some feedback in return
* I defined my led's as per the wiki - A1(red),A3(white) and A5(blue) - The Green LED defined as A5 (blue in my case) does not function - I went to comment out the joystick but still nothing at A5. If I toggle the software it works physically, but the LED which is moved to A5 in software does not glow. Soldered A5 to A2 and redefined - green LED still not showing.
* I am not able to dim the LCD - pin 10 is in the code (should this be hard wired?) I just followed the wiki - no mention of 10 - OK fixed by wiring 10
* On first powering up, the software halts at INV. FrameLength Program halted - (cause found - one board was configured with 1.3 - have updated it) if I reset, it runs - it promps the software version? - not so easy for me as I have 5 boards sitting on the table (not unusual as I often switch boards rather than reload software to test new boards - is it possible for the software to lookup the version ?

It's very well written and intuitive, thanks! - I used it with ease - as you say select button is superfluous.
Yacco is the graphic LCD 4884 and joystick compatible?
Dateianhänge
PICT0001.JPG
PICT0001.JPG (205.97 KiB) 1492 mal betrachtet
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#501 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Wow, Alouette, that was fast.

Concerning the status leds, the green LEDs is only used in logging. Default pins for the LEDs are now A3-A5, I think (the wiki is not up to date). But you can use any pin as long as you change the #defines accordingly. I can't see any resistors near the LEDs on the picture.

Yep, the backlight pin on A10 is missing in the diagram in the wiki. Mmh, seems almost everything there including the state chart is outdated...

The prompt for the MWC version only appears after an invalid frame was read, after selecting the correct version it is stored in EEPROM. I would appreciate if Alex encodes a version tag in the transmitted data frame, then the Config tool would be able to adapt itself. I don't like the idea to deduce the MWC version from the number of read bytes - this would imply that the framelength must be different in any future MWC release from its predecessor. Also, I occasionally see that corrupted frames are transmitted (things become more complicated when using wireless serial connections).

Joystick compatible - yes, LCD 4884 - got one some weeks ago, haven't started to play around. Will probably not work on ATMega328 due to space limitations. This is also the major limitation for new features - currently, there are around 60 bytes left in flash memory when all compiler options are enabled.
Ciao, Arnd
vistauser
Beiträge: 12
Registriert: 13.03.2011 16:24:47

#502 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von vistauser »

Hallo yacco,
leider bekomme ich dein nützliches LCD-Config Prg v2.4 nicht zum Laufen.
Auf dem LCD meldet es sich mit
1 Config
Tri Lev.Mode
das war es dann, und Tri ist auch falsch weil es ein QuadP ist. Auf Eingaben mit dem Joystick reagiert es nicht.

Das LCD und der JS sind an einem Arduino ProMini 286 5V angeschlossen, auf dem MWCP ist die V1_pre7 installiert.
Das LCD_Config habe ich an meine Umgebung angepasst (denke ich...).

Kannst du mir bitte die Verbindungen vom Joystick zum ProMini (plus und minus weiß ich aber die beiden Anderen = horizontal
und vertical ???) und vom ProMIni zum Quad mitteilen damit die sich endlich unterhalten?

Schönen Sonntag noch
vistauser
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#503 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Hi vistauser,

der Joystick besteht mehr oder weniger nur aus zwei 10k Potis, die an Masse und 5V angeschlossen werden, der Abnehmer geht dann an den horizontalen/vertikalen Arduino-Eingang.

Wie genau hast du es denn konfiguriert? Hast du evt. den Test-Modus eingeschaltet? Dann findet keine Kommunikation mit dem MWC Board statt.
Ciao, Arnd
vistauser
Beiträge: 12
Registriert: 13.03.2011 16:24:47

#504 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von vistauser »

Hallo yacco,
danke sehr für die schnelle Antwort.
Test habe tatsächlich aktiviert, das wird sofort geändert.
Die LEDs lasse ich erstmal weg.

Achja, da fällt mir noch was ein:
Rx und Tx vom einen MWCP zum LCD_Config über Kreuz anschließen, und sind die beiden äußeren Pins auch nötig?

So noch ein Edit:
A1 und A2 habe ich im Sketch gefunden, aber was muß an A0 ran?
Nach "reading..." (grüne LED am ProMini blinkt) bekomme ich nun erst
"Timeout" und danach
"Unknown Offline"
Am WMC sind nur der Arduino und die Sensoren mit 5V versorgt. RX und die Plush nicht.

mfg
vistauser
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#505 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

An A0 kannst du noch einen Taster dranhängen, wirkt als SELECT Taste - ist aber nicht unbedingt nötig.

Du brauchst für die serielle Verbindung nur Vcc, Gnd, RX und TX. RX und TX gekreuzt, wie auch schon mehrfach geschrieben wurde.

Auch ohne angeschlossenen Empfänger sollte da schon was ankommen. Ist im LCD_Config die Baud Rate auf 115200 gesetzt? Du kannst die serielle Verbindung auch über FTDI/USB testen, wenn du in der Arduino IDE den Serial Monitor aufmachst. Da müßtest du dann ganz viele (30) 'A' sehen, die das LCD_Config über dies erielle Leitung schickt, bevor der Timeout zuschlägt.
Ciao, Arnd
vistauser
Beiträge: 12
Registriert: 13.03.2011 16:24:47

#506 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von vistauser »

Ja yacco, die ser. Speed ist so wie im WMC-sketch eingestellt.
Muß eventuell im WMC-sketch die LCD-Option enabled sein??
Benutzeravatar
yacco
Beiträge: 4728
Registriert: 15.02.2009 19:27:59
Wohnort: Aßlar

#507 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von yacco »

Nein, bloß nicht. Damit aktivierst du den Programmiermodus für ein ebenfalls über die serielle Schnittstelle angeschlossenes Display.
Ciao, Arnd
quadraf
Beiträge: 3
Registriert: 09.03.2011 23:56:04
Wohnort: Deurne Holland

#508 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von quadraf »

Hi Carsten,

Vielen dank fur das antword. So der RS anslusch ist nicht nootwendig?..
jetzt warte ich nog auf nun Arduino mini von langzaam boot aus China... :mrgreen:

----------------------------------------------------------------------------------------------------------------------------
Hi,

ich hatte schon im Beitrag geantwortet, aber irgendwas muss passiert sein das mein Beitrag nicht abgesendet wurde.

Deine Anschlussbelegung ist in Ordnung, im Sketch habe ich das hier:


Code: Alles auswählen
// 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

#include <ShiftRegLCD.h>
ShiftRegLCD lcd(3, 2, 4, 2); // (Datapin, Clockpin, Enablepin or TWO_WIRE [, Lines [, Font]]])



Viele Grüße,
Carsten
Zitat quadraf Re: MultiWiiKopter-Konfigurationsprogramm für Arduino
Gesendet: 14.03.2011 15:25:46
von quadraf

Copy von post:
viewtopic.php?p=1208774#p1208774
Hallo Carsten,
Ich habe mich auch eine schone X-Assist gekauft auf Ebay und solte gern haben when du mal seht ob das pinbelegung meine drahtplan klopft. Solte ich nog etwas weiteres machen im hard oder software?

X-ASSIST wiring to Arduino

PIN-- FUNCTION---WIRE COLOUR--Arduino
2-----D Button-----White---------
3-----C Button-----Blue-----------
4-----B Button-----Green---------
5-----A Button-----Brown-----------A6 (select)
6-----Down---------Yellow-----------A11
7-----Right---------Orange----------A10
8-----Up-------------Red-------------A9
9-----Left-----------Black------------A8
10----CK (164)-----Grey-------------D2?
11----RS (lcd)------Yelow------------?
12----E (lcd)--------Purple-----------D4?
13----Data (164)--White/Red------D3
15----VCC----------White/Blue------5V
17----RS (lcd)------Yellow------------?
18-25--GND ---------White/Black---GND

Herzlichen dank fur das schone lcdproject (sicher auch Arnd naturlich!) !
Grusse aus Holland
Hans

--------------------------------------------------------------------------------
Benutzeravatar
calli
Beiträge: 6970
Registriert: 22.11.2004 12:40:52
Wohnort: Berlin
Kontaktdaten:

#509 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von calli »

quadraf hat geschrieben:Vielen dank fur das antword. So der RS anslusch ist nicht nootwendig?..
Nein ist nicht nötig!

Ich glaube auch das Du doch noch einen Fehler in der Belegung hast, ich glaube Button D ist Yellow und RS white, denn bei mir ist nur der weiße Draht frei.
quadraf hat geschrieben:jetzt warte ich nog auf nun Arduino mini von langzaam boot aus China...
Hast Du auch per Air Mail bestellt? Das Boot wird dann sicher Air Mail auf Chinesisch heißen ;-)

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
flehrsen
Beiträge: 40
Registriert: 07.03.2011 22:18:15
Wohnort: Potsdam

#510 Re: MultiWiiKopter-Konfigurationsprogramm für Arduino

Beitrag von flehrsen »

Hallo,

@Arnd, ich hatte irgenwo gelesen, dass du gerne sowas wie ein Versionsstempel in der Wii-Soft hättest. Mir ist beim rumspielen mit dem Code (allerdings nur die letzten Versionen) aufgefallen das die EEPROM Variable (1. Wert im EEPROM) "checkNewConf", welche zu Beginn testet ob schon Parameter angelegt sind, sich in jeder Version ändert.
Vielleicht hilfts.
Achso, danke noch mal für die Antwort (Rx,TX-Ports).

bis denne, Roman
Antworten

Zurück zu „Allgemeines“