invention

#BitWars Darth Vader lost in space

by alexpikkert

Published on November 29, 2015

Darth Vader has been warped into the wrong (Star Trek) universe !
He is desperatly searching for his way home, with the help of mister Spock,
avoiding all objects in his path!

Maybe the force is with him ! (I hope so...)


Duration: more than 5 hrs..

How To Make It

1

The robot I used the Parallax Board of Education (BOE) robot kit and added two other things: A KEMO B214 ultrasonic distance detector and a few Littlebits. The Littlebits are mounted on the top on a mounting board and take care of the Infrared remote detection, the emergency stop on sound and the generation of the Star Trek sounds.

2

The light saber The light saber is made from a small glass tube with a blue led mounted on one end. The tube is fixed on a servo so it can move back and forth and flash a blue light.

3

Moving the robot and avoiding obstacles

The actions taken by the robot are controlled by an Arduino Duemilanove, built into the BOE part. These are the different actions:

when the robot is activated: both red LEDs and blue LED and saber LED ON, both red LEDs and blue LED and saber LED OFF, move and flash saber, move head left/right continuously, roll forward

if obstacle on the right detected by head: left red LED ON, roll backwards, make sound, move and flash saber, turn left, left red LED OFF, roll forward

if obstacle on the left detected by head: right red LED ON, roll backwards, make sound, move and flash saber, turn right, right red LED OFF, roll forward

if obstacle in front detected by head, first two times: left and right red LED ON, roll backwards, turn right, make sound, move and light saber,left and right red LED OFF, roll forward

if obstacle in front detected by head, third time: make sound, left and right red LED ON, roll backwards, turn left, make sound, move and light saber, left and right red LED OFF, roll forward

if obstacle in front detected on floor level: blue LED ON, roll backwards, make sound, move and light saber, turn right, blue LED OFF, roll forward

if infrared remote controller signal is detected: both red LEDS and blue LED ON, make sound, move and light saber, roll backwards, turn right, both red LEDs and blue LED OFF, roll forward

if external sound detected: move backwards, left and right red LED ON, stop all servos

if robot falls: both red LEDs ON, flash saber, stop all servos, both red LEDs OFF, stay in loop

if a whisker is activated on left side: red LED right ON, flash saber, turn right, red LED right OFF, roll forward

if a whisker is activated on right side: red LED left ON, flash saber, turn left, red LED left OFF, roll forward

4

How is everything connected This is the connection diagram for the whole setup.

Related Projects