Hexbug Hack Chapters
(Updated for New HXB27e
PC board)


CH1-Possibilities
  CH2-Whats Inside  
  CH3-Controller Design  
CH4-Assembly
CH5-Control Software
CH6-Testing, Programming
& Final Assembly
CH7-Downloads
CH8-Upgrades
     

Hexbug Hack
Give your Hexbug a Real Brain!
Chapter 4 - Assembly -

Although the new controller can be built on a pad-per-hole prototyping board, using a printed circuit board will be much more convenient. A double-sided, plated through hole and solder masked board can be obtained from Applied Inspirations, LLC.
(Order Here)

Up-Dated HXB27c PC Board


The last components to get soldered to the PC board should be the antennae (due to there fragility and to prevent the insulator between the post and the spring from being distorted during surface mount soldering.) The first components to be mounted on the PC board are the surface mount parts. (Make sure the surface mount parts are soldered before the piezo-buzzer; it installs over the H-bridge.) Only the resistors and MOSFETs are surface mount components for several reasons:

1) Surface mount ceramic capacitors should NOT be soldered by hand, one contact at a time. They tend to crack or short internally and fail. Or worse- they may be slightly damaged and fail intermittently. Intermittent problems are the most difficult to debug.
2) The PIC chip is socketed so that different chip versions can be used, it can be replaced if damaged, and so it can be programmed externally, and then plugged into the board. If external programming is used, the connector pins and jumper can then be eliminated, and a simple switch used to turn the bug on and off.
3) An axial leaded filter choke is less expensive and smaller than its equivalent surface mount package.
4) Resistors and SOT-23 MOSFETs have enough flex in their packaging to prevent damage when hand soldered.

NEW HXB27e Parts List:
( The Assembly sequence is basicly the same )

 

 

HXB27e Parts

 

 

Qty

 

Part

Number

Source

1

PC Board

HXB14c

Applied Inspiration

1

U1

Microcomputer

PIC12F675-I/P DIP (Base)

Mouser, Microchip Direct

 

 

Alternates-

12F675 SOP  (Base)

 

 

 

 

12F683-DIP (largest mem.)

 

 

 

 

12F683-SOP (largest mem.)

 

 

 

Other compatible   PIC chips-

12F510, 635, 629

Mouser Electronics

1

U2

IR receiver module

TSOP34838

Mouser Electronics

3

Q2,3,5

N-MOSFET

NDS331N

Mouser Electronics

2

Q1,4

P-MOSFET

NDS332P

Mouser Electronics

1

D3

Voltage Reference

ZXRE4041EFTA

Mouser Electronics

 

 

Alternates-

LDS4041EZ-M3-12-TL

 

 

 

 MMSZ5V1T1G-

LM4041DIDBZR

 

 

 

 

LM4041D12IDBZR

 

1

D4

Schottky Diode, SOD-123 Pkg

MBR0520LT3G

Mouser Electronics

 

 

Alternates-

SD103AW-V-GS08

 

1

D5

Zener Diode, 5.1v, SOD-123 Pkg

Originally --> MMSZ4688-V-GS08

Mouser Electronics

Improvment- Lower Leakage MMSZ5V1T1G Mouser Electronics

2

D1,2

T1 red LED

WP7104SRC

Mouser Electronics

 

 

T13/4 red LED

630-HLMP-C008-U0000

 

2

R2,6

100K SMD Resistor

1206 Pkg.

(Mouser)

1

R9

12K SMD Resistor

1206 Pkg.

(Mouser)

1

R5

2K SMD Resistor

1206 Pkg.

(Mouser)

2

R3,4

1K SMD Resistor

1206 Pkg.

(Mouser)

1

R11

300ohm SMD Resistor

1206 Pkg.

(Mouser)

1

C3

10uf Capacitor  Very Low ESR

C1206C106K9PACTU

Mouser Electronics

 

 

Alternates-

81-GRM426Y106Z10L

 

 

 

10uf Tant Capacitor Low ESR

293D106X9010A2TE3

 

3

C1,5,6

.1uf Capacitor

VJ1206Y104KXAMT

Mouser Electronics

2

C2,7

.01uf Capacitor

VJ1206Y103KXAAT

Mouser Electronics

1

L1

470uH axial Inductor

43LS474

Mouser Electronics

1

 

Piezo-Buzzer 12.2mm x 3.5mm

PS1240P02CT

Mouser Electronics

 

 

 Side port, 10.5mm x 4 mm

254-PB503-ROX

Mouser Electronics

 

 

12.6mm x 6 mm

PKM13EPYH4000-A0

Digikey-

 

 

12.2mm x 6.5mm

PS1240P02BT

Digikey-

 

 

 

CPE-163

Digikey-

8

8 MillMax Pin scockets

0552-1-15-01-11-27-10-0

Mouser Electronics

 

 

8-pin DIP socket- UltaLow Profl

115-93-308-41-003000

Mouser Electronics

 

 

8-pin DIP socket- UltaLow Profl

115-43-308-41-003000

Mouser Electronics

 

 

8-pin DIP socket- Std.

4808-3004-CP

Mouser Electronics

1

8-pin header Rt.Angl

2340-5111TG

Mouser Electronics

1

8-socket header

929974-01-36

Mouser Electronics

(The excel file can be found in the down-load section)

NOTE: Most of these parts can also be obtained from Digikey and other suppliers.
Resistors, capacitors, the zener, and LEDs can be easily substituted for, however,
Do Not substitute Parts in
BOLD BLUE without careful evaluation for equivalence.


Assembled board, ready for 'options'
(Note in-board Pin-Sockets for PIC Chip)


NOTE: These are the original, HXB14c, Exploded Assembly Sequence and Parts List.
They will be updated in the future and archived in a reference section that
will be maintained for all early project versions.


( NOTE : The MOSFETs used here, NDS331N and NDS332P, are special Low Gate Voltage parts. If other MOSFETs are substituted, make sure their turn-on gate voltage is low enough. )

The surface mount devices (SMDs) can be hand soldered, one at a time, with fine solder and a fine tipped, low power soldering iron- preferably temperature controlled. (Use anti-static precautions, and install the resistors first to help protect the MOSFETs’ gates.) I did my first surface mount projects this way, until I discovered what sadly seems to be:

The ‘best kept secret’ of surface-mount prototype assembly-
Zephyrtronics.

I met Dave Jacks, president and founder of Zephytronics at the ’06 NEPCON show. (I almost left early and would have missed him.) He was demonstrating Zephyrtronics’ line of surface mount repair and prototyping equipment. My eye’s got wider as he deftly demonstrated soldering and unsoldering finely pitched, 44 pin chips from a PC board as quickly as one of those “never needs sharpening” knife demos, where they cut a tomatoes into fifty, paper thin slices in the blink of an eye. Only, this was not snake oil!

The commercial way of assembling surface mount components is to screen print solder past onto the PC board, place all the components with a high speed automated placement machine, and then run the board through a controlled temperature-cycle oven.
Though the solder paste and components can be placed by hand, and boards have been soldered in toaster ovens, the biggest problem is the solder past itself- it must be shipped cold, and if not refrigerated, the solder and flux will separate, and harden up.

If you are willing to live with this, Digikey has it- a 100gr syringe is about $57, and must be shipped overnight express; more $$$.


A Better Way

There is however, a better way- Zephytronics has pioneered a solder paste that does not need to be refrigerated. They have developed a solder paste that is stable, on the bench for six months, and much longer if refrigerated. I’m almost out of my first tube I bought two years ago, and it’s still good. When not being used, I keep it in one of those tiny, dorm-room type refrigerators. A 10cc syringe is about $15, and they have no minimums.

Their website has a great deal of very good ‘how-to’ as well as technical information about surface mount soldering (http://www.zeph.com/pap1.html). They sell some excellent equipment, though it’s a bit pricey for hobbyists.

For occasional / limited surface mount soldering, a good, digitally controlled heat-gun will work. The best deal I’ve found is the one offered by Ace Hardware, and it’s under $35 if ordered over the web. Additionally, a thermocouple temperature probe should be used to monitor the air and board temperature. Some good digital multimeters include them.

Current as of 3/24/10
Ace Hardware www.acehardware.com
Ace Digital Heat Gun
250-1350 deg. F; 1500Watts
Price: $31.99

  Electronix Express www.elexp.com
Digital Multimeter, Model MS8264
3-1/2 Digits LCD, Volts, Current, Resistance, Capacitance,
Frequency, Temperature -20 C to +1000 C
Price: $25.95

  Zephyrtronics www.zeph.com/zephpaste.htm
SPE-0012
ZEPHPASTE® NO CLEAN 63Sn/37Pb solder paste
10cc Syringe Filled with 12 grams of Paste
Price: $14.95

 
There will be more information on surface mount soldering on this website later
The surface mount soldering section is still under construction.

NEW HXB27e Parts Placment:
(Click Image for Detailed .PDF Diagram)

NOTE: This is the original, HXB14c, Parts Layout.
It will be archived in a reference section that
will be maintained for all early project versions.

(Click Image for Detailed Diagram)

The basics of this assembly method are:
1) Spot apply solder paste to all the surface-mount pads.
2) Place the components, and align them with the pads. (In most cases, if the pad geometry is correct, the surface tension of the liquid solder will pull the parts into alignment, but they need to be close.)
3) Place the board in a semi-enclosed area (sheet metal or plasterboard are two good possibilities) to help direct the hot air from the heat-gun to the board’s underside. Place the tip of the temperature probe so it’s pressed against the top of the board.
4) Over about a minute’s time, slowly ramp up the temperature to 300°F. Let the board ‘soak’ at this temperature for about a minute. The board and components can safely be left at this temperature for extended periods of time. The flux component of the solder paste will cause it to first flow, and then will dry out.
5) Raise the air temperature to about 430°F quickly and carefully watch for the solder to flow. As soon as the solder has flowed on all the pins, quickly reduce the air temperature, and let it cool back to room temperature with just air.
After the surface mount parts have been soldered, install the capacitors, piezo-buzzer, inductor, and the 8-pin header (or jumpers) and 8-pin socket. The leads of the LED should be insulated and bent to place it between the antennae. It should also be inserted from the BOTTOM of the board if the transparent bug shell will be replaced. Finally, install and solder the antennae to the BOTTOM side of the board. Note that there are right and left antennae!

To be able to program the PIC chip in circuit, and test the Bug’s performance, a programming cable will be needed. This can be wired up using an 8-pin female header for the Bug side, and a 5-pin male header for the PICkit-2 side. (Other Microchip and third party programmers will work also, but may have different pin-outs and/or external power requirements.)
Before the new board is installed on the Bug chassis, it should be tested- It’s a bit of a pain to unsolder it from the battery terminal wires once it’s installed. And before it can be tested, we need a control program.

Just for reference, as the board can not be tested without software:

The final assembly is done by first soldering the motor leads to the controller (but NOT the battery connections), applying power and verifying system functionality, particularly that the motor is running the right way. (If it does get wired in backwards, the solution would be to reverse the software definition of forward and reverse. But we don’t make those kinds of mistakes, now do we?) The screw holding the chassis halves together is removed, and the board is placed on the chassis, lining up the battery pins with the PC holes. Reinstall the screw and solder the battery pins.


 Taking Ideas into Reality
  Edison was very insightful in his definition of genius. There are lots of good ideas and inspirations, but all by themselves they have little value. It takes effort and insight, tools, materials, and lots of time to bring them into solid existence. Applied Inspirations, LLC was founded to assist in bringing new ideas into physical reality by providing:
Examples - Tutorials and projects that demonstrate ideas taken from concept to reality.
Tools - PC boards, software, hardware and kits to explore turning new ideas into products.
Services - For those without the skills, tools or time, we provide services to develop part of, or the whole idea.