Homemade HAL9000

by joe in Circuits > Microcontrollers

6972 Views, 20 Favorites, 0 Comments

Homemade HAL9000

100_4223.JPG
After watching 2001 A Space Odyssey I decided I needed my own HAL 9000- except less evil.

This uses a BS2, PIR and will pulse when it detects motion.



Hopefully this has a positronic brain which will observe the 3 laws of robotics and not turn on me.

Parts

100_4187.jpg
100_4172.jpg
BS2
PIR
Aluminum Project Box
Solderless Breadboard
DC Power Jack
3 Pin plug, I got one from a CPU fan
Switch
Old flashlight for the lens.
Red LED
470 Ohm resistor

Tools

WES51_300.jpg
Tools:
Soldering Iron
Drill
Screwdriver
Wire Stripper
Glue Gun

Get the Lens

100_4173.jpg
100_4174.jpg
I had a broken led-shake-no battery flashlight. I pulled it apart for the lens and reflector.

I cut the top off with a dremel and kept the lens and reflector assembly.

LED Switch

100_4175.jpg
I removed the white led and replaced it with a red led.

Code

macbs2.jpg
100_4205.jpg
I use Mac BS2 to program my stamp. Its free and works really well.

Load the code on your stamp.

The code I used is attached.

Downloads

Breadboard It Out

100_4179.jpg
The LED will get hooked up to pin 0, run a 470 ohm resistor from pin 0 to the positive of the LED.

Run the signal from the PIR to pin 15, and positive and negative to the + - terminal on the PIR.

The Box

100_4189.jpg
Now we'll start on the enclosure.

On the top find the center and mark it.

I used a punch so my drill bit wouldn't walk on the metal box.

Hole Saw

100_4193.jpg
100_4190.jpg
I used a hole saw to make the hole in the box.

I also used cutting oil to make the whole cutting easier.

Hole for the Eye

100_4195.jpg
100_4196.jpg
To make the hole for the lens or HAL 9000s eye, measure the center, mark and again tap with a punch so the drill bit doesn't walk.

Power an On/off

100_4197.jpg
On the back, make two holes, one for your power and one for your on/off switch.

Glue the PIR

100_4198.jpg
Glue the PIR in to place with a hot glue gun.

Glue the Lens

100_4199.jpg
Glue the lens in to place again using hot glue. You could use some other glue if you have it... I had hot glue so I used it.

Reflector

100_4200.jpg
Glue the reflector on to the lens.

3 Pin Plug

100_4201.jpg
I grabbed a 3 pin plug from a cpu fan to connect the PIR to the BS2.

The plug had braided wire, which does not fit in a solderless breadboard very easily. So I soldered on some solid core wire to the end to make it easier.

LED

100_4202.jpg
Solder wire to the end of LED to connect to the breadboard.

Solder the Power Jack

100_4203.jpg
Solder wire to the power jack. Use a short piece for the positive as it is only going to go an inch or so to the right for the power switch.

Solder the Switch

100_4204.jpg
Solder the positive from the switch to the power jack. And then one more wire that you will plug in to the breadboard.

Hook Up to Breadboard

100_4207.jpg
Now that everything is in the project box, hook everything back up.

Positive to pin 24
Negative to 23

Resistor to pin 5
PIR Signal to pin 20

LED + to resistor
LED - to negative

PIR + to positive
PIR - to negative

View It

100_4220.jpg
Check it out.

The LED will pulse when the detects movement.