NanoWii atmega32u4 (leonardo) FC

JustinTime
Posts: 10
Joined: Sat Jul 21, 2012 1:30 am

Re: NanoWii atmega32u4 (leonardo) FC

Post by JustinTime »

Goetz wrote:Hello mistahead,

have a Look at http://www.rc-heli-fan.org/quadrocopter ... 92355.html

There is an new bootloader, reducing time and (perhaps) getting ESC's in sync...


Isn't the bootloader for hex or oct?

Das ist nur nötig wenn ihr einen HEXA oder OCTO habt. und auch nur um auf nummer sicher zu gehen!

ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

Re: NanoWii atmega32u4 (leonardo) FC

Post by ronco »

hi,

this bootloader changes two things .. the first is for hexa or octo copters so it keeps pin 13 quite as long as the bootloader is acive. and the second is that it reduces the bootup time fron 8 to 6 seconds.. that may help for some ESC's. the current charge of nanowiis from flyduino has this new bootloader already installed.

the new bootloader fades the status LED on and off as long as it is active.. so you can see if you have one with it.

regards Felix

SergioC
Posts: 19
Joined: Sat Dec 22, 2012 11:33 pm

Re: NanoWii atmega32u4 (leonardo) FC

Post by SergioC »

Hi,

just purchased my first NanoWii, incredible, I love it!
I'm not able to use the GUI. The GUI see the COM interface, I select, wait, then I click start but nothing come. I digged some, I can upload any sketch to the board and they do works, I tried the very simple led blink and so on. The Serial interface, the virtual one into the USB port, doesn't works. Neither the Arduino IDE Serial Monitor does. I tried a very simple sketch but I cannot see any data coming from the board and if I send something (with the Serial Monitor) I get a java exception:

Code: Select all

java.io.IOException: Input/output error in writeArray
   at gnu.io.RXTXPort.writeArray(Native Method)
   at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1124)
   at processing.app.Serial.write(Serial.java:517)
   at processing.app.Serial.write(Serial.java:540)
   at processing.app.SerialMonitor.send(SerialMonitor.java:200)
   at processing.app.SerialMonitor.access$100(SerialMonitor.java:32)
   at processing.app.SerialMonitor$4.actionPerformed(SerialMonitor.java:96)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6263)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6028)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4630)
   at java.awt.Container.dispatchEventImpl(Container.java:2099)
   at java.awt.Component.dispatchEvent(Component.java:4460)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
   at java.awt.Container.dispatchEventImpl(Container.java:2085)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4460)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


I'm using an old windows XP SP3 and I installed the arduino 1.0.3 drivers as per the guide.

I don't understand where the problem is. I also tried with a linux box, again an old slakware and maybe not properly configured. The GUI doesn't work but I was able to see something: when I plug the board I see the usb device being recognized, but no serial interface come. If I reset the board the bootloader starts, fading the green led, the Linux log says:
- usb disconnect
- usb connect
- ttyACM0 (the serial!!)

after 6-8 seconds the bootloader stops and the log says:
- usb diconnect
- usb connect
-.... no serial comes

Thanks,
Sergio.

Post Reply