ArduRoller - balanced car on pixhawk

Talking with @tridge and Ebin, a couple of things we’ve found with our balance bot that negatively affects performance:

  • we are using RC car ESCs and they have a big deadzone
  • the frame provided by my main sponsor has significant play in the wheels
  • initially a pixfalcon flight controller was used but this doesn’t allow attaching wheel encoders.

Looks like the code is coming along though, a PR is almost ready for master it seems.

1 Like

Hey, interesting project!

I’ve just started my experiments with self-balancing robots, made a small prototype using cheap 2-axis brushless gimbal hardware and some from-scratch Arduino code:



Now I want to move to something bigger, so I disassembled a self-balancing scooter for it’s battery, motors and motor drive PCB. These things have got 2 350W sensored brushless wheel motors, a 10s2p lithium battery and a dual motor controller PCB that I’m reflashing now with open firmware.

I was looking for a suitable MCU/IMU to run the self-balancing software on (don’t want to use the stock IMUs), when I found this page. Looking forward to the progress!

This is fun to watch!
I had a question about the FPV camera though, is an active control really necessary for a bot that only leans in 2 directions? Couldn’t a gyro stabilized camera be just as effective, and less “Technical”. Just curious.

Also, thought of a potential “FailSafe” for balance bot. Have a spring-loaded kick stand which is “held closed” during normal operations but is released upon fault or power failures, to prevent the bot from falling over.

Hi there! Sorry I’m not very active here.
@james_pattison Thanks :smile:
@mundsen The first PR is up here: https://github.com/ArduPilot/ardupilot/pull/8701 . It would be really great if you could try out the code and let us know how it goes. That design looks amazing! can you share the fusion360 files? I personally use Solidworks. I guess i should be able to import it though.
I’ve made a blog post on my work so far: GSoC 2018: Balance Bot with Ardupilot

2 Likes

I`ll share my files - My export formats stl, stp/step, igs/iges

I may share using thingiverse

1 Like

Yeah step should be fine. It would be great if you can put it on thingiverse

1 Like

Did share my files at thingiverse

This is work in progress and one of my many “Learning by doing” projects, so I may alter the design a lot as I go - but shared if anyone wants to test.

Appreciate all comments (things I should modify…)

1 Like

What motor are you using? Can you give me a link? I love your design, but there are a couple of things that came to my mind:

  1. Most of the geared dc motors seem to use, a standard hexagonal pattern of screw holes. Here is an example https://grabcad.com/library/37-mm-dc-geared-motor-mounting-bracket-1. There are outliers, but at least one or two holes mostly are compatible. So if you could put screw holes like that on the sides to hold the motors? Or you could put an option at the bottom to screw on a standard metal motor clamp.
  2. The way the motors are held right now is good, but it seems like it depends on the size and may be incompatible for different motor types. Hence I made the previous suggestion.
  3. Is the partition between the motors there for a reason? It may be a bit inconvenient to get motors in and out and for wiring. If it is to strengthen the frame, can you make it a separate screw-on part?
  4. Pixhawks come with this safety switch. Can you put an option for that, probably somewhere at the top?
  5. An ON/OFF switch too. I’ve put one on mine

But overall it looks great!
Cheers

Motors (not tested yet) - https://www.dfrobot.com/product-1462.html
Driver: https://robu.in/product/dual-channel-enhanced-13amp-dc-motor-driver-30a-peak/

The motors are 25mm - the most motors I have found used on bots like this are 25mm or Nema stepper motors.

It is no problem installing the motors + there is space for the wires - I may consider screw holes in the sides, but I do not know how strong that is going to be - the side walls can`t be more than 2-4mm because of the short motor shafts (when using 120mm wheels like me)

I plan to support the safety switch + on/off switch

Docs are up: http://ardupilot.org/rover/docs/balance_bot-home.html. Everybody with a balance bot can now try it out!

3 Likes

I love that the bot can hold all the antennas in the top. I am using the APM 2.5 ArdruCopter controller based on the Make article here.
https://makezine.com/projects/arduroller-self-balancing-robot/

I believe a lot of people have build this bot and would probably love to use ArdruRover so if this can support the older apm configuration that would be awesome. I’ve been away from drones for a few years but I want to get his project back up and finish it. I was able to get the make version to stand still but any throttle would make it fall over fast.

@burninmedia,

I think balance bot will go out officially with Rover-3.5 but until then it’s possible to load “latest” through the mission planner’s Install Firmware screen by pressing “Ctrl-Q”. I’m also planning to buy a balance bot in the near future to give it a try and help improve it if necessary.

Sadly we can’t support the old APM2.x boards. There are a lot of them out there and strangely a few manufacturers are still selling them but considering the limited resources we have, we can’t support these really old boards because they simply don’t have the CPU, RAM or flash space to run our greatly improved E
KF or new features. We stopped supporting these boards years ago, and gave the community a year+ of warning as part of that process…

ArduPilot has come a long way and we support a large number of boards, some of them very low cost while still being much more capable than the old APM2.x boards.

1 Like

Got a recommendation for a board to use for that maker bot?

@burninmedia,

One of the many Pixhawks tends to be the easiest to use. If possible we recommend buying from one of the ArduPilot Partners listed on our stores page because these companies contribute financially to ArduPilot.

May I suggest to have a look at eduMIP as a platform ?

Beaglebone Blue appears to be an accepted FC board. I now have ArduRover 3.4 running happily on it, quad encoders are onboard, all that’s needed is a way to talk to them …

The C++ reference implementation (rc_balance) is running just fine, so everything needed is there

Yes, I think that @OXINARF has one of these and was going to look into getting Rover running on it.

I guess if you’ve already got it running could you provide any details on what you had to do?

Yes, I do have it and unfortunately has been laying in my room floor for months. If @a944734 has implemented support for it in ArduPilot that would be great, I’m happy to review and test it!

Sorry if I raised false hopes here - I am far from having an implementation available.
My present status is

  • Ardupilot package installed, following (extraodinary well done…) instructions by imfatant
  • Debian 9.5 platform
  • Ti real-time kernel 4_4
  • Ardurover 3.4RC1 compiled binary. I have not found a 3.5 version built, not able (yet) to build my own
  • Ardurover is running fine, talking to my desktop GCS via WLAN and USB. Have R/C connection to it
    via Frsky X10S and Orange DSM satellite, can move servos

What I am still missing is

  • Beaglebone Blue compiled Ardurover 3.5 (Roller functionality only seems to be in 3.5 ?)
  • Ardurover mapping/talking to onboard (!) DC motors and quad encoders
  • Maybe board specific parameters

The eduMIP native package (with Beaglebone Blue) itself is balancing perfectly fine (rc_balance C++ reference implementation), controlled by R/C. I will put up a video of it working soon

As promised, here a short test drive of the “native” C++ implementation of rc_balance.

It’s all there - what a pity Ardurover on Beaglebone is not getting much love it appears.

1 Like

Balance Bot is now fully integrated into Rover. You can run every rover mode:

Wiki has also been updated: http://ardupilot.org/rover/docs/balance_bot-home.html.

1 Like