lobidental.blogg.se

Arduino photo gun
Arduino photo gun













arduino photo gun
  1. ARDUINO PHOTO GUN UPGRADE
  2. ARDUINO PHOTO GUN FULL
  3. ARDUINO PHOTO GUN CODE

It has 3 contacts, though only 2 are used. SW safety switch is simply a 2 position slider switch. They can be found on Ebay, Aliexpress etc. These solenoids are relatively cheap and generic.

ARDUINO PHOTO GUN UPGRADE

Upgrade it's spring to 0.9mm diameter wire, 14mmOD & 40mm length to prevent jams.īecause the Solenoid is powered on momentarily as opposed to constantly, it should only get mildly warm ~40☌ and therefore not require cooling.

ARDUINO PHOTO GUN FULL

Shorter strokes will not push the full length type Nerf darts far enough. All you want is a 12V rated Solenoid with 35mm stroke length. A heat sink is not necessary in this case. The other reason is the load (Solenoid) is only powered on momentarily before switching off, instead of powered on constantly. This is achieved because the MOSFET is rated for 30A, though there is only ~8A of load being pulled through it. Temperature of the MOSFET is less than 35☌ in this case. This MOSFET is rated at 60V max which is plenty of headroom. Voltage though the MOSFET is 12.6V to power the solenoid. This project uses a 30A max rated MOSFET. Make sure the MOSFET has a higher max current rating. For this to work it needs to be a Logic Level MOSFET.Ĭurrent draw from Solenoid is rated at 8A. Arduino's put out 5V, and the gate should be fully on at 5V. The MOSFET knows when to turn on and off because of a signal sent to the MOSFET gate pin from an Arduino output pin ( D4 in this case). It basically interrupts the ground that powers the Solenoid. The power MOSFET is used as an on / off switch for the Solenoid. Powering a 12V / 8A Solenoid straight from an Arduino will cause magic smoke (Arduino dies). (Unless you have a specific purpose for it and know what you're doing). Do NOT connect the ESC 5V Red cable to anything. If you have an ESC with BEC, connect the ground and signal cables to Arduino as shown in the schematic. Voltage rating of ESC needs to be at least 12.6V (3s Lipo).ĮSC does not need a built-in BEC. Motor in this case was measured at 7A each. Otherwise the back EMF from two motors connected to one ESC will mess up the ESC timing and damage said ESC and / or motors.Ĭurrent rating of ESC needs to be higher than current draw of motor. These basically control the power of the brushless motors.īrushless motors don't work with brushed ESCs, get brushless. I only run the motors at half throttle and darts fly 25m / 82ft! RPM of brushless motors should be ~25k and are determined by kV rating x Voltage. This project uses 12.6V supply voltage x measured 7A motor draw = ~80W each. Voltages of motors should handle at least 12.6V (3s lipo).Ĭurrent of motor should not exceed Brushless ESC current rating. This makes it easy to 3D print flywheels to go over the motor. Outrunner motors also have a portion of the external can rotate with the shaft. You want an outrunner motor since they are flatter in shape so you don't have ugly cans sticking out the side of your Nerf blaster. There are inrunner and outrunner brushless motors. I'm not going to explain how brushless differs from brushed motors here, you can search for some great explanations.

ARDUINO PHOTO GUN CODE

Refer to Code section on explanation of how the code works.

arduino photo gun

Refer to schematic for the below terminologies MS1, C2 etc. This should work with a Uno and others too. An Arduino Nano is used because of it's small size. The schematic (refer schematic section) was drawn to illustrate how everything is connected. If you want to control a Brushless ESC, Brushless Motors and Solenoid with Arduino for Nerf Blasters, this guide is for you!ĬAD Design, 3D Printing etc are explained here: The mechanical design and 3D printing is advanced though. I labelled this 'easy' as the Arduino portion is quite simple. This write up will be focused on the Arduino and electrica circuit aspect of this project (since this is an Arduino site). Relays and time delays etc would be too cumbersome and so an Arduino was a more practical solution. To achieve this functionality, It needed to control a solenoid and ESCs for brushless motors. So I designed it as a functional Nerf Blaster. To create such a complex object, a 3D printer was used to achieve the aesthetics and mechanical fitment of parts.Ī static object would be too easy though, I wanted a challenge. My latest and greatest creation is the Kang Tao, a smart gun featured in the upcoming video game Cyberpunk 2077. Bringing a virtual object into reality, then sharing my techniques with those who have similar interests. I've always enjoyed building and creating things, so I've decided to created props and replicas from objects found within movies and video games.















Arduino photo gun