RC India
Welcome Guest, please login or register.
 
Pages: [1] 2 3  All   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools Topic Tools 
Read
« on: November 30, 2014, 11:44:41 AM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009




Can anyone suggest how to make a two wheel balancing robot using a multirotor board.

I can't write code so please consider that when replying.
Logged
 

Read
« Reply #1 on: December 01, 2014, 10:07:24 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



Are you determined on using a Flight control board for a Segway like balancing robot ?
Otherwise you can make a special control board out of arduino and sensors.
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #2 on: December 02, 2014, 12:44:36 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



yes i know about the uc/acc/hbridge method - i want to use a FC ,
as i have a couple lying around.

i was thinking of using multiwii in airplane mode and using two servos (modified for continuous
rotation) for the drive.

i can also attach a reciever a drive it around.


any drawbacks to the above ?
Logged
 

Read
« Reply #3 on: December 02, 2014, 12:55:36 PM »
SK1701
Heli Lover
Forum Hero

*****

Reputation Power: 11 
SK1701 has no influence.
Offline Offline

City: Montreal/ Bangalore
State: OUTSIDE INDIA
RC Skills: Intermediate
Posts: 888
Join Date: Oct, 2014

set acc_hardware = 1



Seems like a very interesting concept. I would love to see it in action. instructables.com has several self-balancing robots but from what I have seen, they use the Arduino/sensor method. Good luck sir.
Logged

 

Read
« Reply #4 on: December 02, 2014, 04:51:32 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



@saikat ji, It should be working,

meanwhile, see this, http://www.instructables.com/id/2-Wheel-Self-Balancing-Robot-by-using-Arduino-and-/

you can even try tweaking the code there to run in multiwii h/w
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #5 on: December 07, 2014, 12:05:52 AM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



Hi Saikat,
Wow what a coincidence!!
Me too trying to do exactly the same thing. A self balancing robot using the MultiWii SE 2.0 board. I decided to use this board, as I see lot of similarity between the individual boards setup & this FC board.

I have found links giving info on this. Could be of use to you too,

https://communities.intel.com/message/249321
http://forum.arduino.cc/index.php/topic,7943.0.html
http://www.x-firm.com/?page_id=148
http://forum.arduino.cc/index.php?PHPSESSID=pgqgui4snvnrj9jl7mmhr9j4n2&topic=8871.0

One info I have found out is that servo's don't serve this purpose. You need a motor which has atleast 200RPM minimum for the faster corrections.
I doubt if servo's would give that RPM. I suggest using the DC motors with L293/L298 driver.

If you have already finished this project, please share the details. Else once I complete, will post the update here.

Cheers!
Sudhakar
Logged
 

Read
« Reply #6 on: December 07, 2014, 11:22:23 AM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



Hi Sudhakar

yes .. unfortunately servos are not fast enough ... I realised that
only after hacking two perfectly good servos.

I tried fitting CDs as wheels ... reasoning that larger dia would result in faster travel
only worked partially . could balance on a bed (that too not very well) and not at all
on the floor.

next line of action will be to use two brushed motors (speed 300) size and drive
them using two brushless esc flashed to drive brush motor with reverse.
this will let them be driven off a servo pulse.(hopefully)

pls keep me updated on your progress.

Logged
 

Read
« Reply #7 on: December 07, 2014, 11:54:15 AM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



why not  brushless motors Huh?
they give ultimate response.
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #8 on: December 09, 2014, 11:20:47 AM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



Hi Saikat,
What code did you use for your bot? Did you wrote your own code or used the MultiWii original one?
Logged
 

Read
« Reply #9 on: December 09, 2014, 01:01:08 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



multiwii original - options changed to #airplane in config.h

does any one have any cheap atmega based brushless ecs (6-10amp) for  sale ?

I require two.
.
Logged
 

Read
« Reply #10 on: December 09, 2014, 03:16:59 PM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



How would air plane configuration support the balancing bot, air plane has only single motor & balancing bot has dual motors attached.
Can you please explain.
I was trying with Dual copter or BI config which has 2 motors in it. What is your though about it?
Logged
 

Read
« Reply #11 on: December 09, 2014, 04:37:36 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



the airplane mode can use servos for each wing- I was using servos modified
for continuous rotation with wheels attached instead of normal motors.
dual copter will also work but you will either need motors attached to reversible
esc's or use servos.

for balancing (only) you need both motors to move in the same direction
so it is possible to drive both from a single signal pin using a y lead.
Logged
 

Read
« Reply #12 on: December 09, 2014, 04:44:07 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



You can use two motor output of a quadcopter Huh?
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #13 on: December 09, 2014, 04:49:57 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



you cannot

1. the motors will spin only with application of throttle
2. the motors have to be reversible. (the robot while balancing will move both forward and backward)
Logged
 

Read
« Reply #14 on: December 09, 2014, 05:01:33 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



yeah I got it,
Why not use a custom firmware with multiwii h/w ?
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #15 on: December 09, 2014, 05:13:21 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Kolkata
State: West Bengal
RC Skills: Expert
Posts: 1135
Join Date: Jul, 2009



aah ... the million dollar question.

My knowledge of C+ is very rudimentary - certainly not good
enough to write a program of this level.

Am learning though...

 
Logged
 

Read
« Reply #16 on: December 09, 2014, 05:17:18 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



You don't have to be a master in C for Arduino programming.
You can use Arduino codes written by other peoples for this purpose, and tweak it for multywii board Smiley .
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #17 on: December 09, 2014, 05:56:09 PM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



I understood your point Saikat.
L293/L298 boards provide dual motor forward-reverse option for driving DC brushed motors.
Logged
 

Read
« Reply #18 on: December 09, 2014, 06:25:30 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



L293 can drive 2 Brushed motors b/w or f/w - But this IC can't be interfaced with a multiwii firmware.
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #19 on: December 09, 2014, 09:16:38 PM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



You are right sooraj, But we need to design a custom firmware for this driver.
Logged
 

Read
« Reply #20 on: December 09, 2014, 09:22:48 PM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



Use a code written for atmega 328  (Arduino UNO) and tweak it to run on multiwii sensor (MPU6050)
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #21 on: December 10, 2014, 01:00:00 AM »
akhilzid
Heli Lover
Forum Hero

*****

Reputation Power: 5 
akhilzid has no influence.
Offline Offline

City: Ernakulam
State: Kerala
RC Skills: Advanced
Posts: 541
Join Date: Sep, 2014



Use a code written for atmega 328  (Arduino UNO) and tweak it to run on multiwii sensor (MPU6050)
look at your Reply #4 if you are using L298N, that code should work without modifications for the multiwii boards.


EDIT:  Arduino UNO + MPU6050 +HMC5883L + BMP085 - FTDI (redesigned with removed some regulators) = MultiWii SE 2.0
Logged
 

Read
« Reply #22 on: December 10, 2014, 06:30:17 AM »
sooraj.palakkad
with eyes in sky
Heli Lover
Forum Hero

*****

Reputation Power: 21 
sooraj.palakkad barely matters.sooraj.palakkad barely matters.
Offline Offline

City: Palakkad
State: Kerala
RC Skills: Expert
Posts: 2058
Join Date: Aug, 2014

SPN



Yeah, I forgot I pasted that link here !.
In that instructables, H/w similar to multiwii board is used. So it's as easy as load and run , but if the configured o/p pins with that f/w is not any of the multiwii motor o/p pins, yo have to either hack the multiwii board or the code (Hi hi, that rhymes !) .
Sorry I am too lazy now to read the code used in that instructables and find which are the o/p pins, but if you couldn't make it out, I can do that Smiley
Logged

RC Hobbyist and an Aerial Cinematographer..
 

Read
« Reply #23 on: December 10, 2014, 10:30:57 AM »
akhilzid
Heli Lover
Forum Hero

*****

Reputation Power: 5 
akhilzid has no influence.
Offline Offline

City: Ernakulam
State: Kerala
RC Skills: Advanced
Posts: 541
Join Date: Sep, 2014


Re:

Pins in that configurations is D10, D11 (PWM) Pins, same pins available @ multiwii se  too (Look at the ESC Connection Pins). So no need to change code for that.

Still you need to change that just modify 4th and 5th line (#define PWM_L 10 #define PWM_R 11) to any of the pwm pins(3,9,10,11 are available) in multiwii se.
Logged
 

Read
« Reply #24 on: December 10, 2014, 02:08:18 PM »
sudhakar_yg
Car Lover
Active Member
**

Reputation Power: 2 
sudhakar_yg has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 93
Join Date: May, 2013



Hi Akhilzid,
For the code given in http://www.instructables.com/id/2-Wheel-Self-Balancing-Robot-by-using-Arduino-and-/
Following are the changes I could see in the definitions as per the attached L293 & Multiwii circuit diagram.
Let me know if you think any thing else need to be changed.

MultiWii Board                     Peripheral Connection
-------------------------------------------------------------------------
#define LED 13                       LED
#define PWM_L 10                            L293-Pin1
#define PWM_R 11                            L293-Pin9
#define DIR_L1 6                            L293-Pin2
#define DIR_L2 12                            L293-Pin15
#define DIR_R1 8                            L293-Pin7
#define DIR_R2 9                            L293-Pin10
#define SPD_INT_L 3//1      
#define SPD_PUL_L 4
#define SPD_INT_R 4//7
#define SPD_PUL_R 5
#define MPU_INT 2//0
#define K_AGL_AD A0                    Change A0 to A4
#define K_AGL_DOT_AD A1            Change A1 to A5
#define K_POS_AD A2                    Change A2 to A4
#define K_POS_DOT_AD A3            Change A3 to A5
-------------------------------------------------------------------------

MultiWii-Circuit.jpg
Re: Multirotor board - balancing robot
* MultiWii-Circuit.jpg (84.08 KB, 800x568 - viewed 6909 times.)
This post has 1 more images(s)/attachment(s). Please login or register to view them.
Logged
 

Pages: [1] 2 3  All   Go Up
Jump to:  

Related Topics
Subject Started by Replies Views Last post
sale: multirotor board
For Sale - Completed
AEROVISHWA 9 7218 Last post April 09, 2012, 08:27:34 PM
by AEROVISHWA
On sale : Multirotor board
For Sale
satz flying 3 3594 Last post August 29, 2012, 06:54:17 PM
by satz flying
HK i86 Multirotor Board for Sale!
For Sale
intorc 2 2229 Last post February 22, 2014, 11:52:57 PM
by rram39600
Is it possible to build a self balancing robot using modern FC F3/F4
Beginners Zone
kishorParida 9 5259 Last post June 21, 2018, 01:02:48 PM
by kishorParida
DIY - Self Balancing Robot
Self-designed, DIY and College Projects
Dharmik 1 7309 Last post December 16, 2022, 02:40:39 PM
by keshv14