Hello there,
This is my first post, and wanted to introduce my self to you. I am Software Engineer from Argentina, Star Wars and V (old TV Show) fan and replicas prop maker. I have been working on a on this prop, that you all will remember:
Well, those who are 30 years old or more. Maybe you saw a re-run of the show too. Who knows. Well, I 3D modelled this gun and designed it hollow.
The gun will be 3D printed, but that's another history. I am looking for advice about the electronics involved in the project. The trigger will activate a light, installed inside the tube or at the base, and will fire a FX sound. Already bought a UNO R3, a Mini Pro, and the USB adapter. But looking for suitable mp3 shield that fits on the grip or the top box. What do you think?
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.
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:
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.
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.