Vorpal Robotics Wiki
Log in

Max The Megapod Battery/Switch Construction

From Vorpal Robotics Wiki
Revision as of 16:57, 18 March 2021 by Vorpalwiki (talk | contribs) (Building the 6V Side of the Harness)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction to self sourcing Megapod parts

If you purchase kit parts from Vorpal Robotics, you will receive the battery/switch assemblies for both the hexapod and gamepad pre-assembled with no soldering required. These instructions are for people who wish to source their own parts. These instructions assume you are familiar with soldering, stripping wires, and other basic electrical tasks. There is just enough detail here for people who are experienced in building circuits to make the parts. It's beyond the scope of these instructions to teach the basics of electronics.

Vorpal Store

If you want to source most of your own parts but can't find an item or two, we have every part individually available at the Vorpal Robotics Store.

If you source your own parts and feel the project has been worthwhile, we would respectfully ask you to make a $3 donation at our store. This will help us continue to develop great new projects. Go here to make a donation: Vorpal Store Donation

A Note On Support for Self-Sourcers

We are happy for Makers to source their own parts, that's why we made this project Open Source. However please do not ask us for a ton of support to help get your project to work if you're doing that! If you want to self-source parts, you need to be familiar with things like soldering, electronics terminology, configuring Bluetooth modules, flashing Arduino programs, etc. If you don't have those skills, our kits are a much better way to go; or try some easier projects first to learn those basic Maker skills before tackling this one.

Our first priority for support has to be our paying customers, that's what allows us to continue working on new great open source projects. We're glad to help on a time-available basis, and it's perfectly fine for you to post questions to our Vorpal Robotics Forum to ask the Vorpal community for help.

Gamepad Battery/Switch Assembly

You will need:

  • A standard 9v battery clip with RED/BLACK color coded lead wires.
  • A rocker switch, single throw single pole. The hole for the switch in the 3D models is 10mm x 14mm to accommodate a switch with hole profile 9mm x 13mm. If you can't get that exact size you either have to keep the switch inside the robot and remove the cap to use it, or you would need to modify the 3D models.
  • Two single pin Dupont female connectors, preferably one RED and one BLACK wire so you can color code the power properly.
  • Some shrink tube or electrical tape to insulate connections.
  • Tools and supplies: wire stripper, soldering iron, solder, heat gun or other means to shrink the shrink tube.

The diagram below shows how connections are made. As usual, RED colored wires will be connected to positive voltage, while BLACK wires are for ground.

Gamepad-Electrical-Switch-Assembly.jpg

Wire lengths are not to scale. You need the wires with the Dupont connectors to be at least 4 inches (100mm) long, and you need about the same from the switch to the 9v battery clip.

Hexapod Battery/Switch Assembly

This power harness feeds power to the servos, the servo controller, the Arduino Nano, the HC05 Bluetooth module, and the buzzer. There are two different voltages used in the robot: a 6v NIMH battery for motors and 9v transistor battery for logic circuits. The 9v battery will be regulated down to 5v for the logic circuits. A double pole ON/OFF switch is used to turn both batteries on and off at the same time.

Unlike the smaller Vorpal Hexapod, the servo controller is not used to feed power to the servos--it only provides the signal line. Servo extension cables are rigged up in this harness so that the red and black wires (positive and negative sides of the battery) are split off from the white wire (signal) and connected to the battery through a fuse and the on/off switch.

You will need:

  • A female Tamiya connector (full sized, not mini-Tamiya) which will be used to plug in the battery pack. If you have a battery pack with some other connector such as XT60 or T connector, feel free to substitute.
  • A 9v battery clip.
  • A rocker switch, single throw double pole (STDP). The hole for the switch in the 3D models is 22mm x 29mm. If you can't get something that size you either have to keep the switch inside the robot and remove the cap to use it, or you would need to modify the 3D models. One pole of the switch will control the servo battery connected to the Tamiya connector, the other pole will control the 9v battery used to power logic circuits.
  • Two single pin Dupont female connectors, preferably one RED and one BLACK wire so you can color code the power properly. These will feed power to logic circuits.
  • Twelve servo extension cables at least 15mm long (male one one side and female on the other) to be used for power distribution to the 12 servos. Optionally you can have two more to power future accessories but twelve is the minimum. You can add the two extras later if desired. The extras are probably better if they're a little longer, 20cm or 30cm.
  • A UBEC (BEC) to provide 5V regulated power to the logic circuits, it should be able to provide 3A to ensure it can handle future extensions.
    • IMPORTANT NOTE: Makers who sourced their own parts have reported that the following UBECs do not work for this project. Although they claim to be able to output 3A or higher, apparently they shut down during brief surges:
      • FPV Bluesky BEC
      • 5V/4A RC Model Airplane Helicopter Speed Control 4A UBEC Brushless ESC IB (sourced on Ebay)
  • Some shrink tube or electrical tape to insulate connections.
  • A roll of male Dupont terminal pins, all connected together. You'll need two strips that are 14 pins each. These are going to be used to distribute power to the servos.
  • 18 gauge wire in both red and black colors, you'll only need about a foot of each.
  • Tools and supplies: wire stripper, soldering iron, solder, heat gun or other means to shrink the shrink tube.

The diagrams below shows how connections are made. As usual, RED colored wires will be connected to positive voltage, while BLACK wires are for ground.

Building the 9V Side of the Harness

You can think of the harness as being in two pieces, the 9v battery side and the 6v battery side. These sides are hooked together on the positive side (RED) by the SPDT switch. Each side gets one of the two poles of the switch. The diagrams below each show a switch, but it is the same switch, just different poles.

Megapod-Power-Distro-9v.JPG

Be very sure that you know which side of the UBEC is input from the battery, and which side is 5V regulated output. The UBEC we use has a 3 pin Dupont connector on the output side, although only 2 pins are populated (+5V, RED wire, and Ground, BLACK wire). This connector will be cut off and replaced by multiple red and black Dupont wires to feed power to each logic module (nano, servo controller, Bluetooth module, buzzer).

Wires are not shown to scale. Here are the minimum lengths you need:

  • Red and black dupont connector wires on the right of the diagram should be 15cm long or longer.
  • The wire going from the red and black output side of the BEC to the bundles of Dupont red/black wires should be at least 15cm long.
  • There should be at least 30cm of wire between the 9V clip and the switch, and the black side of the 9V clip should be similarly sized.
  • The wire that will be used to bridge the common grounds between 9v and 6v side of the circuit should be at least 15cm long.

Building the 6V Side of the Harness

First, here is an overview diagram:

Megapod-Power-Distro-6v.JPG

The Tamiya connector red wire (V+) feeds through the fuse to one pole of the STDP switch. From there, the red side of the circuit interconnects with all the red wires from 14 servo extension cords. To do this, you will take the plastic housing off the female side of the servo extension wire, peel the wires apart, and solder them onto a strip of male Dupont pins. The pins come in rolls, and you want to leave the pins connected to each other. You'll need two sets of 14 pins as shown here:

Dupont-Male-Pins-Power-Distro.jpg

You then take a piece of red hookup wire (18 gauge or thicker) and cut a piece 16 inches long. Strip enough of it to lie across all 14 pins. Connect all the red wires from the 14 servo extension cables to the pins. Solder everything together. It's important that every pin is soldered to the 18 gauge wire. Even though you do have some backup to keep the circuit connected due to the pins being connected together, the thin metal may not be able to handle enough current. The red side will look like the following diagram.

Red-Servo-Power-Distro.jpg

You do the same thing on the black side. A 16 inch piece of black 18 gauge wire is partially stripped and soldered to another set of 14 male pins, the black wires of the servo extension cables are soldered onto the male pins along with the 18 gauge black wire.

The white (sometimes yellow depending on brand) signal wires from the servo extension cables now have bare metal connectors on the ends of them. Using 4-pin Dupont housings, carefully gather them up into groups of four. Go in strict order. Label each group and label the male side of the corresponding servo extension wires to make it easy to make connections later. For example, the first four signal wires go into a 4-pin connector which will have the label: 1234. Each corresponding male end of the extension wires will get the proper label: 1 for the first servo extension cable, 2 for the second, 3 for the third, 4 for the fourth. Do the same thing with the rest of the wires. Note that the final connector will have two pins populated only. These two are not going to be used to drive the leg servos, they are for future expansion products we're working on.

This entire part will look like the following picture.

Servo-Power-Distro-All.jpg

Check and double check all your soldering. Good connections here are critical to having a good flow of current. Once you've done that, seal up the connections using the Power Distro Cover Top and Bottom 3d printed parts. Then solder the 18 gauge wires to the switch and the rest of the circuit.

IMPORTANT: If you test this power distribution circuit without having the plastic housings protecting the solder joints, you have to be absolutely certain that the two halves (black and red) do not have any chance of touching each other. If they touch with a battery connected, you will instantly short out the battery and that could cause a fire, burns, or the battery may burst or even explode. We assume that if you are building this project, you are very aware of how to handle circuits like this safely.

Potentiometer Wiring

Vorpal-Potentiometer-Wiring.jpg

You will need:

  • A 10k ohm, linear rotary potentiometer with 6mm shaft.
  • Three jumper wires, 150mm long, with a female Dupont connector on one end.
    • Suggested colors are: 1 red, 1 black, 1 white (or any other color besides red or black for signal).
    • You can purchase two-end jumpers and just cut off one end.
    • You could also use a servo extension wire with the male end cut off.
  • Some shrink tube or electrical tape to insulate connections.
  • Tools and supplies: wire stripper, soldering iron, solder, heat gun or other means to shrink the shrink tube.

See the diagram at the right. Solder the wires in the order shown, and use either tape or shrink tube to insulate the solder joints.

A Note on HC05 Connections

The kits we sell use HC05 modules that are 5v tolerant. The model number on the module included in our kits is E475833. The manufacturer's own documentation shows this module being used directly with a 5V Uno digital IO pin. For this reason, we do not require a voltage divider when hooking the Rx pin of the HC05 to an Arduino Nano digital IO pin.

However, if you are using modules that are not 5v tolerant, you will need a voltage divider. There are tutorials all over the internet describing how to do this, and if you are sourcing your own parts you may need to use that information to protect the modules you use.

Max The Megapod Quick Links

BUY A KIT NEWSLETTER VORPAL FORUM

User Documentation:

Activities:

Contact/Press: