Giter VIP home page Giter VIP logo

Comments (5)

askuric avatar askuric commented on August 11, 2024

Hey @athix ,
Yes sure. You can replace the encoder with the imu and read the angle and angular velocity. The IMU in not integrated in the library at the moment and you'll need to use an external library for to make it work. But there should not be any big issues. There has been a few of these pendulums using the imu already, especially by rem-rc

You can see the SimpkeFOC balancer project for an implemetation of stabilisation using the IMU.

from arduino-foc-reaction-wheel-inverted-pendulum.

joshbuker avatar joshbuker commented on August 11, 2024

Ahh, excellent! Thanks for pointing me in the right direction @askuric. 😄

I actually circled back to the ArduinoFOC after seeing Rem-RC comment on a video about using it for his projects, but I wasn't sure if there was a public code example to use as a base. I'll look into combining the reaction wheel control with the balancing bot IMU input.

One other question I would have is if it's possible to use typical drone BLDC motors, or if you're limited to the gimbal type motors I've seen on most of the Arduino-FOC projects. The project that I'm envisioning would be on the more to medium-to-high power end of the scale, and the motors I've seen for most of these projects wouldn't provide enough torque I imagine. I'm guessing that this is primarily limited by the power distribution board that would sit between the arduino and the motor? I have a cheap little BLDC motor and L298N that I could use at the moment, but I couldn't find the ArduinoFOC shield on any of the usual online stores. Is that something where I would have to order the circuit-board itself, all the SMD components, and solder the parts on myself? I looked at the documentation for supported parts, but ended up getting a bit confused.

As for the IMU integration, would it be sensible to look at the source code from Adafruit and use that to implement support within the ArduinoFOC library? If so, I can focus on adding support for the BNO055 instead of doing the conversion specifically within my own code.

from arduino-foc-reaction-wheel-inverted-pendulum.

joshbuker avatar joshbuker commented on August 11, 2024

Ah, it looks like the primary benefit of the gimbal motors is that they have encoders already built in due to being designed to hold a specific angle? In that case, it may make sense for me to start with a gimbal motor for now, then move up to integrating my own BLDC motor and encoder pair when my power requirements increase?

New to engineering, so still learning about how all this stuff integrates together.

from arduino-foc-reaction-wheel-inverted-pendulum.

joshbuker avatar joshbuker commented on August 11, 2024

For those in the future, it looks like you can indeed use the L298N as the motor driver. Still searching on the gimbal motor/motor encoder however. If I find a solution I'll follow up with it here.

from arduino-foc-reaction-wheel-inverted-pendulum.

joshbuker avatar joshbuker commented on August 11, 2024
  • Gimbal motor with encoder
    • IFlight iPower GM2804H-100T GM2804 Brushless Gimbal Motor with AS5048A Encoder/Aluminum Case for camera stabilizing systems
    • AliExpress Link
  • Gimbal motor driver board (recommended by RemRC/Rem666)
    • 2 Axis BGC MOS 3.0 Large Current Brushless Gimbal Controller Board Driver Alexmos Simple Simple BGC Two-axis
    • AliExpress Link

I have yet to receive/test these, but they are what I ended up ordering if I forget to update this later after testing...

from arduino-foc-reaction-wheel-inverted-pendulum.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.