Porting Multiwii to Arduino DUE - Done
Porting Multiwii to Arduino DUE - Done
Hi,
I worked during the last three weeks on adding Arduino_DUE to Multiwii v2.3.
The end result is a code that can be compiled on ordinary 8-bit Arduino as well as Arduino DUE.
For more details kindly check http://technicaladventure.blogspot.com/2014/05/porting-multiwii-to-arduino-due.html
I worked during the last three weeks on adding Arduino_DUE to Multiwii v2.3.
The end result is a code that can be compiled on ordinary 8-bit Arduino as well as Arduino DUE.
For more details kindly check http://technicaladventure.blogspot.com/2014/05/porting-multiwii-to-arduino-due.html
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Porting Multiwii to Arduino DUE - Done
Awesome Job, I recently ordered a DUE for testing.
I use these mega shields available on eBay, maybe you can used one for this project.
I use these mega shields available on eBay, maybe you can used one for this project.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Porting Multiwii to Arduino DUE - Done
Great work! I have barely touched my Due since I got it at release, the flash is starting to get rusty .
Tried it quickly yesterday before going to bed and noticed that the MPU6050 gyro values did not return to 0 when I tilted the sensor.
I was too tired to debug it yesterday, will try to see what it could be today if I find any spare time. Do you have any idea what it could be?
Tried it quickly yesterday before going to bed and noticed that the MPU6050 gyro values did not return to 0 when I tilted the sensor.
I was too tired to debug it yesterday, will try to see what it could be today if I find any spare time. Do you have any idea what it could be?
Re: Porting Multiwii to Arduino DUE - Done
I recompiled the code again to make sure there is no versioning issue in the uploaded one, and it worked as expected.
I found that the HK_MultiWii_328P is enabled in config.h by default so I commented it.
I found that the HK_MultiWii_328P is enabled in config.h by default so I commented it.
Re: Porting Multiwii to Arduino DUE - Done
I think it is that the MPU6050 got both a ACC and GYRO on the same address that messes things up. When using both the acc and the gyro the values seem to get mixed, the gyro values acts more like a accelerometer and the acc values returns to 0 like gyro values.
When I disable the ACC in def.h the gyro values are working as they should.
When I disable the ACC in def.h the gyro values are working as they should.
Re: Porting Multiwii to Arduino DUE - Done
io53 wrote:I think it is that the MPU6050 got both a ACC and GYRO on the same address that messes things up. When using both the acc and the gyro the values seem to get mixed, the gyro values acts more like a accelerometer and the acc values returns to 0 like gyro values.
When I disable the ACC in def.h the gyro values are working as they should.
Re: Porting Multiwii to Arduino DUE - Done
timecop wrote:gif
I'm the proud creator of the worst explanation in the history of MultiWii.
Maybe this will make it clearer
https://www.youtube.com/watch?v=aNy5ir_JUMI
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Porting Multiwii to Arduino DUE - Done
MHefny wrote:Hi,
I worked during the last three weeks on adding Arduino_DUE to Multiwii v2.3.
The end result is a code that can be compiled on ordinary 8-bit Arduino as well as Arduino DUE.
Question for you please, considering the DUE is a large board anyway, would it be of any benefit using an add-on i2c eeprom device verse the eeprom emulator?
Example: AT24C256 Serial EEPROM Module I2C EEPROM Data Storage Module Arduino PIC
Re: Porting Multiwii to Arduino DUE - Done
copterrichie wrote:Question for you please, considering the DUE is a large board anyway, would it be of any benefit using an add-on i2c eeprom device verse the eeprom emulator?
Example: AT24C256 Serial EEPROM Module I2C EEPROM Data Storage Module Arduino PIC
Sure this is possible. I think using DUE memory is one things that makes this porting useful and straight forward. Same idea implemented in Naze32. Yes sure you can do that but what is the benefit you will get over internal memory giving the current data you need to save for multiwii.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: Porting Multiwii to Arduino DUE - Done
MHefny wrote:
Sure this is possible. I think using DUE memory is one things that makes this porting useful and straight forward. Same idea implemented in Naze32. Yes sure you can do that but what is the benefit you will get over internal memory giving the current data you need to save for multiwii.
Please correct me here if I am wrong but is there a limited number of times the flash memory can be written to?
Thank you.
Re: Porting Multiwii to Arduino DUE - Done
We're talking into tens of thousands of rewrite cycles, not something to really give a shit about.
Re: Porting Multiwii to Arduino DUE - Done
timecop wrote:We're talking into tens of thousands of rewrite cycles, not something to really give a shit about.
depends on WHAT flash:
- MLC
- SLC
the later is ok - MLC can be as low as 800 read/write cycles.
depends what you pay for
chinese stuff is prob. write only ...
Re: Porting Multiwii to Arduino DUE - Done
I was referring to internal flash on -modern MCUs.
Re: Porting Multiwii to Arduino DUE - Done
Can you confirm the status of the I2C GPS functions working on the Due? I'm working on a project that leverages portions of the Multiwii code base. We have all of our code working on the Due, except for the I2C functions which communicate with the I2C GPS Nav board. We have incorporated the portions of your code that are pertinent to these operations. We can get a successful detection of the I2C GPS NAV module, but cannot successfully retreive data from the registers.
Thanks for your great work on this project!
Thanks for your great work on this project!
Re: Porting Multiwii to Arduino DUE - Done
Why the FUCK would you care about I2C GPS on a board with like 5 serial ports?
Re: Porting Multiwii to Arduino DUE - Done
shagerott wrote:Can you confirm the status of the I2C GPS functions working on the Due? I'm working on a project that leverages portions of the Multiwii code base. We have all of our code working on the Due, except for the I2C functions which communicate with the I2C GPS Nav board. We have incorporated the portions of your code that are pertinent to these operations. We can get a successful detection of the I2C GPS NAV module, but cannot successfully retreive data from the registers.
Thanks for your great work on this project!
Pls chk my I2C updates in sensors.cpp i kept the function signature i changed the code.
But i never tried gps
Re: Porting Multiwii to Arduino DUE - Done
Ciao MHefny
Scusa se ti scrivo in italiano.
Ho visto il tuo lavoro su arduino due e sono rimasto colpito complimenti.
cosi mi sono attrezzato o aggiunto External I2C EEPROM to Arduino (24LC256)
http://www.instructables.com/id/Adding- ... duino-Due/
Ma al momento non comunica con la MultiWiiWin GUI
vedi filmino, poi ce la SPEKTRUM sat che al momento della compilazione fa un errore
Dai MHefny che ce la facciamo se mi dai una mano.
In caso fai delle modiche al software, inserisci un file zip. nel forum.
Ciao, servo
https://www.youtube.com/watch?v=PNgAFpD ... e=youtu.be
Scusa se ti scrivo in italiano.
Ho visto il tuo lavoro su arduino due e sono rimasto colpito complimenti.
cosi mi sono attrezzato o aggiunto External I2C EEPROM to Arduino (24LC256)
http://www.instructables.com/id/Adding- ... duino-Due/
Ma al momento non comunica con la MultiWiiWin GUI
vedi filmino, poi ce la SPEKTRUM sat che al momento della compilazione fa un errore
Dai MHefny che ce la facciamo se mi dai una mano.
In caso fai delle modiche al software, inserisci un file zip. nel forum.
Ciao, servo
https://www.youtube.com/watch?v=PNgAFpD ... e=youtu.be
Re: Porting Multiwii to Arduino DUE - Done
servo23 wrote:Ciao MHefny
Scusa se ti scrivo in italiano.
Ho visto il tuo lavoro su arduino due e sono rimasto colpito complimenti.
cosi mi sono attrezzato o aggiunto External I2C EEPROM to Arduino (24LC256)
http://www.instructables.com/id/Adding- ... duino-Due/
Ma al momento non comunica con la MultiWiiWin GUI
vedi filmino, poi ce la SPEKTRUM sat che al momento della compilazione fa un errore
Dai MHefny che ce la facciamo se mi dai una mano.
In caso fai delle modiche al software, inserisci un file zip. nel forum.
Ciao, servo
https://www.youtube.com/watch?v=PNgAFpD ... e=youtu.be
MHefny will understand everything you wrote
Re: Porting Multiwii to Arduino DUE - Done
If you want you can translate it with Google Translate
How can I when I do not know a language.
Ciao, servo
How can I when I do not know a language.
Ciao, servo
Re: Porting Multiwii to Arduino DUE - Done
MHefny wrote:For more details kindly check http://technicaladventure.blogspot.com/2014/05/porting-multiwii-to-arduino-due.html
there is also a FF32 ripfoff there -> http://diydrones.com/profiles/blogs/ard ... itude-hold
Re: Porting Multiwii to Arduino DUE - Done
servo23 wrote:If you want you can translate it with Google Translate
How can I when I do not know a language.
Ciao, servo
Re: Porting Multiwii to Arduino DUE - Done
Ciao, scrat
Molto molto bene complimenti a Tinnakon Kheowree
Ho appena provato il programma ma non abbiamo gli stessi sensori fa in piccolo errore, vedi filmino
lui utilizza MPU6050C, ed io FreeIMU_v0_3_5_MS mi domandavo se e possibile
integrare la FreeIMU_v0_3_5_MS e la spektrum satellit che funziona a 3.3V nel programma
cosi da evitare il bec da 5V. a me piacciono le cose semplici meno cose ci sono e meno problemi ci sono.
Vedi foto la nuova configurazione e molto più semplice senza EEprom e con solo spektrum satellit.
Ciao, servo
------------------------------------------------------------------------------------------------------------------------------
Hello, scrat
Very very good compliments to Tinnakon Kheowree
I just tried the program but does not have the same sensors in little error, see home movie
he uses MPU6050C, and I FreeIMU_v0_3_5_MS I was wondering if it is possible to
integrate FreeIMU_v0_3_5_MS and spektrum satellit that runs at 3.3V in the program
so as to avoid the bec from 5V. I like things simple, there are fewer things and fewer problems there are.
See photo the new configuration and much easier without EEprom and with only spektrum satellit.
Hello,servo
http://youtu.be/u_llEXe0yVo
Molto molto bene complimenti a Tinnakon Kheowree
Ho appena provato il programma ma non abbiamo gli stessi sensori fa in piccolo errore, vedi filmino
lui utilizza MPU6050C, ed io FreeIMU_v0_3_5_MS mi domandavo se e possibile
integrare la FreeIMU_v0_3_5_MS e la spektrum satellit che funziona a 3.3V nel programma
cosi da evitare il bec da 5V. a me piacciono le cose semplici meno cose ci sono e meno problemi ci sono.
Vedi foto la nuova configurazione e molto più semplice senza EEprom e con solo spektrum satellit.
Ciao, servo
------------------------------------------------------------------------------------------------------------------------------
Hello, scrat
Very very good compliments to Tinnakon Kheowree
I just tried the program but does not have the same sensors in little error, see home movie
he uses MPU6050C, and I FreeIMU_v0_3_5_MS I was wondering if it is possible to
integrate FreeIMU_v0_3_5_MS and spektrum satellit that runs at 3.3V in the program
so as to avoid the bec from 5V. I like things simple, there are fewer things and fewer problems there are.
See photo the new configuration and much easier without EEprom and with only spektrum satellit.
Hello,servo
http://youtu.be/u_llEXe0yVo
Re: Porting Multiwii to Arduino DUE - Done
shagerott wrote:Can you confirm the status of the I2C GPS functions working on the Due? I'm working on a project that leverages portions of the Multiwii code base. We have all of our code working on the Due, except for the I2C functions which communicate with the I2C GPS Nav board. We have incorporated the portions of your code that are pertinent to these operations. We can get a successful detection of the I2C GPS NAV module, but cannot successfully retreive data from the registers.
Thanks for your great work on this project!
Sorry for taking so so long to answer .
i suspended the work on multiwii DUE since a while, it was a POC. that it is doable.
Re: Porting Multiwii to Arduino DUE - Done
Please be informed that the source code is
https://github.com/HefnySco/MultiWii_DUE
https://github.com/HefnySco/MultiWii_DUE