Inspiration

We wanted to do something with electronics that would be fun as we had never used them before. Thats how we came up with the idea of doing something with a motorised nerf gun. The idea for the AR game came after the the briding worlds theme was announced by one of the sponsors.

What it does

We created a website that loads a phones camera and sends that feed to our local server. The server then changes the video feed into an AR game by using OpenCV to change cups into moster spawners that need to be shot by the player. The player can shoot the nerf gun through pressing a button on the phone which sends the button press to the server which then sendsit to an arduino to start the motors to shoot the gun.

How we built it

We disassembled the nerf gun, soldered and desoldered wires and connected the ardino board using cables. The code was created using python, html and javascript. We used cloudflared for the website tunnel and bought a web domain to host everything

Challenges we ran into

It took 7h to get the video feed from the phone to the server due to video input being very tough to work with as its a constant stream of information

Accomplishments that we're proud of

We have never used eletronics before as such we are very proud of being able to get the nerf gun firing through code and the wires correctly soldered

What we learned

We learnt how electronics connect to software. How video feed can be transfered wirelessly over networks and how to use OpenCV to create an AR game

What's next for Durgun

Adding more levels, enemy types and more accuracte motion tracking

Share this project:

Updates