How to build self balancing cube

Поделиться
HTML-код
  • Опубликовано: 7 май 2022
  • Simple way how to build self balancing cube with reaction wheels.
    No programming knowledge required.
    You need a little skills to use ESP32 with an Arduino (or other) IDE. If you not familiar with ESP32 use Arduino nano.
    You need a little electronic and soldering skills.
    Also needed:
    ESP32 or Arduino nano controller,
    MPU6050 sensor,
    three Nidec 24H brushless motors,
    500 mAh 3S1P LiPo battery.
    Cube frame is 3D printed.
    This project is open source:
    github.com/remrc
    Last version has an updated balancing point setting procedure.
    Important! In this video you can learn how to set the balancing points:
    • Reaction wheels for be...
    3D print files
    www.thingiverse.com/remrc
  • НаукаНаука

Комментарии • 509

  • @allthumbstom4019
    @allthumbstom4019 2 года назад +23

    Thanks for sharing! A self balancing cube is now on top of my project list.

  • @ruenjou
    @ruenjou 2 года назад +14

    Great engineering project that involves mechanical, electrical and software designs. Subscribed!

  • @Henrik229
    @Henrik229 2 года назад +2

    Thank you for uploading your files! I just ordered the motors and am currently printing the parts for it.

  • @liemph
    @liemph 2 года назад +8

    Thank you for sharing the codes and the 3-D print files. Much can be learned from them.

  • @oscarjarakrause
    @oscarjarakrause Год назад +2

    ¡Excelente video! Con esta experiencia Ud. estará despertando grandes inquietudes y desafíos a las mentes jóvenes. ¡Lo felicito! 😉👌

  • @ugetridofit
    @ugetridofit 2 года назад +2

    Thank you so much for sharing the code and 3D files!!!

  • @KevinAkaSam
    @KevinAkaSam 2 года назад +1

    Thanks!! Finally :D I’ve been waiting for this since the first time I saw your videos :)

  • @seddikmekki34
    @seddikmekki34 2 года назад +2

    Amazing project and very demonstrative video! Kudos !

  • @MirkoPavleskiMK
    @MirkoPavleskiMK 2 года назад +1

    Thanks for sharing. GREAT video , I will try to make the device as soon as my parts arrive.

  • @alexeysharonov7765
    @alexeysharonov7765 2 года назад +5

    This is awesome! Thank you for sharing the code.

  • @gr82moro
    @gr82moro 2 года назад

    one of the best project I've seen !

  • @Henrik229
    @Henrik229 Год назад +1

    Just finished building mine. Thanks for sharing the files!

    • @ReMRC
      @ReMRC  Год назад

      Video?

    • @tayeki8876
      @tayeki8876 5 месяцев назад

      hey, what kind of LiPo battery you have used, whats the operating Voltage of it ?

  • @Shmark
    @Shmark 2 года назад +1

    Very nice of you! Thanks for everything!

  • @kilnen6493
    @kilnen6493 Год назад

    Thank you for this video. It helps a lot.

  • @shaunhay
    @shaunhay 2 года назад +1

    Thanks so much for sharing this. Incredible :D

  • @Schick3r
    @Schick3r 6 месяцев назад

    That's sooo cool! the greatest respect to you! thank you for sharing.

  • @mrpoulay6121
    @mrpoulay6121 Год назад

    Fantastic project, well done. The result is very satisfying to see and your video is quite clear and the steps to follow.
    I have one question regarding the motors, what made you choose the nidec 24h for this project ?

    • @ReMRC
      @ReMRC  Год назад

      BLDC motors with controller inside. This make project very simple.

  • @enTyoiable
    @enTyoiable 9 месяцев назад +2

    Awesome job! busy building one now. Is it at all possible to share the fritzing files and parts used?

  • @marcio6498
    @marcio6498 Год назад

    Excellent work.

  • @fxmoya6725
    @fxmoya6725 Год назад

    Congratulations and many thanks for sharing your project... I am waiting for nidec 24h (1 month with aliexpress). I will add an oled 1306 to show gyro & acc data. I am preparing wheels with 6mm steel balls (with respect to 70g weigth).

    • @ReMRC
      @ReMRC  Год назад

      With steel balls... Interesting. but it's harder to do than bolts and nuts.

  • @miketaussig2141
    @miketaussig2141 8 месяцев назад +6

    Hey, neat project! Thanks for making it open source. Do you have any sources available for the theory you used to model the system, or even any general equations that you used? Thanks for your time!

    • @ReMRC
      @ReMRC  8 месяцев назад

      Thanks. I didn't study any theory. I didn't calculate anything. Only some experience and tuning.

    • @miketaussig2141
      @miketaussig2141 Месяц назад

      I finally got around to building this, Im almost done with the project! I have one question, I emailed you about it. Thanks again for the cool project!

    • @jiveptaourirt4883
      @jiveptaourirt4883 11 дней назад

      Hey i'm also working on this projet for m'y final test AT school i have did you found som teorical source beacouse i have problem woth my pid i dont fond thé good

  • @jordananderson1594
    @jordananderson1594 2 года назад +1

    Great design, and nice video!

  •  2 года назад +1

    Thank you for sharing, I like it.

  • @0creepstone0
    @0creepstone0 2 года назад

    nice, i want to make one for a long time, when is the version that jumps alone?

  • @mattiasfagerlund
    @mattiasfagerlund 2 года назад +3

    Very cool! Could you make the cube spin by rotating all the reaction wheels at the same time, in the same direction? I'm thinking adding a constant rotation to all the wheels should cancel out everything except a spinning torque...

    • @ReMRC
      @ReMRC  2 года назад +1

      Like in this video? ruclips.net/video/DshWeMvtPqg/видео.html

    • @Henrik229
      @Henrik229 2 года назад +1

      @@ReMRC exactly like in the video! It would be amazing to be able to control the spin wirelessly over the web interface.

    • @ReMRC
      @ReMRC  2 года назад +1

      @@Henrik229 Yes, it would not be difficult to do so.

  • @steffen_kuellmer
    @steffen_kuellmer 2 года назад

    YOU ARE GENIOUS! Chapeau!!!

  • @asunasposibol
    @asunasposibol Год назад +2

    Thank you very much for sharing your projects!! I am half way building the cube, and It seems like my parts are a bit smaller than the ones I see on the video. Can you please tell me:Did you upload the stl files of an smaller cube? For example, the walls of the cube are 152x152 mm. Also, it seems like you put double nuts.

    • @ReMRC
      @ReMRC  Год назад

      Smaller? Why do you think? It's the same.

    • @asunasposibol
      @asunasposibol Год назад +1

      @@ReMRC You are right! My appologies!! I've seen on some of your videos that sometimes you put all the bolts and nuts, and some other you don't. How do you figure it out? Try and error? Or there is any formula to make and approximation function of the total mass?

    • @ReMRC
      @ReMRC  Год назад +1

      @@asunasposibolDifferent projects require different weights. E.g. unicycle with Nidec is heavy, so a heavier wheel was needed.

  • @franciscovalles2475
    @franciscovalles2475 2 года назад +1

    Great project indeed!!
    The motors are 12v? How do you power them? Directly with the 12v battery or with a step-up regulator? Thanks!!

    • @ReMRC
      @ReMRC  2 года назад

      You see the control board in this video. This is everything. There is no step-up regulator.

    • @Henrik229
      @Henrik229 2 года назад

      The battery is 3p1s so the nominal output voltage is 11.1v that is enough for the motors. The motors are driven by the internal esc

  • @jonno1130
    @jonno1130 Месяц назад +1

    Got mine up and balancing. Its memorizing.

  • @MonicaPerez-vg1it
    @MonicaPerez-vg1it Месяц назад

    Hello, amazing proyect!!, I wanted to ask you where did you buy the LiPo battery? I'm having trouble finding one that powers 11.1V, does it work with 3.7V?

    • @ReMRC
      @ReMRC  Месяц назад

      Of course not. Only 3 cell battery.

  • @answerth
    @answerth Год назад

    I wonder if you put a flat surface on one of the corners of the cube If you could stack them

  • @haypierre6627
    @haypierre6627 Год назад

    Heyy this is amazing !! I'd like to build a Cubli but probably in aluminum and of greater size for an artistic project.
    Is something like 45*45*45 cm conceivable?
    What would be the subtle impacts on the engineering side?
    I'd like to build the frame in allu to engrave / paint it :)))

    • @ReMRC
      @ReMRC  Год назад

      Of course it can be 45*45*45 cm. But need other motors...

  • @franciscopastorini4008
    @franciscopastorini4008 Год назад +1

    Amazing! Best self-balancing cube I've seen! Could you please give me some reference on where can I Learn more about the method you used for the control method and your tilt estimator algorithm?

    • @ReMRC
      @ReMRC  Год назад

      I learned by doing a lot of stuff like that...

    • @franciscopastorini4008
      @franciscopastorini4008 Год назад

      @@ReMRC That is awesome indeed! Could you give me some explanation on how you estimate the tilt with only one IMU?

    • @ReMRC
      @ReMRC  Год назад

      @@franciscopastorini4008 One is not enough? Of course, can be done better. But this is simple way.

    • @franciscopastorini4008
      @franciscopastorini4008 Год назад

      @@ReMRC Yeah It is clearly enough because your cube works awesome with only one IMU! I'm just trying to understand how it works a little bit, I'm pretty new to this kind of project😵‍💫.
      Sorry if I'm being annoying😅 but I was taking a look at your code and This caught my attention, robot_angleX += GyZ * loop_time / 1000 / 65.536; Where does that 65,536 come from?

    • @ReMRC
      @ReMRC  Год назад

      @@franciscopastorini4008 You need to read about reading data from MPU6050 (raw data).

  • @ivanliu1909
    @ivanliu1909 Год назад

    Great project! I am think about modify the cube to a smaller dimension, hence the cube weight and position of the sensor will change. Which part of the code will I need to modify? Thank you very much!

    • @ReMRC
      @ReMRC  Год назад

      This is a bad idea. Everything should be changed.

  • @ayety0511
    @ayety0511 Год назад

    Great project and in the process of making one myself! The video and github never mentioned about adding a Bluetooth module when using a arduino Nano, how would I have to connect the Bluetooth module if according exactly to the schematics given in Github and would I have to make any changes to the code if I did? I tried searching if you mentioned it in any of your videos or comments but I couldn't find a answer, sorry if I am asking a repeated question.

    • @ReMRC
      @ReMRC  Год назад

      Ask google "how to connect bluetooth module to arduino" and you get many answers. Not need to change the code.

  • @dhruvagarwal4426
    @dhruvagarwal4426 2 года назад +5

    Hey mate really great work do you mind showing the wiring diagram a bit more detailed if that’s possible

  • @tayeki8876
    @tayeki8876 4 месяца назад

    Hey great Project ! building one myself currently, which length does the M4 Bolts for the reaction wheel have ? Ist 20mm good ?

    • @ReMRC
      @ReMRC  4 месяца назад +1

      I use 8mm. Look carefully at the blue cube. ruclips.net/video/AJQZFHJzwt4/видео.html
      Flat head bolts. Others will not fit.

  • @coolranchluke
    @coolranchluke Год назад

    Awesome project! It's there any way to reduce those oscillations when the cube is balancing?

    • @ReMRC
      @ReMRC  Год назад

      Always possible to do better. But here is a simple way.

  • @marcocalmetti8964
    @marcocalmetti8964 4 месяца назад

    Fantastic project I'm trying to realize it! One question, how many mm are the M4 screws in the reaction wheels?

    • @ReMRC
      @ReMRC  4 месяца назад +1

      I use 8mm. But you can also use longer ones (12-16 mm). Flat head bolts. Others will not fit.

  • @hlking9039
    @hlking9039 2 года назад

    Thanks for sharing, this is a great project!I don't know if you have time to share the model of the circuit connection or electrical components

    • @ReMRC
      @ReMRC  2 года назад +1

      I would like to share, but the circuit connection is only in my brain. :) I'm a little surprised that this is needed, because where is connected ESP32 pins you can see in the source.

    • @ReMRC
      @ReMRC  2 года назад +1

      I add schematic to github.

  • @tayeki8876
    @tayeki8876 4 месяца назад

    Hey, I really like your project, want to build myself, which screws and nuts have you used ?

    • @ReMRC
      @ReMRC  4 месяца назад +1

      M4 for reaction wheels.

  • @javid211
    @javid211 2 года назад

    Great project! Can you post a wiring diagram when you get a chance? It would be really helpful

    • @ReMRC
      @ReMRC  2 года назад +2

      I add schematic to github.

  • @g8sdp11
    @g8sdp11 2 года назад +1

    Hi, thank you for sharing such an impressive project!
    Can you please provide us with links to trusted (legitimate) online retailers where we can buy the necessary component (e.g. motors, battery, sensor, etc..)?
    Thank you in advance!

    • @ReMRC
      @ReMRC  2 года назад +1

      Trusted? No, I don't have any.

  • @Nick-wl4qr
    @Nick-wl4qr Год назад

    I saw you added a new schematic to github for using an arduino. Does this have any advantages over using an esp32? I also noticed you didn't include any of the red wires in this new schematic. Are those not needed? What were those actually for in the original schematic. Thanks!

    • @ReMRC
      @ReMRC  Год назад

      Both work the same. About red wires are written on GitHub.

  • @tinalina1808
    @tinalina1808 2 года назад +1

    What a brilliant project. I would like to rebuild this cube. But I'm missing the specification of the transistor Q1 (in the video min. 4:56)
    Have I overlooked something?
    Many thanks for the help!

    • @ReMRC
      @ReMRC  2 года назад +2

      Lots of confusion with that transistor. :) In video I say "transistor and two resistors". In schematic - one resistor. This is because I use mosfet. You can use PN2222 or something similar (n-p-n).

    • @tinalina1808
      @tinalina1808 2 года назад

      @@ReMRC Thank you for the fast answer. I have ordered the first parts and I hope that I will be able to realize this amazing project.

    • @tinalina1808
      @tinalina1808 Год назад +1

      Check! Last weekend I managed to balance the cube.
      Many thanks for the great instructions and the great support you provide here! - like more of it :-)

    • @Nick-wl4qr
      @Nick-wl4qr Год назад

      @@tinalina1808 any special tips not mentioned elsewhere?

  • @tayeki8876
    @tayeki8876 3 месяца назад

    Hey really Great Project !! i am currently building one myself, my question: in the schematics of the ESP32 Version you used a 35V 100nF Ceramic capacitor, but in the Arduino Nano Version you used a 16 V 100nF one, could i use the 35V from the ESP32 Version in place of the 16V one in the Arduino Nano version? or would it create any problems ?
    best regards :)

    • @ReMRC
      @ReMRC  3 месяца назад

      Of course 16V is enough.

  • @rave5636
    @rave5636 Год назад

    Thanks for sharing - Question: in the wiring there is a transistor Q1 - which Type is used here ?

    • @ReMRC
      @ReMRC  Год назад

      You can use PN2222.

  • @alexeysharonov7765
    @alexeysharonov7765 2 года назад +3

    Thanks!

  • @franvaz2318
    @franvaz2318 9 месяцев назад

    Hey great project!! I was wondering if u could recommend some alternative motors incase these aren't available

    • @ReMRC
      @ReMRC  9 месяцев назад

      it available on aliexpress and ebay.

    • @franvaz2318
      @franvaz2318 9 месяцев назад

      @@ReMRC I'm from India so it's a tad bit difficult for me to acquire them here

  • @Nick-wl4qr
    @Nick-wl4qr Год назад

    This was fun to do. I'm thinking of customizing my cube. Two questions:
    How much weight would you say is too much weight for the whole cube? Does the pointiness of the corner play a role, would a rounded corner be fine?

    • @ReMRC
      @ReMRC  Год назад

      The higher weight, the worse. The corners can be rounded, it won't make a difference.

    • @vitrola_exe
      @vitrola_exe Год назад

      @Nick did you manage to solve the problem with the motors running at full speed?

    • @ReMRC
      @ReMRC  Год назад

      @@vitrola_exe :) There is no such problem. You probably didn't watch the videos carefully (both).

  • @basiltsakalos
    @basiltsakalos Год назад

    Excellent build REMRC. What length are the screws you use to add weight to the wheels?

    • @ReMRC
      @ReMRC  Год назад

      You can use 8, 10, 12 mm. All are suitable. In this video is 8 mm.

    • @basiltsakalos
      @basiltsakalos Год назад

      @@ReMRC Thank you so much for the prompt reply. And the great project.

    • @Nick-wl4qr
      @Nick-wl4qr Год назад

      @@basiltsakalos What length of M3 did you use?

  • @Joulespersecond
    @Joulespersecond Год назад

    I'm designing a PCB for this, and I was wondering about the transistor you have in the schematic. Which leg is the collector? Is it the one connected to the buzzer or the resistor? Great stuff by the way!

    • @ReMRC
      @ReMRC  Год назад

      Collector to buzzer. If you use PN2222.

    • @mrpoulay6121
      @mrpoulay6121 Год назад

      Hi Mark,
      Did you finish the PCB at the end? And if yes, would you be willing to share it ? :)

    • @tayeki8876
      @tayeki8876 5 месяцев назад

      Hey, have you finished the PCB for this project ? would like to buy it if possible, this would really help me as i am a student

  • @MrDonrecardo
    @MrDonrecardo Год назад

    Hi Remi , what transistor did you use to switch the buzzer on and off , One is shown in the schematic but no details as to what is suitable

    • @ReMRC
      @ReMRC  Год назад

      You can use PN2222.

  • @tayeki8876
    @tayeki8876 5 месяцев назад +1

    hey Great Project ! i currently working on my own and wanted to ask you if you could provide the specific Model Numbers for the Nidec 24H Motors, as there are a few models, also for the LiPo, which Operating Voltage does it have ?
    Best regards

    • @ReMRC
      @ReMRC  5 месяцев назад +1

      LiPo 11,1V, Nidec 24H404H160.

    • @tayeki8876
      @tayeki8876 4 месяца назад

      @@ReMRC thanks for the quick response ! i bought a similar modell of the Nidec 24H, should hopefully still work, is there any important limitations / details for choosing the right LiPo (except the votage), for example the weight or dimensions?

    • @ReMRC
      @ReMRC  4 месяца назад

      @@tayeki8876 Small battery - 450-500 mAh.

  • @hlking9039
    @hlking9039 2 года назад

    What do you mean in the video is that the 12.6V voltage is divided into 3V proportionally through the resistor, because of the limitation of the port measurement voltage, and then converted to the actual voltage through the code?

    • @ReMRC
      @ReMRC  2 года назад

      No, I am measuring the battery voltage for over discharge protect. This requires a simple divider of two resistors.

  • @nuwave5749
    @nuwave5749 Год назад

    ReM-RC Love this video. I 3D printed parts, wired everything up with an Arduino Nano but I seem to be tripped up on the calibration set points, no motor spin and all my angles are wrong when sending the C+/- commands? Pretty sure it is something simple, any pointers? Thanks!

    • @ReMRC
      @ReMRC  Год назад

      Email me what angles prints when you send c-. You can find the email on RUclips "About".

    • @nuwave5749
      @nuwave5749 Год назад

      @@ReMRC Thank you for such a quick response, email sent.

  • @LeventeDaradici
    @LeventeDaradici 2 года назад

    Big like ! Respect !

  • @MrDonrecardo
    @MrDonrecardo Год назад

    In what way would it affect the performance if the reaction wheels weigh more or less than the 70g . I assumed a heavier wheel would have more inertia and control the cube easier

    • @ReMRC
      @ReMRC  Год назад

      More inertia, but also more total weight to control (cube weight).

  • @FranciscoValles-bp5ub
    @FranciscoValles-bp5ub Год назад

    Dear ReM-RC, looking at your code I got the following question, what are these specific offsets for?
    float offsetx= -0.99, offsetY = -3.43
    float offsetx2= -31.24, offsetY2 = -19.05
    float offsetx3= 30.4, offsetY3 = -19.21
    float offsetx4= 0.17, offsetY4 = 35.9

    • @ReMRC
      @ReMRC  Год назад

      Didn't you watch the video? There is about it.

  • @Nick-sv3yf
    @Nick-sv3yf Год назад

    Is it correct that you have the encoder +ve connection to 3.3v ? The datasheet for the motors says 5v.
    (I know you aren't actually using the encoders but I wanted to wire it up properly just in case you decide to use them)

    • @ReMRC
      @ReMRC  Год назад

      A very fair question. I tried it - the encoders work perfectly from 3.3V. I use them in other projects. e.g. here ruclips.net/video/AV_gpJPhp-s/видео.html

  • @vitrola_exe
    @vitrola_exe Год назад

    In the esp32 schematic, Q1 would be PN2222 or 2N2222?
    With the 2N2222 transistor is Emitter > GND, Collector > Buzzer, Base > 6.8K resistor?
    And in the case of the PN2222 it is Emitter > Buzzer, Collector > 6.8K resistor, Base > GND?

    • @ReMRC
      @ReMRC  Год назад

      Strange problems with this transistor... startingelectronics.org/tutorials/arduino/modules/active-buzzer/arduino-active-buzzer-circuit.png

  • @alexl6188
    @alexl6188 Год назад

    If I use different material (which means different weight) to build the cube, which part of code I need to adjust? Or the material doesn’t matter? Thanks for making this video and make the project open source!

    • @OSNX
      @OSNX Год назад +1

      Material shouldn't matter as long as wheels are same 70 g and motors are the same. That's how I understand but I can be wrong

    • @alexl6188
      @alexl6188 Год назад

      @@OSNX Thanks! I'd like to ask that in "functions.ino", line91, robot_angleX += GyZ * loop_time / 1000 / 65.536, why using the figure 65.536?

    • @ReMRC
      @ReMRC  Год назад +1

      The total weight of the cube matters also.

    • @alexl6188
      @alexl6188 Год назад +1

      @@ReMRC Got it. I am wondering that how I can modify the code.🥲Thanks!

  • @evgenaverjek
    @evgenaverjek 2 года назад

    I printed all the parts, how do I arrange the nuts, is there any balancing tactic?
    thanks for the project!

    • @ReMRC
      @ReMRC  2 года назад +2

      Bolts and nuts you can arrange as you prefer. Only symmetric important...

  • @user-jj7sv5zd1v
    @user-jj7sv5zd1v 2 года назад

    How much V does the LiPo have? 11,1V? 14,8V?
    And what voltage do you measure that you have to input into the source. The voltage of the battery in its full state?
    And the 5V regulator: Is 800mAh output enough?

    • @ReMRC
      @ReMRC  2 года назад

      3S LiPo. I measure battery voltage. When voltage drops to 9.5V buzzer beeps. 5V 800mAh enough. Need much less.

  • @eduardofurtado9880
    @eduardofurtado9880 Год назад

    good night my friend, beautiful project, but a question: would you sell it complete? I'm having trouble finding some components

    • @ReMRC
      @ReMRC  Год назад

      I don't sell them... And components are often used. What can't be found?

    • @atmankikani9184
      @atmankikani9184 11 месяцев назад

      ​@@ReMRCcant get the NIDEC 24H motors

  • @ugetridofit
    @ugetridofit 2 года назад

    I didn't see mention what the voltage the motors are powered from. Are they getting power from the battery or the 5v regulator?

    • @ReMRC
      @ReMRC  2 года назад

      Of course, power from the battery.

  • @mrchenhuan
    @mrchenhuan Год назад

    Great project! Can you please let me the size of prototyping PCB? 50x70mm?

    • @ReMRC
      @ReMRC  Год назад +1

      Yes, 50x70mm.

  • @pedrofigueiredo1936
    @pedrofigueiredo1936 8 месяцев назад

    Hey buddy, I’ve decided to build this project but I’m not exactly sure where is the best place to find those motors at least in Europe. Know of any alternative product to replacement?

    • @ReMRC
      @ReMRC  8 месяцев назад

      I don't know where to get it in Europe. But I see no problem buying on ebay or aliexpress. There are no alternatives for such motors.

  • @wayneo559
    @wayneo559 2 года назад

    hi great project just ordering parts and slicing parts for printing, have any shematics for the wiring of the breadboard shown in video, many thanks

    • @ReMRC
      @ReMRC  2 года назад +1

      I don't have any schematic. It's really simple. Where is connected ESP32 pins you can see in the source. But I get a lot of questions about schematic, maybe I need draw it...

    • @wayneo559
      @wayneo559 2 года назад

      @@ReMRC thanks for the shematic, great work last question what value is "Q1" on the shematic its connected to Buz1 and R4. thanks

    • @ReMRC
      @ReMRC  2 года назад +1

      @@wayneo559PN2222 or something similar. N-P-N transistor.

  • @mark1944
    @mark1944 4 месяца назад

    Got these 12pin motors working. I have discovered that the start/stop pin needs 12v or they remain off. It all looks good now but the motors are turning in the wrong direction. Can that easily be changed in the code? If so could you help me with where cheers

    • @ReMRC
      @ReMRC  4 месяца назад

      The seller describes these motors in a strange way. PWM from 16000 to 26000 Hz, but he contradicts himself:
      1000 HZ 150 rpm, 10000 HZ 1500 rpm, 12,000 HZ 1,800 rpm...
      It seems to me that he himself does not know. :)

  • @FreeFallin20383
    @FreeFallin20383 3 месяца назад

    For a beginner, how difficult would it be to develop the control loops? I have a background with some control experience but not mechatronics.

    • @ReMRC
      @ReMRC  3 месяца назад

      It is impossible to answer difficult or not... It's different for everyone.

  • @ravenin9612
    @ravenin9612 Год назад

    What alternative of Nidec 24h can be used to run it perfectly?

    • @ReMRC
      @ReMRC  Год назад

      In this design only Nidec 24H.

  • @miguelsampaio6199
    @miguelsampaio6199 29 дней назад

    Like your videos and the cube is top. Wath are the dimensions of the square ?

    • @ReMRC
      @ReMRC  28 дней назад

      15x15x15 cm

  • @claycrews6278
    @claycrews6278 2 месяца назад

    I am attempting to get the offset values in each position as show in the video, but my X and Y angle is -45, 45. Maybe my MPU is not functioning correctly. Any ideas on how to solve this?

    • @ReMRC
      @ReMRC  2 месяца назад +1

      You should try any example of reading MPU6050 data with ESP32. Once the data is successfully retrieved, it will work with the cube as well.
      This is not a problem with my program.

  • @tmln4357
    @tmln4357 Месяц назад

    love your project im building it currently and there is a problem with the buzzer it keeps on buzzing for some reason can you help me on this

    • @ReMRC
      @ReMRC  Месяц назад

      If you use PN2222, check the connection. startingelectronics.org/tutorials/arduino/modules/active-buzzer/arduino-active-buzzer-circuit.png

  • @user-lg3yv2tr2y
    @user-lg3yv2tr2y 2 года назад

    Hi. tell me in what order to connect: DIR*, PWM*, PWM*_CH and "start/stop", "forward and revers", "signal speed regulation"? Вo we need a signal from encoder "A" or "B"?

    • @ReMRC
      @ReMRC  2 года назад +1

      I added a schematic to github.

  • @felipechaulet4697
    @felipechaulet4697 Год назад

    Would you mind sharing the brand of the battery you used? I can find a lot of similar batteries, but they appear to be much bigger than the one you use and I am afraid they won't fit the slot.
    I am also not able to find the Nidec motors anywhere. Is there a known alternative for them?

    • @ReMRC
      @ReMRC  Год назад

      Bigger? No... 500mAh 3S1P LiPo. TURNIGY, Gens ACE, and many others. Nidec motors you can buy on ebay, aliexpess.

    • @felipechaulet4697
      @felipechaulet4697 Год назад

      @@ReMRC yeah, I was avoiding buying the motors on Aliexpress because the shipping costs are higher than the price of the motors. Anyway, I could find everything there. Thanks.

    • @atmankikani9184
      @atmankikani9184 11 месяцев назад

      ​@@ReMRC are there any key words we can search as alternatives to the nidec motors since ebay and ali express are not viable options in my region

  • @conetablebe
    @conetablebe Год назад +1

    hello, great project, I plan to make the version with the esp32. I wanted a precision concerning the transistor pn2222, on your plan github esp32 concerning Q1pn2222 B=? C=? E=? because the wiring of Q1 for the arduino version indicates E=gnd C=Bz1 B= R4. so I have a doubt for the Q1 esp32 version. thank you and nice job

    • @ReMRC
      @ReMRC  Год назад

      Yes, for PN2222: E=GND, C=Bz1, B=R4. I use different transistor...

    • @conetablebe
      @conetablebe Год назад

      @@ReMRC thank you

    • @conetablebe
      @conetablebe 10 месяцев назад

      hello, I just finished mine with an esp32 with a pcb, different stl for gluing and different and much cheaper nidec. I have to paint the chassis, I'll post a video in two or three days.

    • @ReMRC
      @ReMRC  10 месяцев назад

      @@conetablebe Cheaper nidec? I'm waiting for the video.

  • @jacksonbf
    @jacksonbf Год назад

    What size screws are the motor and circuit board mounts? Thanks.

    • @ReMRC
      @ReMRC  Год назад +1

      Motor M3x6mm, circuit board M2x10mm.

  • @edyharari6565
    @edyharari6565 Месяц назад

    does any code need to be added to connect the arduino nano via bluetooth using the HC-05 attachment?

    • @ReMRC
      @ReMRC  Месяц назад +1

      No, the same data as via USB.

  • @7423Sin
    @7423Sin Год назад

    Hi I am collecting all the parts to start building! already printing the parts. However. I see in your video that you are using a transistor and two resistors for the buzzer but they are not in the electrical drawing that you made. also i see a small led that is not documented.
    What are the specifications of the two resistors and transistors and how do they fit in the electrical diagram?
    Is the transistor underneath the buzzer the mosfet? I ordered a PN2222 transistor.

    • @ReMRC
      @ReMRC  Год назад

      In video I am talking about a buzzer transistor. Yes, I use mosfet (why - long explanation). You can use PN2222. It is in the schematic. A small led only shows the connected battery.

    • @7423Sin
      @7423Sin Год назад

      @@ReMRC Thank you for the swift response! and the two extra resistors? there are 5 in de video. three in the schematic.

    • @ReMRC
      @ReMRC  Год назад +1

      @@7423Sin Follow the schematic. I did a little differently.

    • @7423Sin
      @7423Sin Год назад

      @@ReMRC check! Started the build. Thank you for the response 👍 will post on thingiverse once it's completed

  • @jeromewong9945
    @jeromewong9945 Год назад +1

    @ReM-RC is it possible to get the arduino to have an output to light up an led upon it balancing ? if so which part should I add my if conditional

    • @ReMRC
      @ReMRC  Год назад

      Of course this is easy. But I don't have a cube with an Arduino nano right now, so I can't do that.

    • @jeromewong9945
      @jeromewong9945 Год назад

      @@ReMRC hi rem its been a while, i working on the cube again i didnt do the light anymore, my cube(s) work great. so happy i made another, but i wanted to 3d print a shell to hide the electronics, now the whole thing is too heavy and it keep falling after 3 seconds. are there ways to get around this issue? thanks in advance and looking forward to your next balancing video haha

    • @ReMRC
      @ReMRC  Год назад

      @@jeromewong9945 Heavy? Photo? Video?

    • @jeromewong9945
      @jeromewong9945 Год назад

      @@ReMRC can I email you the photos instead

    • @ReMRC
      @ReMRC  Год назад

      @@jeromewong9945 You can find the email on RUclips "About".

  • @Henrik229
    @Henrik229 2 года назад +1

    Danke!

  • @Joulespersecond
    @Joulespersecond Год назад

    Hi there! I've got this setup but after uploading the code, connecting the battery and connecting via bluetooth I am unable to open the Serial Monitor because it says the Port is busy. Any idea why this might be happening?

    • @ReMRC
      @ReMRC  Год назад

      Port busy - this is a PC problem. Maybe you are trying to use the wrong port.

  • @TylerDurdon1986
    @TylerDurdon1986 Год назад

    Printing it right now. Is there a possibility to Code it that it can stand up by itself like Cubli? Would be amazing!!! 🤩

    • @ReMRC
      @ReMRC  Год назад +2

      No, this is simple way, how to build self balancing cube. Cubli is much more complicated. One of its motors costs more than all the parts of this cube. :) Not just the code difference.

    • @TylerDurdon1986
      @TylerDurdon1986 Год назад +1

      @@ReMRC Thx for the answer. Parts are ordered, Printing parts are awesome. Hope assembly isn`t so hard. Wish me luck ;)

  • @Darknynja2
    @Darknynja2 Год назад

    I love the content I just hate reading so much. I’m a better listener than I am a reader. Haha.

  • @ochimanamustapha9683
    @ochimanamustapha9683 Год назад

    Please can you provide the link to where you purchased the motors?

    • @ReMRC
      @ReMRC  Год назад +1

      I've been looking now - there are a lot of these motors on ebay.

  • @user-vr5wy2gc3m
    @user-vr5wy2gc3m Год назад

    We are using the initial commit code (2022.5.8) of the GitHub page to use the code and tuning method of this RUclips video.
    However, there is a problem with the motor in balancing.
    During the motor tester, it was confirmed that it was moving well according to the code, but during balancing, the motor repeatedly spins and stops too fast at full speed.
    So here's what I'm curious about.
    1. Whether this problem can occur depending on the value of x in the batVoltage(double) analogRead(VBAT)/x) code.
    2. We are using a battery of 11.1V 1000mAh and how does this affect the behavior?
    3. The offset value measured like a video on RUclips.
    float offsetX = -1.12, offsetY = -3.86;
    float offsetX2 = -0.34, offsetY2 = -47.55;
    float offsetX3 = -33.24, offsetY3 = 19.33;
    float offsetX4 = 32.86, offsetY4 = 4.12;
    Thank you.

    • @ReMRC
      @ReMRC  Год назад

      Try watching ruclips.net/video/Nkm9PoihZOI/видео.html If it doesn't work, message me again.

  • @chriscurios
    @chriscurios 10 месяцев назад

    Is it possible to cut the frame out of aluminum or would that throw off the balance?

    • @ReMRC
      @ReMRC  10 месяцев назад

      Maybe yes. But I don't know how much heavier aluminum would be.

  • @user-fy9ry1qe3w
    @user-fy9ry1qe3w 2 года назад

    This is a great job, I have a small question, is it possible to apply this code to another microcontroller, arduino nano?

    • @ReMRC
      @ReMRC  2 года назад

      No. But for two axis balancing I use an Arduino, it’s simpler.

    • @user-fy9ry1qe3w
      @user-fy9ry1qe3w 2 года назад

      @@ReMRC As I understand it, it's all because of the PWM signal, since the Arduino does not have enough ports?

    • @user-fy9ry1qe3w
      @user-fy9ry1qe3w 2 года назад

      Can you recommend books or a manual to better understand how to program a microcontroller and sensors?)

    • @ReMRC
      @ReMRC  2 года назад

      @@user-fy9ry1qe3w No, this video is about self balancing cube, but not about programming learning. Sorry.

    • @user-fy9ry1qe3w
      @user-fy9ry1qe3w 2 года назад

      @@ReMRC thankyou

  • @melvins8876
    @melvins8876 2 года назад

    started ordering parts tonight!! 1 thing.. what size bolts and screw wire used ? don't you have a Patreon?!

    • @ReMRC
      @ReMRC  2 года назад +1

      4mm bolts on reaction wheels. Motor mounts - 3mm. I don't have a Patreon. But if you want to thank you can click "Super thanks" after the video.

    • @7423Sin
      @7423Sin Год назад

      @@ReMRC 4mm wide or long? wat size? M4x4? M4x3? M5x12?

    • @ReMRC
      @ReMRC  Год назад +1

      @@7423Sin M4x10 or M4x12

    • @7423Sin
      @7423Sin Год назад

      @@ReMRC perfect! Thanks buddy 👍

  • @jakobkatrasnik8684
    @jakobkatrasnik8684 Год назад

    I am using a different ESP32 board so the pins are slightly different. I got motors to spin in both directions just fine. I can't understand the connection of 7 and 8 pins on a motor. Can you please help with what are they used for?

    • @ReMRC
      @ReMRC  Год назад

      7 is GND and 8 is power supply. Are you talking about the other side where the encoder is? If it's about the encoder, you don't need to connect it.

    • @jakobkatrasnik8684
      @jakobkatrasnik8684 Год назад

      @@ReMRC Oh thanks, yes I meant encoder side

  • @heinzschenk3199
    @heinzschenk3199 11 месяцев назад

    Great Idea. What is the weight of your Cube?

    • @ReMRC
      @ReMRC  11 месяцев назад +1

      930 g.

  • @scooterboom4157
    @scooterboom4157 Год назад

    so COOL!

  • @vitrola_exe
    @vitrola_exe Год назад

    I tested the motors with the "motors_test" programming and everything went ok. Each motor rotating clockwise and counterclockwise.
    With the other programming I calibrated the points normally. When I place it on one of the edges, the motor referring to the edge starts to rotate at maximum speed. And at the vertex the three motors run at maximum turning on the beep. Do you know what it could be? Perhaps the value of k1?

    • @ReMRC
      @ReMRC  Год назад

      Did you watch the second video?

    • @vitrola_exe
      @vitrola_exe Год назад

      @@ReMRC Yes, I watched it, I'm finding it strange that the 3 motors rotate only in one direction with maximum speed.

    • @ReMRC
      @ReMRC  Год назад

      @@vitrola_exe No, you are doing something wrong. You can send me a video, maybe I can help.

  • @jonno1130
    @jonno1130 Месяц назад

    Hello ive just finished my build. Innthe programming angles. The file i downloaded from github dosent match the file on your video, am i supposed to program the 4 angles using the c+ method im using the esp board. Thank you.

    • @ReMRC
      @ReMRC  Месяц назад

      Yes, there is a second video mentioned in the description.

    • @jonno1130
      @jonno1130 Месяц назад

      @ReMRC cheers mate. Used that method and all good. Just got to find out why the motors aren't spinning.

  • @MrDonrecardo
    @MrDonrecardo Год назад

    one more question , is the transistor connected Emitter > GND , Collector > Buzzer , Base > 6.8K Resistor ?

    • @ReMRC
      @ReMRC  Год назад +1

      Yes, correct.

    • @MrDonrecardo
      @MrDonrecardo Год назад

      @@ReMRC Thank you , I will start building now

  • @Jose-nf4zd
    @Jose-nf4zd Год назад

    incredible

  • @Naixel1
    @Naixel1 10 дней назад

    Hi, could you tell me the amount and size of every screw you used? Thanks.

    • @Naixel1
      @Naixel1 9 дней назад

      Or, atleast the sizes...

  • @MrGodfather6
    @MrGodfather6 4 месяца назад

    Is there any specifications on the transistors you used?

    • @ReMRC
      @ReMRC  4 месяца назад

      One of the possible options PN2222