V Visitor Laser Gun Replica Prop with Light and Sound

Found out this looking at the website:

Do you think I will be able to connect Smart Wav to Arduino Mini Pro or UNO without problems?

Is this gun large enough to fit it? If yes, then it is very possible to control it with Arduino, using the serial pins on the board. In fact, by the looks of it you may not even need an arduino if you're only playing one sound, you could simply hook up a push button that would be hooked up to a LED (or several) and the Smart Wav board.

Thanks for your reply. As a matter of fact, my intention about the Led turn it on and off doing a fade in/out effect, like a dimmer. At the same time the FX sound is played. That's why I need the mini Arduino board. Those are the internal dimensions available for this project:

Grip Top Box (Bordeaux part) is 112mm x 38mm x 15mm (L,H,W)

Grip Handle (Mustard part) is 39mm x 95mm x 19mm (L,H,W)

Need space for a battery pack and for one mini speaker as well.

I also found out another sound module called SOMO-14D. http://www.4dsystems.com.au/prod.php?id=73

This guy is controlling it via serial with and old Arduino board. Pretty decent sound FXs right?

Also found out another option,

Which I believe could be better since they are sharing IC information.

hello rebel agent
i follow your project on the rpf forum too
you may want to check my arduino project for adding leds and sounds effect to the star wars E11 blaster here:

http://arduino.cc/forum/index.php/topic,109432.0.html

the main topic of the project is on thewhitearmor forum here (need registration):

hope it helps!

Grazie mille! Already reading your post.

Got mine (UNO board) just a hour ago. Testing it.

Here is It, my first test:

Ok, have good news about this project. After working a lot with the sound module, which was defective, got a new one and did work. Wrote a library to manage it, and after that, wrote a program to control a laser gun. This is the source code:

/*
 Sketch to control a V Visitor laser gun prop.
 Created by Diego J. Arevalo, August 10th, 2012.
 Released into the public domain.
 */

#include <Wtv020sd16p.h>
#include "LaserGunFactory.h"

int resetPin = 2;
int clockPin = 3;
int dataPin = 4;
int busyPin = 5;
int analogLedPin = 6;
int triggerPin = 7;
LaserGunType laserGunType = VVisitorLaserGun;

LaserGunFactory laserGunFactory;
LaserGun *laserGun = NULL;

void setup() {
  laserGun = laserGunFactory.getLaserGun(laserGunType, triggerPin, resetPin, clockPin, dataPin, busyPin, analogLedPin);
}

void loop() {
  laserGun->senseTrigger();
}

Yeah, I am not an Arduino expert, but I am a software developer. So I designed the laser gun in different modules. Each one controls a specific function. I attached the entire source code. You will need a WTV020SD16P audio module and Its library to use this code. Here is the library:
http://arduino.cc/forum/index.php/topic,117009.0.html

Here is the video of the test:

I really enjoyed dong this and I am going to use Arduino in every possible electronic project at my hand. Any question don't hesitate in contact me. Next step is to print the laser gun and fit in everything inside. Keep you posted guys.

VVisitorLaserGun.zip (7.98 KB)

Migrated to Arduino Mini Pro Artic Edition:

Will be optimizing the circuit as well the software.

Nice work :slight_smile:
I enjoyed reading this.
best regards
Jantje

good work!
we should start also a project for a voice changer as the visitors robo-voice..

Hi,

If you guys PM me your email addresses I will send you the illutron B synth code, then I am pretty confident you could make these effects with out using external components - its has four independent channels for sound or music, with control over attack, waveform, decay, duration, pitch etc.

You might have seen this link I posted yesterday using the library for a pocket night club, obviously in that application I am aiming for musical sound rather than sci fi, but it will do both.

Anyone watching falling skies ?

Duane B

rcarduino.blogspot.com

Connected the audio module to an amplifier. Sounds really loud.

New version of the software + a fire module selection option. Regular and Stun laser gun. Everything working at 5V.

/*
 Sketch to control a V Visitor laser gun prop.
 Created by Diego J. Arevalo, November 26, 2012.
 Released into the public domain.
 */

#include <Wtv020sd16p.h>
#include <Pam8803.h>
#include "LaserGunFactory.h"

const int WTV_RESET_PIN = 2;
const int WTV_CLOCK_PIN = 3;
const int WTV_DATA_PIN = 4;
const int WTV_BUSY_PIN = 5;
const int ANALOG_LED_PIN= 6;
const int TRIGGER_PIN = 7;
const int FIRE_MODE_PIN = 11;
const LaserGunType LASER_GUN_TYPE = VVisitorLaserGun;
const int AMP_VOLUME_DOWN_PIN = 8;
const int AMP_VOLUME_UP_PIN = 9;
const int AMP_RESET_PIN = 10;

static Pam8803 *pam8803 = NULL;
static LaserGun *laserGun = NULL;
static LaserGunFactoryParameters laserGunFactoryParameters;

void setup() {
  pam8803 = new Pam8803(AMP_RESET_PIN, AMP_VOLUME_UP_PIN, AMP_VOLUME_DOWN_PIN);
  pam8803 -> reset();
  pam8803 -> setVolume(50);
  laserGunFactoryParameters.setWtvResetPin(WTV_RESET_PIN);
  laserGunFactoryParameters.setWtvClockPin(WTV_CLOCK_PIN);
  laserGunFactoryParameters.setWtvDataPin(WTV_DATA_PIN);
  laserGunFactoryParameters.setWtvBusyPin(WTV_BUSY_PIN);
  laserGunFactoryParameters.setAnalogLedPin(ANALOG_LED_PIN);
  laserGunFactoryParameters.setTriggerPin(TRIGGER_PIN);
  laserGunFactoryParameters.setFireModePin(FIRE_MODE_PIN);
  laserGunFactoryParameters.setLaserGunType(LASER_GUN_TYPE);
  laserGun = LaserGunFactory::getLaserGun(laserGunFactoryParameters);
}

void loop() {
  laserGun -> senseSwitches();
}

Attached the whole Sketch in this post. Enjoy.

LaserGunSketch.zip (11.6 KB)

And everything working at 3.3v with a new Arduino Mini Pro 8Mhz.

By the way, the laser gun was 3D printed last week:

I am about to finish this project in about 3 months.

great!

Thanks, you stared all this Arduino fever on me