Jump to content

haui

501st Stormtrooper[TK]
  • Posts

    236
  • Joined

  • Last visited

Everything posted by haui

  1. The Powerzylinders are still missing Here my progress The holding part empty tubes Tubes closed with epoxy-gum adding some color The Parts of the condensators Glued and painted putting all together Mounted on the Blaster
  2. Looks good, how many hours have you spent ?
  3. print it out with a laser print that's great
  4. Great work. At the moment I'm collecting informations cause i'm thinking about building my own armor. This is one if the best posts i found, thanx.
  5. So yesterday the weather was fine an i used my iron again. Here the results: The shoulderparts before and after Zoom in And together with the biezeps The backplöate befor and after The abdomen and zoomed in every part is ironed, sanded and polished
  6. haui

    Battlefront

    Ea Said they will give no Statement fort the Release Date the Game will First be Release when it is finished . I hope they will Do it in this was. Is nobody here form sweden with a Friend at dice-Studios?
  7. Check if a cable is Broken you can Do this whith your cheap multimeter
  8. Here the Partlist of the electronic parts i used: The parts with artnr i bought at www.conrad.de 1x Spannungsregler/Schaltregler TS2940CZ50 CO TO220 artnr 156890 1,42 Euro 1x Batteriehalter D für 4 Mignon (LxBxH) 109x32x16,2mm artnr 651045 1,55 Euro 1x Miniaturlautsprecher, rechteckig 76 DB; 1W, 600Hz, 8 Ohm Artnr 710770 5,95 Euro 1x Zähler CD4017B Gehäuse DIP16 0,7 Euro 10x LED blau 3mm; 3800 mcd Artnr 759476 0,33 Euro 2x LED ROT 5mm, 21000 mcd Artnr 177013 0,41 Euro 1x LED Bargraph 10fach Grün/Rot 25,4x10,16 mm Kingbright DC-/G3EWA Artnr 160143 1,49 Euro The rest i bought at ebay or i had it at home 1x Atmega Nano Board (Arduino) Ebay 12,34 Euro 1x MP3 Modul WT5001M02 10x Resistor 220 Ohm 3x Switches
  9. haui

    Battlefront

    here a new Trailer http://www.4players.de/4players.php/tvplayer/4PlayersTV/Alle/34838/110898/Star_Wars_Battlefront/E3Trailer.html i need this game
  10. 1 saw this pictures and i think i can not sleep tonight
  11. Here how i bulid my blaster http://www.whitearmor.net/forum/topic/27140-blaster-with-light-and-sound/page-2 Here the Code of my blaster: It is the const int buttonPin = 4; // the pin that the SELECTOR pushbutton is attached to i used for this //MAKE SURE TO USE 10K Ohm PULL DOWN RESISTORS FOR SWITCH AND SELECTOR BUTTON // folder advert01 -- Schusssound // Sounds 0-5: SchussSound // advert02 -- Blastersound // Sound 1 Blasterstarten // Sound 2 Sound für Auswahl Selector Button // Sound 3 batterie leer Sound abspielen // Sound 4 reload Sound abspielen #include <Arduino.h> // MP3 player // TX --> int dataPin = 1; // The pin number of the data pin. //int busyPin = 4; // The pin number of the busy pin. //int resetPin = 3; // The pin number of the reset pin. // Buttons const int buttonPin = 4; // the pin that the SELECTOR pushbutton is attached to const int reloadPin = 5; // the pin that the reload is attached to const int triggerPin = 6; // the pin that the Fire is attached to //LEDS const int BAR1 = 7; // the pin that the BAR LED is attached to const int BAR2 = 8; // the pin that the BAR LED is attached to const int BAR3 = 9; // the pin that the BAR LED is attached to const int BAR4 = 10; // the pin that the BAR LED is attached to const int BAR5 = 11; // the pin that the BAR LED is attached to const int BAR6 = 14; const int BAR7 = 15; const int BAR8 = 16; const int BAR9 = 17; const int BAR10 = 18; const int scope = 19; const int RedLedreset = 13;// RED FIRE LED reset const int RedLedclk = 12; // RED FIRE LED clock // Variables will change: int buttonPushCounter = 1; // counter for the number of SELECTOR button presses int buttonState = 0; // current state of the SELECTOR button int lastButtonState = 0; // previous state of the button int triggerState = 0; // current state of the Trigger int lastTriggerState = 0; // previous state of the Trigger int triggerCounter = 0; // counter for the number of fire Button presses int reloadState = 0; // current state of the reload int lastreloadState = 0; // previous state of the reload int redledcounter = 0; // counter for the 10 fire LED's int blueledspeed = 50; // Lauflicht Geschwindigkeit long lastDebounceTime = 0; // the last time the output pin was toggled long lastscopeTime = 0; // the last time the output pin was toggled long debounceDelay = 200; // the debounce time, increase if the output flickers long haltezeit = 3000; // wie lange muss man die Taste drücken int scopestate = 0; void setup() { // initialize the SELECTOR and Trigger button pins as a inputs: pinMode(buttonPin, INPUT); pinMode(triggerPin, INPUT); pinMode(reloadPin, INPUT); // initialize the Barrel LED's as an outputs: pinMode(RedLedreset, OUTPUT); pinMode(RedLedclk, OUTPUT); pinMode(BAR1, OUTPUT); pinMode(BAR2, OUTPUT); pinMode(BAR3, OUTPUT); pinMode(BAR4, OUTPUT); pinMode(BAR5, OUTPUT); pinMode(BAR6, OUTPUT); pinMode(BAR7, OUTPUT); pinMode(BAR8, OUTPUT); pinMode(BAR9, OUTPUT); pinMode(BAR10, OUTPUT); pinMode(scope, OUTPUT); // initialize serial communication: Serial.begin(9600); // Volume setting Serial.write(0x7E); // startcode Serial.write(0x03); // Datalength Serial.write(0xA7); // Adjuste Volume Serial.write(0x1F); // volume 0-31 Serial.write(0x7E); // Endcode // set playing mode Serial.write(0x7E); // startcode Serial.write(0x03); // Datalength Serial.write(0xA9); // Command Serial.write(0x00); // single and no cycle Serial.write(0x7E); // Endcode delay(50); // pause to wait mp3 start // LED initialisieren digitalWrite(RedLedclk, LOW); digitalWrite(RedLedreset, HIGH); digitalWrite(RedLedreset, LOW); digitalWrite(scope, LOW); //digitalWrite(RedLedclk, LOW); digitalWrite(BAR10, HIGH); delay(300); digitalWrite(BAR9, HIGH); delay(300); digitalWrite(BAR8, HIGH); delay(300); digitalWrite(BAR7, HIGH); delay(300); digitalWrite(BAR6, HIGH); delay(300); digitalWrite(BAR5, HIGH); delay(300); digitalWrite(BAR4, HIGH); delay(300); digitalWrite(BAR3, HIGH); delay(300); digitalWrite(BAR2, HIGH); delay(300); digitalWrite(BAR1, HIGH); // play file 001.mp3 -- Start sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Command Serial.write(0x00); // High byte Serial.write(0x01); // low byte Serial.write(0x7E); // Endcode delay(1000); // pause to wait mp3 start } void loop() { // read the pushbutton input pin: buttonState = digitalRead(buttonPin); triggerState = digitalRead(triggerPin); reloadState = digitalRead(reloadPin); // compare the buttonState to its previous state if (buttonState != lastButtonState && millis() - lastscopeTime > debounceDelay) { // if the state has changed if (buttonState == LOW && millis()- lastscopeTime > haltezeit) { if (scopestate == 0) { digitalWrite(scope, HIGH); scopestate = 1; Serial.print("Selector Button scope on: "); // play file 011.mp3 -- end fx Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x0B); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } else { digitalWrite(scope, LOW); scopestate = 0; // play file 011.mp3 -- end fx Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x0B); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } } if (buttonState == LOW && millis() - lastscopeTime < haltezeit) { // if the current state is LOW then the button // went from off to on: Serial.println("Selector Button Pushed"); // play file 002.mp3 -- select sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x02); // low byte Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start if (buttonPushCounter < 6) // Anzahl der Sounds { buttonPushCounter++; Serial.print("Selector Button State1: "); Serial.println(buttonPushCounter); } else buttonPushCounter = 1; } else { } lastscopeTime = millis(); } // compare the triggerState to its previous state if (triggerState != lastTriggerState && millis() - lastDebounceTime > debounceDelay) { // if the state has changed, do something if (triggerState == HIGH) { Serial.println("Trigger Pushed"); Serial.print("Selector Button State: "); Serial.println(buttonPushCounter); lastDebounceTime = millis(); if (triggerCounter < 10) // es wurde noch nicht 10x geschossen { triggerCounter++; SelectorPosition(); // LED-BAR runterschalten LEDBar (); } else { // play file 003.mp3 -- batterie leer sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x03); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } } else { } } // compare the reloadState to its previous state if (reloadState != lastreloadState && millis() - lastDebounceTime > debounceDelay) { // if the state has changed, do something if (reloadState == HIGH) { triggerCounter = 0; lastDebounceTime = millis(); Serial.print("reload Botton: "); // play file 010.mp3 -- minigunstart 4sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x0A); // Play Serial.write(0x7E); // Endcode delay(50); // pause to wait mp3 start //LED-BAR wieder ganz einschalten digitalWrite(BAR10, HIGH); delay(200); digitalWrite(BAR10, LOW); delay(200); digitalWrite(BAR10, HIGH); delay(200); digitalWrite(BAR9, HIGH); delay(200); digitalWrite(BAR9, LOW); delay(200); digitalWrite(BAR9, HIGH); delay(200); digitalWrite(BAR8, HIGH); delay(200); digitalWrite(BAR8, LOW); delay(200); digitalWrite(BAR8, HIGH); delay(200); digitalWrite(BAR7, HIGH); delay(200); digitalWrite(BAR6, HIGH); delay(200); digitalWrite(BAR5, HIGH); delay(200); digitalWrite(BAR4, HIGH); delay(200); digitalWrite(BAR3, HIGH); delay(200); digitalWrite(BAR2, HIGH); delay(200); digitalWrite(BAR1, HIGH); } else { } } // save the current state as the last state, //for next time through the loop lastButtonState = buttonState; lastTriggerState = triggerState; lastreloadState = reloadState; } void LEDBar() { // LED-Bar runterschalten nach Schuss switch (triggerCounter){ case 1: digitalWrite(BAR1, LOW); break; case 2: digitalWrite(BAR2, LOW); break; case 3: digitalWrite(BAR3, LOW); break; case 4: digitalWrite(BAR4, LOW); break; case 5: digitalWrite(BAR5, LOW); break; case 6: digitalWrite(BAR6, LOW); break; case 7: digitalWrite(BAR7, LOW); break; case 8: digitalWrite(BAR8, LOW); break; case 9: digitalWrite(BAR9, LOW); break; case 10: digitalWrite(BAR10, LOW); break; } } void feuerled() { Serial.print("feuer modus: "); if (redledcounter < 9) // es sind noch nicht alle 10 LED's an { redledcounter++; digitalWrite(RedLedclk, HIGH); //Clock für Lauflicht an delay(blueledspeed); digitalWrite(RedLedclk, LOW); //Clock f+r Lauflicht aus feuerled (); } else { redledcounter = 0; Serial.print("feuer modus ende: "); } } void SelectorPosition(){ switch (buttonPushCounter) { case 1: // play file 009.mp3 -- e11 Blaster sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x09); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(200); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; case 2: // play file 004.mp3 i-- alien mg 4 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x04); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 30; for (int i=0; i <= 5; i++){ blueledspeed = blueledspeed + 10; feuerled(); delay(100); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 3: // play file 005.mp3 -- MG42 3 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x05); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 20; for (int i=0; i <= 7; i++){ feuerled(); delay(100); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 4: // play file 006.mp3 -- Alienlaser 2 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x06); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 40; for (int i=0; i <= 3; i++){ feuerled(); blueledspeed = blueledspeed - 10; delay(300); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 5: // play file 007.mp3 -- Laser 1 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x07); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(1000); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; case 6: // play file 008.mp3 -- Shotgun 1 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x08); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(300); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; } }
  12. And here the Code for the Arduino //MAKE SURE TO USE 10K Ohm PULL DOWN RESISTORS FOR SWITCH AND SELECTOR BUTTON // folder advert01 -- Schusssound // Sounds 0-5: SchussSound // advert02 -- Blastersound // Sound 1 Blasterstarten // Sound 2 Sound für Auswahl Selector Button // Sound 3 batterie leer Sound abspielen // Sound 4 reload Sound abspielen #include <Arduino.h> // MP3 player // TX --> int dataPin = 1; // The pin number of the data pin. //int busyPin = 4; // The pin number of the busy pin. //int resetPin = 3; // The pin number of the reset pin. // Buttons const int buttonPin = 4; // the pin that the SELECTOR pushbutton is attached to const int reloadPin = 5; // the pin that the reload is attached to const int triggerPin = 6; // the pin that the Fire is attached to //LEDS const int BAR1 = 7; // the pin that the BAR LED is attached to const int BAR2 = 8; // the pin that the BAR LED is attached to const int BAR3 = 9; // the pin that the BAR LED is attached to const int BAR4 = 10; // the pin that the BAR LED is attached to const int BAR5 = 11; // the pin that the BAR LED is attached to const int BAR6 = 14; const int BAR7 = 15; const int BAR8 = 16; const int BAR9 = 17; const int BAR10 = 18; const int scope = 19; const int RedLedreset = 13;// RED FIRE LED reset const int RedLedclk = 12; // RED FIRE LED clock // Variables will change: int buttonPushCounter = 1; // counter for the number of SELECTOR button presses int buttonState = 0; // current state of the SELECTOR button int lastButtonState = 0; // previous state of the button int triggerState = 0; // current state of the Trigger int lastTriggerState = 0; // previous state of the Trigger int triggerCounter = 0; // counter for the number of fire Button presses int reloadState = 0; // current state of the reload int lastreloadState = 0; // previous state of the reload int redledcounter = 0; // counter for the 10 fire LED's int blueledspeed = 50; // Lauflicht Geschwindigkeit long lastDebounceTime = 0; // the last time the output pin was toggled long lastscopeTime = 0; // the last time the output pin was toggled long debounceDelay = 200; // the debounce time, increase if the output flickers long haltezeit = 3000; // wie lange muss man die Taste drücken int scopestate = 0; void setup() { // initialize the SELECTOR and Trigger button pins as a inputs: pinMode(buttonPin, INPUT); pinMode(triggerPin, INPUT); pinMode(reloadPin, INPUT); // initialize the Barrel LED's as an outputs: pinMode(RedLedreset, OUTPUT); pinMode(RedLedclk, OUTPUT); pinMode(BAR1, OUTPUT); pinMode(BAR2, OUTPUT); pinMode(BAR3, OUTPUT); pinMode(BAR4, OUTPUT); pinMode(BAR5, OUTPUT); pinMode(BAR6, OUTPUT); pinMode(BAR7, OUTPUT); pinMode(BAR8, OUTPUT); pinMode(BAR9, OUTPUT); pinMode(BAR10, OUTPUT); pinMode(scope, OUTPUT); // initialize serial communication: Serial.begin(9600); // Volume setting Serial.write(0x7E); // startcode Serial.write(0x03); // Datalength Serial.write(0xA7); // Adjuste Volume Serial.write(0x1F); // volume 0-31 Serial.write(0x7E); // Endcode // set playing mode Serial.write(0x7E); // startcode Serial.write(0x03); // Datalength Serial.write(0xA9); // Command Serial.write(0x00); // single and no cycle Serial.write(0x7E); // Endcode delay(50); // pause to wait mp3 start // LED initialisieren digitalWrite(RedLedclk, LOW); digitalWrite(RedLedreset, HIGH); digitalWrite(RedLedreset, LOW); digitalWrite(scope, LOW); //digitalWrite(RedLedclk, LOW); digitalWrite(BAR10, HIGH); delay(300); digitalWrite(BAR9, HIGH); delay(300); digitalWrite(BAR8, HIGH); delay(300); digitalWrite(BAR7, HIGH); delay(300); digitalWrite(BAR6, HIGH); delay(300); digitalWrite(BAR5, HIGH); delay(300); digitalWrite(BAR4, HIGH); delay(300); digitalWrite(BAR3, HIGH); delay(300); digitalWrite(BAR2, HIGH); delay(300); digitalWrite(BAR1, HIGH); // play file 001.mp3 -- Start sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Command Serial.write(0x00); // High byte Serial.write(0x01); // low byte Serial.write(0x7E); // Endcode delay(1000); // pause to wait mp3 start } void loop() { // read the pushbutton input pin: buttonState = digitalRead(buttonPin); triggerState = digitalRead(triggerPin); reloadState = digitalRead(reloadPin); // compare the buttonState to its previous state if (buttonState != lastButtonState && millis() - lastscopeTime > debounceDelay) { // if the state has changed if (buttonState == LOW && millis()- lastscopeTime > haltezeit) { if (scopestate == 0) { digitalWrite(scope, HIGH); scopestate = 1; Serial.print("Selector Button scope on: "); // play file 011.mp3 -- end fx Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x0B); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } else { digitalWrite(scope, LOW); scopestate = 0; // play file 011.mp3 -- end fx Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x0B); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } } if (buttonState == LOW && millis() - lastscopeTime < haltezeit) { // if the current state is LOW then the button // went from off to on: Serial.println("Selector Button Pushed"); // play file 002.mp3 -- select sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x02); // low byte Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start if (buttonPushCounter < 6) // Anzahl der Sounds { buttonPushCounter++; Serial.print("Selector Button State1: "); Serial.println(buttonPushCounter); } else buttonPushCounter = 1; } else { } lastscopeTime = millis(); } // compare the triggerState to its previous state if (triggerState != lastTriggerState && millis() - lastDebounceTime > debounceDelay) { // if the state has changed, do something if (triggerState == HIGH) { Serial.println("Trigger Pushed"); Serial.print("Selector Button State: "); Serial.println(buttonPushCounter); lastDebounceTime = millis(); if (triggerCounter < 10) // es wurde noch nicht 10x geschossen { triggerCounter++; SelectorPosition(); // LED-BAR runterschalten LEDBar (); } else { // play file 003.mp3 -- batterie leer sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // command Serial.write((byte)0x00); // High byte Serial.write(0x03); // low byte Serial.write(0x7E); // Endcode delay(50); // pause to play mp3 } } else { } } // compare the reloadState to its previous state if (reloadState != lastreloadState && millis() - lastDebounceTime > debounceDelay) { // if the state has changed, do something if (reloadState == HIGH) { triggerCounter = 0; lastDebounceTime = millis(); Serial.print("reload Botton: "); // play file 010.mp3 -- minigunstart 4sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x0A); // Play Serial.write(0x7E); // Endcode delay(50); // pause to wait mp3 start //LED-BAR wieder ganz einschalten digitalWrite(BAR10, HIGH); delay(200); digitalWrite(BAR10, LOW); delay(200); digitalWrite(BAR10, HIGH); delay(200); digitalWrite(BAR9, HIGH); delay(200); digitalWrite(BAR9, LOW); delay(200); digitalWrite(BAR9, HIGH); delay(200); digitalWrite(BAR8, HIGH); delay(200); digitalWrite(BAR8, LOW); delay(200); digitalWrite(BAR8, HIGH); delay(200); digitalWrite(BAR7, HIGH); delay(200); digitalWrite(BAR6, HIGH); delay(200); digitalWrite(BAR5, HIGH); delay(200); digitalWrite(BAR4, HIGH); delay(200); digitalWrite(BAR3, HIGH); delay(200); digitalWrite(BAR2, HIGH); delay(200); digitalWrite(BAR1, HIGH); } else { } } // save the current state as the last state, //for next time through the loop lastButtonState = buttonState; lastTriggerState = triggerState; lastreloadState = reloadState; } void LEDBar() { // LED-Bar runterschalten nach Schuss switch (triggerCounter){ case 1: digitalWrite(BAR1, LOW); break; case 2: digitalWrite(BAR2, LOW); break; case 3: digitalWrite(BAR3, LOW); break; case 4: digitalWrite(BAR4, LOW); break; case 5: digitalWrite(BAR5, LOW); break; case 6: digitalWrite(BAR6, LOW); break; case 7: digitalWrite(BAR7, LOW); break; case 8: digitalWrite(BAR8, LOW); break; case 9: digitalWrite(BAR9, LOW); break; case 10: digitalWrite(BAR10, LOW); break; } } void feuerled() { Serial.print("feuer modus: "); if (redledcounter < 9) // es sind noch nicht alle 10 LED's an { redledcounter++; digitalWrite(RedLedclk, HIGH); //Clock für Lauflicht an delay(blueledspeed); digitalWrite(RedLedclk, LOW); //Clock f+r Lauflicht aus feuerled (); } else { redledcounter = 0; Serial.print("feuer modus ende: "); } } void SelectorPosition(){ switch (buttonPushCounter) { case 1: // play file 009.mp3 -- e11 Blaster sound Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x09); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(200); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; case 2: // play file 004.mp3 i-- alien mg 4 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x04); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 30; for (int i=0; i <= 5; i++){ blueledspeed = blueledspeed + 10; feuerled(); delay(100); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 3: // play file 005.mp3 -- MG42 3 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x05); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 20; for (int i=0; i <= 7; i++){ feuerled(); delay(100); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 4: // play file 006.mp3 -- Alienlaser 2 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x06); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 40; for (int i=0; i <= 3; i++){ feuerled(); blueledspeed = blueledspeed - 10; delay(300); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED } break; case 5: // play file 007.mp3 -- Laser 1 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x07); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(1000); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; case 6: // play file 008.mp3 -- Shotgun 1 Sek Serial.write(0x7E); // Startcode Serial.write(0x04); // Datalength Serial.write(0xA0); // Play Serial.write((byte)0x00); // High byte Serial.write(0x08); // Play Serial.write(0x7E); // Endcode delay(30); // pause to wait mp3 start blueledspeed = 50; feuerled(); delay(300); // so lange bleibt die rote LED an digitalWrite(RedLedreset, HIGH); //Turns off Red LED digitalWrite(RedLedreset, LOW); //Turns off Red LED break; } }
  13. As i wrote the electronic is ready here the pics where i installed the Arduino and the MP3 player Parts of the counter Mounting them together and in the counter the MP3 player is in the magazin here it look good but the other side !! uhhhhhh Evreything mounted and glued and screwed together. Only little things to to And if you want to see how the blaster works with light and sound here a Video i made. I have no idea how to play the video here in this post so here the download link: VIDEO
  14. Hi Chivo that's a good idea pressing the button longer to get the first sound. I implemented this feature to switch the LED in may scope on and off with the sound selector button. So i will implement this on my realod button. Press it short < 2 sec then reload press lond >3 Sec go to the first sound. Thanks for the idea
  15. haui

    Ebay helmet

    Some infos about this helmet and his producer ?? ebay LINK and another one ebay link
  16. New pics from tatooine http://www.tmz.com/2014/06/02/star-wars-episode-7-set-photos-secret-pics-new-creature/
  17. Ok my electronic is now working with all features i want. Here the layout. Download as PDF I use 4 AAA batteries and an DC-DC converter to get stable 5V Pressing the Sound-Selector Button longer than 3 Seconds turns the Scope-LED on / Off Pressing the Sound-Selector Button shorter than 3 Seconds selects one of the blaster sound, at the Moment i have 6 diffent (e11, MG42, Laser, Alien.Laser MG, Shotgun, Rifle) Pressing the Fire button plays the sound and the 9 blue leds "run" throuh the gun then the RED LED flashes. The 10 LED shotcounter decreases . When you have shot 10 times and all 10 LED from the counter are off you get a warning sound and have to press the reload button.
  18. Thanks for the tip i made a new one last evening
  19. Juhu i waited 6 weeks for my MP3 modul from china but at the weekend it arrived and it works great. i use this one: WT5001M02-28P U-disk audio player SD card voice module MP3 Sound Here the description of the modul and everything works without problem :-) WT5001M02-28P is a support TF card and SPI-FLASH MP3 player as a storage mediummodule, supports wav and mp3 files,professional sound quality, built-watt amplifier;can copy files with the downloaded online and offline TF card;RS232 serial control, support from the expansion of the U-disk playback, has aunique music into the player. Can be flexibly usedin a variety of applications for the voice to explainthe class. Product Features: High-quality audio output, can access 1W 8Ω speaker; With the BUSY output; Support wav, mp3 format file; With real-time clock and calendar clock module function; SPI interface, SPI-FLASH download; An ADC key interface, support for MP3 function keys of the five criteria; With a special function keys, play the next songPress once to achieve, and the song cycletracks, long press to copy the contents of the TF card to FLASH; Supports RS232 communication can becontrolled through the serial port or analog serial; With a TF card socket, support TF card to play; With a USB interface pins, support U disk player; Support off-line copies of the content of the TFcard or U disk to the SPI-FLASH, copy by setiSound.mp3 file to change the power-play mode; Control playback, rapid response, and better thansimilar products; Long time stability, strong anti-interference ability. Module Model:WT5001M02-28P Capacity:SPI-FLASH: 4MB ~ 64MB SPI-FLASH: 4MB ~ 64MB TF card: 128MB to 32GB 3.3V-5.2V 36.1mm * 19.7mm I will make a small movie this evening and some photos
  20. I used this one : WT5001M02-28P U-disk audio player SD card voice module MP3 Sound http://i.ebayimg.com/00/s/NjAwWDYwMA==/z/UXEAAOxyuGFR0A2y/$T2eC16RHJG8FGrlqhTwmBR0!2yuo3g~~60_12.JPG Product Features: High-quality audio output, can access 1W 8Ω speaker; With the BUSY output; Support wav, mp3 format file; SPI interface, SPI-FLASH download; An ADC key interface, support for MP3 function keys of the five criteria; With a special function keys, play the next songPress once to achieve, and the song cycletracks, long press to copy the contents of the TF card to FLASH; Supports RS232 communication can becontrolled through the serial port or analog serial; With a TF card socket, support TF card to play; With a USB interface pins, support U disk player; Support off-line copies of the content of the TFcard or U disk to the SPI-FLASH, copy by setiSound.mp3 file to change the power-play mode; Control playback, rapid response, and better thansimilar products; Long time stability, strong anti-interference ability. Module Model:WT5001M02-28P Capacity:SPI-FLASH: 4MB ~ 64MB SPI-FLASH: 4MB ~ 64MB TF card: 128MB to 32GB 3.3V-5.2V 36.1mm * 19.7mm It works great with the arduino and has a good sound
  21. Thanks for that great tip i will try it at my grip this week.
×
×
  • Create New...