RC India

RC Models => Self-designed, DIY and College Projects => Topic started by: sooraj.palakkad on October 14, 2014, 12:26:34 PM



Title: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 12:26:34 PM
Atmega328+MPU6050+FTDI232RL  With Multiwii F/W

           There are a wide range of multicopter flight controllers available nowadays, from as cheap as 1K to High ends which cost up to 10k.  However beginners like me who are just getting in to the rc hobby may find it little difficult to invest on Items like flight controllers, Radio systems Etc..(the later burns holes in the pocket!!!). As a beginner I searched for the cheapest components through the internet. How ever i couldn't compromise on quality and usability. Things like Radio, and Flight controller are not that easy to get cheap. (Those are cheap, are found to be worth the money!! I mean worth what we payed!!!.)

            So I came to the choice of making my own flight controller, And these are the Immediate problems struck me.
  • Which micro controller
  • Which sensor
  • which firmware or program
  • Is it worth DIYing?

             I have found solutions for these by going through RC forums and blogs And came to these conclusions.
  • Arduino as micro controller platform
  • any cheap ACC. GYRO. combo chips (like MPU6050)
  • Miltiwii , as it has support for all the features of an elite Flight controller  
  • This is cheaper than Buying a FCboard and is worth investing, as its features can be extended

             Still i found one more problem, the arduino board costs around 25$(cheap Chinese clones are available for 7$!), If i go on using an arduino uno, there is no worth DIYing as the total cost is concerned. The other choice is to use an Atmega328 with arduino boot loader, this costs only 2$ and I will have a complete DIY FC board So I chose to Go on with it.

             Now I a have ordered my parts From Ebay and waiting for these to arrive,

          
  • Atmega328P with arduino boot loader $1.5
  • MPU 6050 breakout board                $4
  • PL 2303 USB to TTL RS232               $1.5  (cheaper than FT232RL)
  • HC-05 Bluetooth wireless serial         $5    (This is optional, for connecting FCB wirelessely to PC)
  • Logic Level converter                      $1
  • 16MHz crystal, 2x22pF ceramic capacitors, LM7805 etc...(These items are found in the junk box of any electronics hobbyist however costs only up to 30Rs.)
             So far total Budget is around 1K, !! For a Wireless connectivity dual sensor (Accelerometer and Gyro) Flight control Board!!!!!!!!!.   The Bluetooth module is optional, So with out that , cost reduces to around 700Rs.

              The future mods I have planned are , MPU9150(has built in compass) instead of MPU6050+Barometric pressure sensor+GPS module, And Atmega2560 instead of  Atmega328P  . Guess what? That would have Features of APM !! , For a too low price.

              Currently I am waiting for my parts to Arrive (And my 5th sem exams to end!!) Will Update with Build details Once I get my parts, Keep your Fingers crossed for a Cheap, Yet Highly powerful DIY Flight controller                               :hatsoff:


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: shijin ps on October 14, 2014, 12:46:33 PM
Wish you all the best dear friend. :thumbsup: :thumbsup:


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 12:53:50 PM
@ Shijin,  :thanks:


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sndipz on October 14, 2014, 01:07:42 PM
All the best !!


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 01:20:56 PM
Thanks , Sandipz.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: akhilzid on October 14, 2014, 01:57:29 PM
I think you can jump to second stage directly because the costs matters.

and i already done this with atmega2560 , gy80 , ublox neo 6m , 3dr telemetry and multiwii had great success.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 02:26:13 PM
Cost difference in moving to second step, Atmega2560 will cost 5$ and MPU9150+BMP085+GPS will cost around 30$, Nothing else to change . Currently Designing the PCB , in 50mm x 50mm.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 02:28:31 PM
@akhilzid , gy80? the Chinese breakout board?, I had no faith on it!!. In fact I am not Planning to use break outboards, 'm designing my own PCB


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: akhilzid on October 14, 2014, 03:08:33 PM
pin layout and pcb design will not much differ while MPU9150 and gy80 breakout,

gy80 is chinese but flying more than one year with that. and also tried have MPU6050 make any diffrence.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: AnjanBabu on October 14, 2014, 05:19:27 PM
MPU 6050 breakout (GY-521, I think)-- 200/-
Arduino Pro Mini (16MHz/5V)-- 160/-
5x5 perf-board-- 15/-
A few headers and a couple of jumpers, of course. ~10/-

>500/- in cost.

I didn't go as far as flying with it, I am always paranoid of fly-aways so just did some tethered hovering to check stability, the 6050 breakout was affected by the vibrations a bit, but it wasn't bad at all for an evening's work.



Title: Re: DIY-Multiwii Flight control board for 1K
Post by: AnjanBabu on October 14, 2014, 05:39:23 PM
Atmega2560 will cost 5$

$5 excluding shipping or free shipping?


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 06:01:11 PM
pin layout and pcb design will not much differ while MPU9150 and gy80 breakout,

gy80 is chinese but flying more than one year with that. and also tried have MPU6050 make any diffrence.
Akhil, MPU6050 and 9150 are Single chip Motion sensors, gy80 is a breakout board with separate 3axis aa. +3axis gyro +baro +compass. As i am making a custom PCB decided to go with MPU9150+BMP085 everything in two chips !


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 06:03:02 PM
MPU 6050 breakout (GY-521, I think)-- 200/-
Arduino Pro Mini (16MHz/5V)-- 160/-
5x5 perf-board-- 15/-
A few headers and a couple of jumpers, of course. ~10/-

>500/- in cost.

I didn't go as far as flying with it, I am always paranoid of fly-aways so just did some tethered hovering to check stability, the 6050 breakout was affected by the vibrations a bit, but it wasn't bad at all for an evening's work.


Gr8, Why not flying with it? It's as reliable (or more than that) as KK or HK fCboards.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 06:05:18 PM
Atmega2560 will cost 5$

$5 excluding shipping or free shipping?

That's from ebay, ofcourse it's freeshipping. (But it is the IC only not Arduino Mega)


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: AnjanBabu on October 14, 2014, 06:23:36 PM
As i am making a custom PCB decided to go with MPU9150+BMP085 everything in two chips !
MultiWii does not support the 9150/9250 as of yet, you need to mod the compass code. I think the MWC boards mostly come with HMC5883L 3-axis compass.





Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 07:14:17 PM
MPU 9150 is Simply, The MPU6050 +magnetometer AK8975 .
The Implementation is quite simple...
Just define MPU6050 and define AK8975 in multiwii code, it should work. The sensor orientation may need to be to be modified.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: AnjanBabu on October 14, 2014, 07:46:44 PM
The MPU's DMP is used to processing sensor data on MWC before it goes to the microcontroller, so I'm guessing the compass data also goes though the DMP, in that case it can't be as straight forward as you mention. Also, the compass I2C address might need a check.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 14, 2014, 07:49:04 PM
i found that it is Directly working, On multiwii forum, however will give it a try As MPU9150 is cheap!!


Title: Re:
Post by: sachin_k5 on October 15, 2014, 07:55:19 AM
Hi sooraj , which software will you use to simulate the circuit ?


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 15, 2014, 03:19:41 PM
There is no need to simulate the circuit, As multiwii is a tested and trusted program by so many RC enthusiasts around the world.
For designning the PCB I will be using DIPTRACE.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 24, 2014, 08:55:44 AM
after about a month wait, I finally got the sensor breakout boards , USB to UART TTL converter and Logic Level Converter delivered. Now waiting for my 5th sem Exams to end  :(


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 28, 2014, 09:48:44 AM
another sleepless night, brought an arduino UNO from a friend Bootloaded my new Atmega 328P. Actually, on the Ebay listing , it was said it comes preloaded with optiboot bootloader, but mine was not so when arrived- But no problem, I don't mind whether it's bootloaded or not, for a 60Rs. IC (local electronic shops sell it for 180Rs here !).
           uploaded multiwii firmware to it and connected mpu6050, to check if the multiwii GUI detects it- Success- So everything is still on the breadboard, time to bake a new PCB.
                But now I am confused whether to solder the sensor and bluetooth breakout boards directly or De solder the breakout board and use the IC's only , the latter makes the size of final Flight control board smaller, and will give the feel of an Of the shelf board.      Any suggestions?


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: Dharmik on October 28, 2014, 01:09:11 PM
Really nice job. Looks interesting. Keep it up.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on October 28, 2014, 01:56:46 PM
@Dharmik, thanks.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 09, 2014, 10:13:18 PM
Was trying my luck with some KK5.5 and hobbyking v2 boards, for set it up and learn some flying skills with the multirotor.

Now I gave up, as these boards are giving new problems after solving one another  :banghead:

So Today I decided to set up this multywii FCB on a perf board (general purpose dotted PCB) . I was not at all interested to do this, Was planning to make this FCB after getting my SMD PCB design etched. but have no time to etch a PCB right now.. And I wanna fly.

So it happened today..... took an old 328P , a gy-521 breakout (MPU6050), and started soldering...
though it is not a clean build , It should work.
So I call this Mymultiwii V 1.0  ;D

and guess what, I maintained the size of FCB to be less than 50*50mm even in a perfboard with all DIP components and a sensor break outboard  !!!

But couldn't test it today, because my USB to UART (PL2102) breakout is not functioning  :banghead:

Will do the testing and hopefully flying with this 'not so clean' board with in two days.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: rohan123 on November 09, 2014, 10:24:35 PM
great , would love to see photos if possible .best of luck for testing.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 09, 2014, 11:07:04 PM
Here you go....

Sorry for low resolution, that's the limit of My old phone camera :giggle:

The old two rupee coin is for comparing size of board.
The free portion on the board needs to be cut off.

The total Flight controller is less than 50*50mm.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 09, 2014, 11:17:11 PM
Here is one more.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 10, 2014, 02:01:53 PM
Waiting for getting an Arduino board for using as a programmer .....as my FTDI is not working.
hope it will arrive on wednesday...

Thanks for Akhil eattan (Akhilzid), For sending the arduino UNO :thanks:


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 10, 2014, 11:41:19 PM
Thanks you subash sir, (subhashjk0508) for giving me a LiPo charger and a LCD monitor :thanks: .
And thanks again for the inspiration ........
with out you guys I may have gone through a hardway......Thanks a lot.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: subhashjk0508 on November 11, 2014, 12:55:41 PM
No need for the thanks. and waiting for the maiden!!

Regards,
JK


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: lastRites on November 11, 2014, 02:41:43 PM
Off topic, but I would like to mention a trick I learnt a while ago. While dealing with macro shots with crappy phone cameras without AF, place a concave lens in front of the camera lens. Any kind would work: Magnifying glass,reading glasses, etc. :)


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: lastRites on November 11, 2014, 02:43:50 PM
You would be better off using some other usb to serial interface. FTDI has gone nuts and they are bricking non-original chips on purpose.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 11, 2014, 06:56:08 PM
Off topic, but I would like to mention a trick I learnt a while ago. While dealing with macro shots with crappy phone cameras without AF, place a concave lens in front of the camera lens. Any kind would work: Magnifying glass,reading glasses, etc. :)

Didn't knew that - But do you mean Concave lens or convex lens ?
convex lens (converging lens) is usually used as magnifying lens / reading lens not concave.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 11, 2014, 06:58:00 PM
I am not using FTDI, it's PL2102 .
 Seems the reset pulse from DTR is not doing the trick - always AVRdude sync errors :(


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 11, 2014, 07:06:57 PM
offtopic - But can't sit with out saying , EMS speedpost rockzz.......
Akhil eattan send a UNO board from Eranakulam yesterday evening (6.40PM 10/11/2014) Received it today noon in Palakkad (12.20 PM  11/11/2014)   !!!!!

That is <18Hr Delivery !!!!!!!!!! I DOn't expect any professional couriers in Kerala to make it !!
:hatsoff: Indiapost  !


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on November 11, 2014, 10:32:16 PM
The Board is working well - as It should do :)
Now a PCB -may be......


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: cool16yash on December 12, 2014, 10:40:42 AM
can i get the full circuit design for the flight controller
as i am too trying to make own to reduce the cost


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on December 12, 2014, 02:24:22 PM
It's based on multiwii, f/w , check the multiwii wiki - I selected multwii, because it supports so many h/w.
In near future i will write my own code.
I can share the circuit I used, when i reach home.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: Balakrishna Reddy on May 29, 2015, 11:57:39 AM
nice thought friend i made the board with mpu6050 and hmc5883l. The gui shows well but the outputs to motors doesnt work properly in my case " https://www.youtube.com/watch?v=KCL_t0n_bCs " only two motors runs after throttle up.all motors only run only at tx high throttle that too only two motors at high throttle and other two at low throttle because i am facing lot of problems for stable hovering


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: sooraj.palakkad on May 29, 2015, 12:06:09 PM
did you calibrated the ESCs together ?
it seems just a esc calibration issue


Title: Re:
Post by: akhilzid on May 29, 2015, 12:20:07 PM
look like the IMU/Compass orientation issue or motors connection/ directin inverted.


Title: Re: DIY-Multiwii Flight control board for 1K
Post by: Balakrishna Reddy on May 31, 2015, 02:12:31 PM
tq for early reply friends and i got the solution i just need ti tune my tx yaw stick to very fine resolution of 1494 reading then it worked fine even a slight change in reading will change the setting and then it starts to yaw. I think  i am succesful in making my very own custom design of multiwii. If any one need help for circuit can ask me