Ez Arduino MiniKame Mk2 - Making a 8 DOF 3D Print Quadruped Robot

7,913

50

52

About: We love robotics!

This is an inexpensive 3D printed 8 DOF quadruped robot using Arduino kind control board. It has two playing modes. One is autonoumose pilot mode which the robot walks and performs action randomly. The other is control mode where the robot is controlled by iPhone or Android phone via BLE technology.

This instructable page contains detail of steps in sequence of videos to people who are interested to build one.

Step 1: Printing 3D Models

You can download the 3D printed STL models here. Those samples are printed in PLA. Suggested parameters for slicing the models to print are as followings. You may adjust them to fit the 3D printer you're using.

  • bottom/top thickness: 1mm
  • shell thickness: 1.2mm
  • layer height: 0.2mm
  • fill density: 10%
  • support: yes
  • adhesion type: skirt or brim

If you don't have a 3D printer, you may find online 3D print service.

Step 2: Software

uploading the Arduino code by open firmware.ino in the Arduino Software, see step 10 on IOS app and step 11 on Android app to control the robot.

for HuaDuino, in Arduino IDE software:

  • the board selection: "Arduino Nano", processor "ATmega328" for AVR Boards support version 1.6.20 or older.
  • the board selection: "Arduino Nano", processor "ATmega328 (Old Bootloader)" for AVR Boards support version 1.6.21 or newer.

Step 3: Electronics Components

    The electronic components can be found in online store such as ebay, amazon, aliexpress and etc.

    • a HuaDuino board, it is Arduino Nano compatible with enhanced features. It integrates everything on a single PCB. It's a lot easier for people to make a bot with it. Embedded battery charging circuit, battery charging is more convenient. It can be found on Amazon and ebay.
    • a single 3.7V 18650 lithium ion battery or battery pack with XH2.54 connector, if you want longer running time getting a pack with two 18650 in parallel. You may like to use this 18650 battery holder. However, it is also fine to use 3.7V 10440 lithium ion and 3.7V lithium polymer battery dimension not bigger than W35mm, L70mm & T60mm. The photo is with two 10440 lithium batteries in parallel.
    • 8 x Tower Pro SG90 or compatible 9g servos.
    • a BT-05 CC2540 Bluetooth BLE module - this is optional if you don't need App control. Baud rate is required to set to 115200. For iOS app, the service UUID must set to 0xDFB0 and characteristic must set to 0xDFB1. Below is the code to do that automatically. Attached is the reference of the AT command set to configure CC2540.
    • a female-female dupoint wire or anything you can figure out for connecting two pins
    • some m2x6 tapping screws

    The following Arduino code issues AT commands setting BLE module UUID, characteristic and baud rate, assuming the BLE default baud rate is 9600. For running this program in HuaDuino with the module onto it, the S1 switch must be set to the BT position.

    void setup() {
      Serial.begin(9600); //change to fit your ble initial baud_rate
      Serial.println("AT+UUID0xDFB0\r"); // uuid
      delay(50);
      Serial.println("AT+CHAR0xDFB1\r"); // characteristic
      delay(50);
      Serial.println("AT+BAUD8\r"); // set baud rate to 115200
    }
    
    void loop() {}

    The steps you should do of uploading the Arduino sketch to HuaDuino for BLE control are as following

    1. insert the BLE module, switch S1 to USB side, turn on huaduino,
    2. uploading the above ble module setup program
    3. turn off huaduino, switch S1 to BT side
    4. turn on huaduino, let the ble module setup program run in few seconds.
    5. switch S1 to USB side
    6. uploading the robot code by open "firmware.ino"
    7. switch S1 back to BT side, the robot now can be controlled by BLE

    Step 4: Installation of Servos and the Control Board

    Step 5: Legs

    Step 6: Servo Wiring

    Connection to digital pins of HuaDuino are as followings:

    • D2 to front right hip servo
    • D3 to front right leg servo
    • D4 to back right hip servo
    • D5 to back right leg servo
    • D6 to back left hip servo
    • D7 to back left leg servo
    • D8 to front left hip servo
    • D9 to front left leg servo

    Step 7: Calibration

    Using a du-point wire between D12 and 3.3V pin, the robot servos will be set to default angle and in stance position. This is the status for installing servos and having servo arm capping on the correct angle.

    Step 8: Installation of Servo Arms

    while the du-point wire connected between D12 and 3.3V pin, puts the servo arms to the servo shaft

    Step 9: Finishing Up

    insert the CC2540 Bluetooth BLE module to the board's Bluetooth connector, and slide the S1 switch to the BT side, finally closes the robot with the top cover.

    Step 10: Plays Using IPhone

    To success doing this part, you must configure CC2540 Bluetooth BLE module, see the step 3 - electronics components
    • opens the iOS app and closes it the robot,
    • after few seconds the BLE paring between the robot and iPhone should be done. You will see the connection symbol changed to green.
    • press the top middle virtual button will switch the robot to control mode, and press again will turn back to autonomous self walking mode.

    Step 11: Plays Using Android Phone

    • open the Android app while robot is on pressing the connection symbol closed the top edge.
    • after few seconds you should see listed BLE device and
    • select it and connection symbol should turn to blue when successes
    • press the top middle virtual button it will switch to control mode and press again it will back to autonomous self walking mode

    Step 12: Battery Charging

    • plugs a 5V power source micro USB cable to the robot USB port
    • a red light indicates charging
    • a green light indicates charging completed

    Microcontroller Contest

    Runner Up in the
    Microcontroller Contest

    2 People Made This Project!

    Recommendations

    • PCB Contest

      PCB Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • First Time Author

      First Time Author

    52 Discussions

    0
    None
    TrầnQ

    Question 5 hours ago

    I don't have any Huaduino, but i have USB to TTL using CP2102 instead. Can I uploading the code to the BT module through it, and which part of the Firmware.ino should I upload (to the Arduino Nano and the BT module). And I'm using Bluetooth 4.0 UART CC2541 AT-09, is it the same to the one that you used in this project. Thanks for reading and I'm looking forward for your response.

    0
    None
    patty87

    5 days ago

    I can upload the program to the bot, and the app connects to the bot, but the controls do not make the bot move at all.

    0
    None
    BrunoJ6

    Question 20 days ago

    Hello, I use playBLE app and connect the bluetooth module, but bluetooth icone become blue and not green, so no command seems to be sent to the module and arduino (I use arduino nano). I would like to say that the robot fine runs in autonomous mode. Could everybody help me ? Thanks a lot

    3 answers
    0
    None
    manic-3d-printBrunoJ6

    Answer 20 days ago

    Recently aware that playBLE seems not running very well on recent android versions, suggesting you try the ios app goBLE to test if you have the BLE module setup correctly.

    0
    None
    BrunoJ6manic-3d-print

    Reply 18 days ago

    Hello, as I do not control BT05 properly, I will use the HC06 (I ordered 2 modules). I started to study arduino sketch to understand what commands came from playBLE. Having understood, I will write an android app that will run the robot with bluetooth module HC06 and update the sketch. I'll put it online as soon as it becomes operational.

    0
    None
    BrunoJ6BrunoJ6

    Reply 16 days ago

    Finally I understood how the BLE BT-05 module worked, so I modified the original sketch and created an apk for android (see screenshot). Please find attached the sketch and the apk. Bruno

    Screenshot_apk.png
    0
    None
    TommyBuelens

    Question 5 months ago

    Is there an other site for the HuaDuino? Can’t find it on AliExpress only on Ebay but I can’t pay on it so I need to find another site or another board. Any tips?

    3 answers
    0
    None
    manic-3d-printTommyBuelens

    Answer 5 months ago

    saw it once in amazon they named it differently, something likes atmega developer board, but not longer can find it, we're afraid ebay is only the place to get it, using other arduino board is possible the software will run without problem, but it will be so troublesome and you should have good background in electronics.

    0
    None
    doncore

    Question 5 months ago

    Hi (me again ;) ),

    this are the BLEs i've tested.

    I'll make a video, but could someone confirm, that these modules should work?

    photo_2018-06-25_06-15-33.jpgphoto_2018-06-25_06-14-32.jpg
    6 answers
    0
    None
    manic-3d-printdoncore

    Answer 5 months ago

    Looks like they are right one. Did you run below configure program mentioned in the "component section"? And also you can use the AT command to check them, see this reference https://cdn.instructables.com/ORIG/FKZ/KSLN/JGSG65...

    --------------------------------------------------------------------------------------------

    void setup() {

    Serial.begin(9600); //change to fit your ble initial baud_rate

    Serial.println("AT+UUID0xDFB0\r"); // uuid

    delay(50);

    Serial.println("AT+CHAR0xDFB1\r"); // characteristic

    delay(50);

    Serial.println("AT+BAUD8\r"); // set baud rate to 115200

    }


    void loop() {}

    0
    None
    doncoremanic-3d-print

    Reply 5 months ago

    Well ... giving up.

    This is how i'm doing it:

    - Switch to USB, Load the BT-Code on th Huadino, Unplug from PC

    - Switch to BT, putting BT-Module on the Huadino

    - Plug back into PC ... waiting 10 seconds, Unplug from PC

    - Switch Back to USB, Plug back into PC, Upload the MiniKame Code, Unplug from PC

    - Switch to BT ... Power up the Huadino

    After that the BT seems to connect (no more blinking) but the App-Icon on my Android devices (several tested) keeps red.

    I've tried several variations of the BT Code. None of them seems to work.

    The "demo" has killed some of my servos (4), so by now there is no need for working code, anyway ;)

    I don't know, what else could be done.

    0
    None
    manic-3d-printdoncore

    Reply 5 months ago

    feel bad for you, not sure which part you went wrong, success cases of other people making us to believe the videos and instructions are quite clear for people to follow.

    we're working on a version of robot software using Infrared communication, the setup should be easier than BLE, but it will take a while, stay tune anyway.

    0
    None
    FrédéricP7doncore

    Answer 5 months ago

    Hi

    I have the same modules and the same problems. I don't know why I'm not abble to change the UUID and the CHAR, it only stays to its default value FFE0 and FFE1.

    AT+VERSION : JDY-09-V4.3

    If you find the way, please let me know

    Update : to change UUID and CHAR the correct command for this module are :

    Serial.begin(115200);

    Serial.println("AT+ROLE0\r"); //put as slave

    Serial.println("AT+UUIDDFB0\r"); // uuid

    Serial.println("AT+CHARDFB1\r"); // char

    Serial.println("AT+BAUD8\r"); // set baud rate to 115200

    After doing this, it works for me !

    Hope it will help you.

    0
    None
    mimaxFrédéricP7

    Reply 5 months ago

    Same as your question,It seems that Android can connect to BLE, but the joystick does not reflect?Need to modify the code?O,The fix is that the actual parameters(baud) and manual are incorrect !

    0
    None
    FrédéricP7mimax

    Reply 5 months ago

    Yes, I think. Maybe we have to remove the '0x' in the Gobble code with this module. I will try as soon I have some free time.