3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino / Wii controlled Lego Star Wars rocket turret

Arduino / Wii controlled Lego Star Wars rocket turret
An Arduino board receives data from a Wii Nunchuck and sends it to hree servos: x, y and trigger. An independent laser has been added for targeting. Currently very wobbly because of the cheap servos used.



 
Remove these adsRemove these ads by Signing Up
 

Step 1Construction

Construction
«
  • DSCN1867.JPG
  • DSCN1864.JPG
The rocket turret was built using available Lego pieces around a "trigger" servo. A twitch of the servo when the Z button is pressed on the Wii nunchuck pushes the rocket trigger back, firing it. The base of the trigger servo is attached to x and y servos in a pan/tilt mechanism from Lynxmotion: http://www.lynxmotion.com/images/html/build153.htm
« Previous StepDownload PDFView All StepsNext Step »
5 comments
Feb 14, 2011. 9:40 AMDannne11 says:
im getting error


sketch_feb14a.cpp:3:13: error: #include expects "FILENAME" or
sketch_feb14a.cpp:4:13: error: #include expects "FILENAME" or
sketch_feb14a.cpp:5:14: error: #include expects "FILENAME" or
sketch_feb14a.cpp:6:47: error: #include expects "FILENAME" or
sketch_feb14a:7: error: 'Servo' does not name a type
sketch_feb14a.cpp: In function 'void setup()':
sketch_feb14a:45: error: 'myservo' was not declared in this scope
sketch_feb14a:48: error: 'Wire' was not declared in this scope
sketch_feb14a.cpp: In function 'void nunchuck_init()':
sketch_feb14a:61: error: 'Wire' was not declared in this scope
sketch_feb14a.cpp: In function 'void send_zero()':
sketch_feb14a:69: error: 'Wire' was not declared in this scope
sketch_feb14a.cpp: In function 'void loop()':
sketch_feb14a:86: error: 'Wire' was not declared in this scope
sketch_feb14a:119: error: 'myservo' was not declared in this scope
sketch_feb14a:124: error: 'myservo' was not declared in this scope
sketch_feb14a.cpp: In function 'void muovi(uint8_t, uint8_t)':
sketch_feb14a:250: error: expected `;' before 'pulseWidth'
sketch_feb14a:250: error: expected `)' before ';' token
sketch_feb14a:251: error: name lookup of 'p' changed for new ISO 'for' scoping
sketch_feb14a:250: error: using obsolete binding at 'p'
sketch_feb14a.cpp: At global scope:
sketch_feb14a:254: error: expected constructor, destructor, or type conversion before '/=' token
sketch_feb14a:255: error: expected constructor, destructor, or type conversion before '/=' token
sketch_feb14a:257: error: expected declaration before '}' token
Mar 13, 2012. 6:05 PMbiomech75 says:
2 solutions:
1. try using version 23 for the Arduino Software.
2. Tell the author of this tutorial to try and fix the code.
Oct 19, 2010. 2:10 PMlemon rind says:
Thats pretty cool man. Definitely needs better servos though!
Jan 20, 2010. 10:07 AMDoctor What says:
 Nerdgasmic!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
8
Followers
4
Author:Jonathan Robson
Science museum exhibit design and fabrication manager, stagehand, ballet shoe maker, theatre production manager, project manager and art director of the Beijing Aquarium rainforest exhibit, film extra...
more »