Quadrino Nano Flight Controller - Opening Code in Arduino

Hi!

I’d appreciate some advice with the Quadrino Nano Flight Controller.

After configuring it to the needs of my drone, I’d like to open up the code in the Arduino Interface. Is there an easy way to do this from the FCT, or would I have to copy and paste the code form the review into Arduino. Would I also then have to then download the needed libraries?

Simply, my question is, how do I go back and edit the code in Arduino which was configured by the FCT.

Thank you so much in advance for your help!

Hi zeuslion,

Do you need to only change what the FCT is actually configuring ?
The application is only editing the “config.h” file of the MultiWii project but HERE is the complete project setup for the Quadrino Nano.

You can download it and edit the config.h in Arduino IDE if you want.
By holding the “ALT” key when click “Flash” in the FCT you will be allow to search and use a local “config.h” file.

:slight_smile:

dialfonzo,

Thank you for the information.

I have a couple more questions regarding Multiwii and the Quadrino nano. I would kindly like your advice. I understand that the FCT is only editing the “config.h” file of MultiWii. When the flight controller is being flashed, the config.h file along with the rest of the MultiWii project code is being sent to the controller right?

Second, (and this relates to the first question) let’s say I were to download the complete MultiWii project code and edit not only the config.h tab but also edit other parts of the code. Now if I want to upload this edited code to the flight controller, would I hold the ALT key while I flash and chose the config.h file which is contained in the MultiWii project?

Can you only flash multiwii code inside the FCT application? I tried sending the code within the arduinon IDE and got the following error code in return: avrdude: “verification error; content mismatch”.

To put my problem into further context; I not only want to edit the “config.h” file of the MultiWii project, but I also want to edit the rest of the code, and have that all be flashed to the Quadrino nano.

Thank you very much.

Yes - The MultiWii project is flashed to the board when you upload by the FCT. MultiWii is made of multiple “files” which work together and the “config.h” is where most of the configurable things are set.

No - The rest of the project is not configured by the FCT. However some items have been changed to make the GPS (for example) work with MultiWii in other tabs. They are fixed changes which do not require the FCT to do anything. The “ALT” key hold while clicking the “FLASH” button will allow to select a “config.h” file you would have modified, it will use the rest of the MultiWii project.

It could be multiple issues but you need the whole MultiWii project to be un-zip into a folder and then select the right Board/COM in the Arduino IDE software.

Lynxmotion Quadrino Nano - GitHub - MultiWii (download link)

Board: Arduino MEGA 2560
COM: That will depend on your actual PC, you can look in Device Manager

Hope that help,

1 Like

Okay this helped a lot.

I need a little more clarification to lead me on the right path.

  1. You mentioned that selecting the edited “config.h” file with the hold “ALT” maneuver “will use the rest of the MultiWii project”. Just to make sure, it will use the rest MultiWii project that the config.h file is contained in correct? I am asking because I am planning to edit the config.h file along with the rest of the code.

  2. I have a question about the correct work flow for uploading the edited MultiWii code to the flight controller. Would you say its correct to edit the MultiWii code in the Arduino IDE, and then flash it (upload it) using the “ALT” hold maneuver inside the FCT? or can you also directly upload it inside the arduino IDE.

Thank You

  1. No this allows you to use only your own “config.h” file but the rest of MultiWii is the default one. If you want to edit other section of MultiWii you need to use the Github project files i’ve linked in conjunction with Arduino IDE.

  2. Two different things as explained above. The FCT only allows you to load a “config.h” file that you have edited.

:slight_smile:

Okay, I’m glad I got this clarified.

This takes me back to a previous problem I mentioned regarding uploading MultiWii within Arduino IDE.

When I connect the Quadrino nano it lights up and LEDs flash. I have the correct board selected: Arduino Mega 2560, and I choose the only COM port available “COM12”. I downloaded the MultiWii project from GitHub, and only edited the Config.h tab to replicate exactly what the FCT did. Within the Arduino IDE, the code will successfully verify, but when I attempt to upload, I receive an error message :

avrdude: verification error, first mismatch at byte 0x0000
0x14 != 0xb9
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

and thus I fail in my attempt to upload the MultiWii project with Arduino IDE. I have done a little research as to what can be the cause of this error, but have had no success in correctly troubleshooting the problem. What else can I do in order to try and solve this problem.

I greatly appreciate the amazing support!

In the FCT, have you been able to flash the board yet ?

If you go in your “Device Manager” under “Ports (COM & LPT)” what do you have ?
Granted you connected the Quadrino first to your PC.

Here is what you should see, with a different COM port number:
QuadrinoNano-COM

If you do not have that, you need to install the drivers.
Be careful to use the right version which is not the latest here:
Download for Windows 7/8/8.1 (v6.7.6)

Yes, I’ve flashed it with the FCT and done some test flights.

I do have the same thing you have shown in my device manager. As you mentioned, its identical except I have “COM12”.

When you downloaded the MultiWii project, have you un-zipped all the file into ONE folder ?

Yes. I have one folder (“Quadrino-Nano-multiwii-firmware-master”) which contains within it a single folder for the entire MultiWii project, and also contains a “README” file.

I would suggest to try two things:

  1. Try to load the “BLINK” example in Arduino IDE.

  1. Try to load the MultiWii project without making Any changes. (It works here, just tested)

:slight_smile:

Thank you.

The only changes I’ve made to the MultiWii project are changing the Config.h file to match what the FCT is doing. I still haven’t made the other changes I plan to do.

I will try and load the blink example and get back to you.

If that was the case, the Arduino IDE would load the code.

  • Drivers should be good since the FCT work
  • Arduino IDE work on my side with the GitHub files re-downloaded

It has to be something regarding the changes you made.

:slight_smile:

After trying to upload the example sketch “Blink”, I get the same error code (“avrdude: verification error, content mismatch”).

I re-downloaded the MultiWii project from GitHub, made no changes, and I get error code after trying to upload.

Are you using the same USB connector that comes stock with the Quadrino nano?

Some more information that might help us solve this problem:

You asked if I was able to flash the board in the FCT, and I said yes. But, I must clarify this a little further. When I click “flash firmware” the “compile firmware” bar will load and fill, and then the “transfer to quadrino” bar will fill but seem to continue to load never stopping. Also, on the top of the page it continues to say “uploading firmware to quadrino, please wait”.

I only assumed a successful flash because of the blinking lights on the quadrino. They seemed to change after a while so I thought flash was complete. But on the actual app, it never changes from “uploading firmware to quadrino, please wait”. If i remember correctly, the very first time i flashed the board, i received some kind of indication of completion on the app after flash was complete. I dont seem to be getting that now.

No - That indicate that the driver you have installed are not the right ones.

You need to un-installe the drivers and install the version i pointed in my previous post:
Be careful to use the right version which is not the latest here:
Download for Windows 7/8/8.1 (v6.7.6)

So this screen will not change after flash is completed?
ex1

I deleted drivers and installed the one in the link you’ve attached, and still no luck. :confused:
Is the right version of the drivers in the download link? I’m a bit confused as you are saying “which is not the latest here”.

When the flash is done you should get a screen like that:

How have you deleted the drivers ?

1- Open “Device Manager” and find your “Silicon Labs…” device in “Ports (COM & LPT)”

2- Right click on it and select the “Uninstall Device” option

3- Make sure to select the “Delete the driver software for this device” on the next window.

QuadrinoNano-Drivers-2

4- Download the drivers Windows 7/8/8.1 (v6.7.6)

5- Unzip the drivers to a known location and start the driver install.

QuadrinoNano-Drivers-3

6- Once installed, you can disconnect/reconnect your Quadrino and give it a try in the FCT. (with a default profile)

I just went over this procedure to confirm it. :slight_smile:

I deleted the drives and installed new ones with the same method, and tried to upload a default profile in the FCT. I did not get the screen with the green bar. The only difference this time is that I get the box below:
ex2

If I hit No or Yes, I still do not get the programming succeeded. I assume I shouldn’t have to wait too long for the transfer to complete.