Translate

Wednesday, March 30, 2011

Boba Fett project

Time ago a friend of mine, Molly, asked me to help her to prepare some electronic effects for a costume  : Boba Fett from Star Wars.
At the time I prepared some articles to document the work.
Here the material I prepared, edited for the blog.  This is the first article, others will follow.


Introduction

Basically there was two areas of the costume where I helped :

  1. Rangefinder movement
  2. Rangefinder lights effects

Rangefinder


The rangefinder is, in the character fiction, a device capable to identify and point a target.
Physically is a funny shaped box, with some flashing lights and a screen, mounted on the top of a rod/pole, on the side to the helmet.
When not in use it rest vertically. When in use it is lift down in front to the visor.
There are two flashing lights in front and a "screen" in the back of the rangefinder, just in front of the visor.
The lights are turned on when the rangefinder is lifted down.


Lights



The rangefinder has three lights, supposedly going on when in the horizontal position.
Two flashing lights in front and one green or white light inside, in order to simulate the light from a monitor screen .
It is possible to design different circuits capable to drive the lights.
  • simple
  • classic
  • flexible

Simple

The circuit is quite simple and "classic" and can even be minimized using special components, like this :



The circuit is extremely simple.
A 3V coin battery to power supply 3 LEDs and a tilt switch turn on the LEDs when the rangefinder is horizontal.
Two of them will be "flashing LED", i.e. LED with already included an oscillator, like this one found on AllElectronics.

Pros :
  • very very simple
  • not critical
  • doesn't even need a PCB
Cons :
  • the flashing LEDs can not be controlled
  • battery can not last long


Classic

Alternatively, is possible to build an astable oscillator, using a couple of transistor, so to have the LEDs flashing alternatively and not in "simil sync" as the previous circuit.
Adopting an astable oscillator is little bit more complicated and it require a PCB (a piece of sperimental board is ok).
Something like that :


The circuit seems more complicated but is really not.
Is a "classic" astable multivibrator based on two transistor NPN who drive two normal LEDs (D1 and D3).
D2 is a green or light LED.

Pros :
  • the flashing LEDs are controlled
  • the battery can last longer
  • probably is the circuit used on the "original" costume
Cons :
  • require a little PCB to host the components
  • require little bit more work to be done

Flexible

The third way to drive the LEDs is, for my taste, the better.
Using a microcontroller, we can achieve the maximum about flexibility and an easy to program and  change effects.
The hardware is very very simple, based on a MSP430F2012 microcontroller.

Simply we can connect the three LEDs to the micro I/O ports using the micro PCB.
After that is only matter to write a simple firmware capable to drive the LEDs.
It is  quite easy to set up any pattern and also include some special effects on the one that simulate the screen.



The 3 LEDs will be connected to 3 I/O pin, programmed in output mode.
Another pin will be used to connect the tilt switch.
The tilt switch is not used to power supply the micro, because is not capable to give a neat on/off signal.
In this way the micro will read the tilt switch, acting also as filter.
When  the tilt switch will indicate a off position, the micro will be placed in low power mode.

Pros :

  • the flashing LEDs are controlled
  • possibility to create many effects, even using PWM to control brightness
Cons :
  • require a little PCB to host the components
  • require little bit more work to be done
  • the battery life is not high
Movement

The rangefinder is attached to the helmet.
Since the goal is to have it moving automatically, from the vertical position to the horizontal one, a motor and gears will be needed.
The main challenge for the mechanic part, is the dimension and the torque needed to move the rangefinder.
Because the dimension, some limits will exist :
  • motor/gears
    The motor and the gearbox necessary to increase the torque, trading away the speed, must be small as possible.
  • power supply
    For the same reason, the motor and the circuit will need to operate using the smallest possible amount of batteries.
    The space in the helmet is not big
  • electronic
    The motor need to be driven by an electronic circuit, capable to run it in both directions and possibly with different speed.
    Also the electronic should be small as possible.
  • no wires
    Any necessary wire should be hide as much as possible.
    So for example, the rangefinder lights will be self enclosed in the top box
    The same for the motor control. Because of that, a remote control will be included so to activate the motor remotely.
The Rangefinder is placed on the top of a rod, connected to the helmet.
Usually is in vertical position but can be lowered in the horizontal position.
The idea is to make the Rangefinder move from vertical to horizontal, and back, automatically. The electronic to control the movement, will be based on a MSP430F2012 Texas Instrument microcontroller plus other components.

Like the lights, there are different possible choices.
The first is to use a normal DC motor, coupled with some gears.
The second, the one we adopted, uses a servocontroller.

  • DC motor
  • Servo

DC Motor



A RF receiver will provide the input for the microcontroller (a Texas Instrument MSP430F2012), that will drive a H bridge capable to power the DC motor in both directions.
The DC motor, geared, will in the end move the rangefinder up or down.

Servo

The alternative to drive directly the motor and play with a gearbox, is to use a servo.
A "servo" is a "servomotor". Basically a "ready to use" DC motor, with a gearbox and an electronic circuit capable to drive it.
The advantage is that the motor is already handled by an electronics, easily controllable by a microcontroller.
There are many different models of "servo". They are used in the models (planes/boats/cars) and usually have a strong torque available.

Here a schematic block that illustrate what we have to do :



3 comments:

  1. What are the values of the resistors and capacitors in the 2nd circuit please?

    ReplyDelete
  2. Hi James, it depends about the frequency you want to obtain.
    I never actually did that circuit, I just mentioned it as possibility so I don't have any particular value to suggest. I went immediately to the last one, with the micro :)
    You can find tons of info online about the second circuit, like :
    http://en.wikipedia.org/wiki/Multivibrator

    The resistor on the middle LED depends about the input voltage and the current you want to give to the LED, i.e. also from what LED you are using.

    ReplyDelete
  3. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. משרדי יחסי ציבור

    ReplyDelete