Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Components and supplies

ASMD Shock Rifle – DIY Arduino Nerf Launcher
Arduino UNO
×1
DFRobot io shield
×1
DFRobot oled
×1
DFRobot battery holder
×1
DFRobot mp3 player
×1
DFRobot light disc
×1
Pimoroni resistor set
×1
push button
×1
Pimoroni wire
×1
ASMD Shock Rifle – DIY Arduino Nerf Launcher
Speaker: 3W, 4 ohms
×1
veroboard
×1
nerf retaliator
×1
nerf barrel
×1
micro sd
×1
Acrylic rods
×1
ASMD Shock Rifle – DIY Arduino Nerf Launcher
AA Batteries
×1

Necessary tools and machines

ASMD Shock Rifle – DIY Arduino Nerf Launcher
Soldering iron (generic)
ASMD Shock Rifle – DIY Arduino Nerf Launcher
Hot glue gun (generic)

About this project

Liandri

First off thanks to DFRobot for the parts for this project!

I love Unreal Tournament (UT) and I definitely love the ASMD Shock Rifle in the games weapon roster – so I thought why not make one?

Also because the new UT is now no longer in development (EPIC, please please please resume this), I needed something to sate my need for UT.

From the above link – it’s basically a plasma rifle that fires purple beams, with a secondary fire of a purple orb that can also be shot with a beam to make a tertiary attack.

After some experience with SimplePlastics in my Arduino Lightsaber project I was sold on the idea of them – although I realised that instead of a tube I should have used a solid rod for the project in order to propagate the light more – I realised this plastic would also be perfect for creating a real life Shock Rifle!

So I pitched the idea to DFRobot and they agreed and then I ordered the plastics from SimplyPlastics and got to work.

Key Goals:

  • Make a real life ASMD Shock Rifle.
  • Make sure it lights up and makes noise from the game (both firing modes) as well as a screen telling the user what mode is currently on.

Parts

  • Arduino Uno
  • Gravity IO Shield
  • OLED Screen
  • Battery Holder
  • DFPlayer
  • Light Disc (x2)
  • Resistor Kit
  • Push Button (x2)
  • Wire
  • Speaker
  • Veroboard
  • Nerf Retaliator
  • Nerf Barrel
  • 4GB Micro SD
  • Acrylic Rods
  • AA Battery (x6)

Construction

ASMD Shock Rifle – DIY Arduino Nerf Launcher

ASMD Shock Rifle – DIY Arduino Nerf Launcher

First up is taking apart an old broken Nerf Retaliator I have laying around:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

And clearing out the inner workings to make room for the tech:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

As seen above I’ve also clipped some of the trimmings off to make extra room, as well as cut a hole in the lower barrel for the other rod. The 25mm rod fitted fine into the main barrel, I just had to bend some plastic back.

Then onto connecting up the IO Shield to the UNO:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

And following the construction instructions from DFRobot for the Light Disc’s the OLED and the MP3 Module / Speaker:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

Things are made a lot easier with the IO Shield – especially of course the Gravity based products which are basically plug-n-play.

Time for a quick lighting test with the plastic rods:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Looking good.

Next up was making 2 buttons to connect to the Arduino – one to control the firing and a second to change mode to ‘Instagib mode’ (in game this is where the rifle is red and deals instant kills).

The two buttons can be made using the methods from my Arduino Lightsaber project.

ASMD Shock Rifle – DIY Arduino Nerf Launcher

I then attached the OLED to the stock of the Nerf and put the wiring through the back bit that it clips onto, which itself is screwed onto the back of the Nerf:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

ASMD Shock Rifle – DIY Arduino Nerf Launcher

And then glued on the battery box – I also glued in the speaker onto the other side:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Then onto gluing the LED Discs in place where the rod will sit:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

After a test making sure the gun would still close up I glued in the UNO itself into the magwell and gave it a quick visual test:

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Then the ultra tricky part is gluing in the buttons for the Mode switch and Trigger – of which I will be using the mag-release and trigger for each respectively:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

After pouring in about 467 sticks of hot glue to hold in the plastic rods and screwing both side of the Nerf together, another functionality and visual test:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

At this point I put on this and ran around my flat with it – it was awesome.

The final bit is putting the finishing barrel onto the prime rod:

ASMD Shock Rifle – DIY Arduino Nerf Launcher
ASMD Shock Rifle – DIY Arduino Nerf Launcher

Oh boy.

Code

Here is the code nothing too much; mainly helped with examples from the above wiki links over at DFRobot.

I added in a hold button timer in order to get the two firing modes from the rifle, press to get the standard beam sound, hold for a couple of seconds to get the shock core sound – the sounds are also on my GitHub linked above.

With the code uploaded and working time to have some fun with it.

DM-Deck16

Running around my flat like a total nerd as usual, this project was a success for me.

As you can see the firing mechanism is a bit clunky – this is due to the sheer amount of stuff in the frame making the button tricky to press.

The mode switcher works perfectly – works simply by moving the mag-release button back a bit.

The OLED also works perfectly for showing the user what mode the rifle is in.

ASMD Shock Rifle – DIY Arduino Nerf Launcher

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Conclusion

This project was insanely fun. I’m really happy with the aesthetic of it, it’s kind of an amalgamation of all the Rifles from all the games into one – you can see them all here.

It also sounds great.

Building it was tricky but most of the messy wiring and stuff was kept hidden inside so I’m happy – the only issue is I probably made the barrel a bit too long, but oh well it still looks awesome.

Are you a fan of Unreal Tournament? What did you think?

Feel free to let me know.

And see you next time.

ASMD Shock Rifle – DIY Arduino Nerf Launcher

Code

Github
https://github.com/LordofBone/ASMDShockRiflehttps://github.com/LordofBone/ASMDShockRifle

Manufacturing process

  1. Emergency Response: How to Assist an Electrical Shock Victim
  2. External Defibrillator: History, Design, and Manufacturing
  3. Arduino Nano Bundle: CrazyCircuits, DFRobot Sensors & Tools – Build Projects with Confidence
  4. Build Your Own Universal CNC Machine – Complete DIY Guide
  5. How Much Do Shock Absorbers Cost? A Complete Pricing Guide
  6. Adjustable Shock Absorbers: Enhancing Ride Height and Performance
  7. Industrial Shock Absorbers: Types, Applications, and Selection Guide
  8. Understanding Spring Shock Absorbers: Function, Design, and Benefits
  9. Understanding Shock Absorber Struts: Function, Placement, and Maintenance
  10. How Shock Absorbers Work: Enhancing Vehicle Balance and Comfort