Enhance Your Projects with Bottango: Using Servo Control with Arduino Mega & PCA9685 Servo Driver

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 42

  • @Bottango
    @Bottango 6 місяців тому +7

    Bottango Developer here, great video and great job! Awesome to see you make such great tutorials and content with Bottango!
    A few tips, if you don't mind my throwing out there:
    1)While animating, you can add tracks manually, and add keyframes using the add keyframe button. But also, just select a joint in the animate view, even if you haven't added a track for that joint yet, and start moving it. It'll add the track for you automatically, as well as add and modify the keyframe based on where you rotate the joint. You can keep adding and modifying keyframes that way, by moving the joint in the 3d scene where you want it, and the keyframes will get added / changed.
    2) At 17:45, you're trying to use only a portion of the servo's range of motion, but you changed the visual of the simulation of the servo in the 3d scene, not the pwm that's sent out. To send a smaller amount of range of motion signal to the real world servo, modify the PWM values at the bottom center of the screen with a servo selected.
    3) At 23:45, you're referencing the default driver. That's the Mega you're connected to, not the animations in your animation view. You can have multiple Arduinos all connected to Bottango at once, and assign different motors to different Arduinos. So default driver is the first Arduino set up by default in the project, but you can add more. The Default animation is just the first animation in the project. The two aren't connected.
    Great stuff, and keep up the good work!

    • @BMonsterLaboratory
      @BMonsterLaboratory  6 місяців тому +1

      Awesome stuff. I appreciate your comments and will remember this going forward. Great job on the software!

    • @wardogdauwdd3020
      @wardogdauwdd3020 2 місяці тому

      Can you also use the micro maestro servo controller?

  • @SummersideDiver
    @SummersideDiver 4 місяці тому +1

    Thank you for making this video. I was curious about Bottango and if it would create animations for our own projects. So happy it does!

    • @BMonsterLaboratory
      @BMonsterLaboratory  4 місяці тому +1

      hey there! I really like the software. It has a user-friendly interface, clear navigation, and logical workflow which makes this a great option for a lot of the 3d printing world. Thanks for leaving a comment and good luck making your animated projects! 👍💪

    • @SummersideDiver
      @SummersideDiver 4 місяці тому +1

      @@BMonsterLaboratoryyour tutorial was very helpful. And I rewatched several portions while working through my first project.
      Here’s a link to those, if you’re interested. ua-cam.com/play/PLzQgsed_IwhiD1LH09ofZVkr5hAdAkEkF.html&si=BS2BH7Hu5kixu1Ie

    • @BMonsterLaboratory
      @BMonsterLaboratory  4 місяці тому

      @@SummersideDiver that's great! Did you post your animation anywhere online? I'm back to finishing mine up this weekend

  • @mariemeyer2885
    @mariemeyer2885 2 місяці тому +1

    You mentioned the code is on the facebook page under comments but there are no comments for this project listed there. Somewhere else may be?

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 місяці тому

      I apologize for that. posting the code to Facebook proved to be difficult with this project. the Bottango code is a multi file program. When you export the Bottango code you move those files to the BottangoArduinoDriver file. There is a readme file that is exported along with code, it's very helpful.
      You will want to download Bottango_Win_0_6_5 zip file from the website and transfer your exported animations to this file. I'm happy to email my files to you if you would like.

  • @jurrasicbrick3256
    @jurrasicbrick3256 6 місяців тому +1

    Bro, your video is very good👍. I don't know if you can make a tutorial on how to control a pap motor.

    • @BMonsterLaboratory
      @BMonsterLaboratory  6 місяців тому

      hey, thanks! Do you have a specific motor and controller in mind?

    • @jurrasicbrick3256
      @jurrasicbrick3256 6 місяців тому

      @@BMonsterLaboratory I think a basic or economical pap motor controller

  • @pablotrujillo2394
    @pablotrujillo2394 3 місяці тому +1

    hi nice tutorial can u explain how u controller the neopixel ring in the eye I know u put a custom event but I need to make some modification to the code. and another questions u try to play without the pc but trigger the animation with some kind of motion sensor or push button. Thanks

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 місяці тому

      Hey there!
      I went simple with the LED ring. You can put your own LED code in the Arduino sketch but this WS2812B LED ring comes with a mini RGB controller, and that is what I use. I can control blink speed, color, and pattern by pressing 3 buttons. All I do for the LED ring is provide 5v power...It's the easiest way.
      I am posting one more video with this pit droid head motion this weekend. It will have a basic HC-SR501 motion sensor to to activate motion. I will be including the code I added to he exported sketch and a number of diagrams in case someone else wants to do the same thing.
      If you would rather have a bush button, that's doable too. The goal is to post the video Saturday morning ....10 or 11 am EST.

    • @pablotrujillo2394
      @pablotrujillo2394 3 місяці тому +1

      @@BMonsterLaboratory thanks I wait until Saturday to follow your tutorials.

  • @menukagamage5073
    @menukagamage5073 4 місяці тому +1

    Thank you so much for this video … is there any way u can trigger 3 different file with 3 buttons?

    • @BMonsterLaboratory
      @BMonsterLaboratory  4 місяці тому

      hey there! Would each file go through a different animation ? For example, button 1 would make it talk and look up, button 2 would make his light blink, and button 3 would make it look around while talking and flashing lights.
      Am I on the right track here? You can do that...or should be able to do that. Can you explain a bit about what you want to achieve?
      thanks for the comment and good luck with your animations! 👍💪

    • @menukagamage5073
      @menukagamage5073 4 місяці тому +1

      I have 3 different motion profile (2 servos and 5 on/off events ) I would like to assign 3 buttons for each motions .. hope u get it and thanks for quick replay

    • @BMonsterLaboratory
      @BMonsterLaboratory  4 місяці тому

      I haven't done anything like that yet. It sounds doable though.

    • @menukagamage5073
      @menukagamage5073 4 місяці тому

      I appreciate your reply.. can I least connect one switch to play one motion profile

  • @Sammyrobotics-bv1x
    @Sammyrobotics-bv1x 2 місяці тому +1

    What computer do you use just wondering

  • @Sammyrobotics-bv1x
    @Sammyrobotics-bv1x 3 місяці тому +1

    Every time I try to export code to Arduino it doesn’t let me I’ve been stuck on that part. Can you help me? I tried to refresh it every time I try to open the file that you told me it doesn’t go Arduino software export the code

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 місяці тому

      interesting. do you get any error messages? Where is the exact point of failure? I can make a UA-cam short on how I do it...if that helps.

    • @Sammyrobotics-bv1x
      @Sammyrobotics-bv1x 3 місяці тому +1

      It doesn’t say any error messages I just don’t let me export it from bottango to Arduino

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 місяці тому

      @@Sammyrobotics-bv1x Hmm... I'm not sure what the problem could be. In the animate tab on the left, look right and click export to code under the animations. From there you just follow the prompts and select a folder. I'll keep playing around with it but I haven't seen a problem so far.

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 місяці тому

      I was able to open a brand new project and go straight to export. It says I have no motors or effectors in selected animation clips. make sure project is saved and try again. If it doesn't work, remove and reinstall Bottango....

  • @jakubmalicki4643
    @jakubmalicki4643 5 місяців тому +1

    what pins on arduino uno i need to use? (i dont have mega)

    • @BMonsterLaboratory
      @BMonsterLaboratory  5 місяців тому

      HI, The SCL and SDA pins are on the digital pin side next to the AREF pin. You can see it in the diagram on the Arduino site docs.arduino.cc/retired/boards/arduino-uno-rev3-with-long-pins/ If you have the Minima, the pins are in the same position. You can see the Minima diagram here docs.arduino.cc/tutorials/uno-r4-minima/shield-guide/

    • @Sammyrobotics-bv1x
      @Sammyrobotics-bv1x 4 місяці тому +1

      How do add the pin to your servo motor

    • @BMonsterLaboratory
      @BMonsterLaboratory  4 місяці тому

      Hey Sammyrobotics! sorry for the late replay.... You add the pins in the "build" tab at the top. You'll see a parts list on the left. Click a motor or join and the "parts setup" list will come up on the right. Under "connection", change from "pin" to "I2C and pin" if you're using this servo breakout board. Make sure the I2C address is correct and you select a pin for your breakout board. enjoy!

    • @Sammyrobotics-bv1x
      @Sammyrobotics-bv1x 4 місяці тому

      @@BMonsterLaboratory I meant what pin do I add to the servo?

  • @menukagamage5073
    @menukagamage5073 5 місяців тому +1

    Can u control 2 servo and 4 output with one arduino?I tried this but getting error msg cannot set live saying "it has the same driver and config

    • @BMonsterLaboratory
      @BMonsterLaboratory  5 місяців тому

      You should be able to. I haven't tried that yet, but i'll give it a shot. Are you using direct servo control with your Arduino or are you going through a servo driver board?

    • @nanopuppet289
      @nanopuppet289 5 місяців тому

      I’m using direct control from arduino

    • @nanopuppet289
      @nanopuppet289 5 місяців тому +1

      I’ve managed to get everything to work fine … thank you for quick reply .. like I mentioned can u make audio track visible while you edit the graph .. this we’ll make voice synchronization much easier… unless there’s a way to do this ? Keep up the amazing work

    • @BMonsterLaboratory
      @BMonsterLaboratory  5 місяців тому

      @@nanopuppet289 I'll play around with audio. I haven't done that yet because i'm pretty new to this software. I was going to use a sparkfun mp3 player shield with it. I will play around with it more soon and see what I can get to happen. Thanks for adding to the conversation.
      By the way, I like the animatronic videos you have on your channel - very cool!

    • @nanopuppet289
      @nanopuppet289 5 місяців тому +1

      Thank you so much 🙏🏼

  • @Sammyrobotics-bv1x
    @Sammyrobotics-bv1x 3 місяці тому +1

    How did you upload the bott tango file to Arduino also I am on Mac book

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 місяці тому

      Hi Sammy,
      I'm on a pc, so I could tell you how I did it for pc....not sure how it translates to mac. Export from the Bottango software, open the file and drag 2 files (GeneratedCommandStreams.cpp, GeneratedCommandStreams.h) to the Bottango Arduino driver folder. From this file, open the Bottango Arduino sketch, go to BottangoArduinoConfig.h tab and uncomment #define USE_COMMAND_STREAM line. If you are using the servo driver board, uncomment the #define USE_ADAFRUIT_PWM_LIBRARY line. I am currently using 2 servos and not using the servo breakout board and it's working fine. If you're not using the driver board, leave the line as it is "// #define USE_ADAFRUIT_PWM_LIBRARY "
      From here you should be able to upload and start your animation without the computer. Upload the file from Arduino IDE. If you connect back to the computer, be sure to comment the command stream line "//#define USE_COMMAND_STREAM"
      👍

  • @ZenHulk
    @ZenHulk 6 місяців тому +1

    that motor driver sucks, most servos out there now need more than 6v the max of that board, plus every driver for it is horrible, got 10 of them sitting in a box under desk.

    • @BMonsterLaboratory
      @BMonsterLaboratory  6 місяців тому

      Hey there! great to hear from ya. I haven't had any issues with these servos or driver board yet but I guess that depends on what you need them to do. I don't have any higher voltage servo motors yet but may need a few in the near future