Components and supplies
Brushless DC Motor
Resistor 220 ohm
Arduino Nano Every
Lipo Battery 3S 11.1-12.6V 1300mAh 25C
1N4007 – High Voltage, High Current Rated Diode
Through Hole Resistor, 150 ohm
Microswitch, Miniature
Through Hole Resistor, 4.7 kohm
Brushless ESC
Capacitor 100 µF
Linear Solenoid, 12 VDC
Resistor 10k ohm
Capacitor 100 nF
Power MOSFET N-Channel
Tools and machines
3D Printer (generic)
Project description
Code
Nerf Blaster Brushless Motor & Solenoid Arduino Code - Clark3DPR
arduino
1. When Arduino is powered on via the safety switch, it runs the arming sequence for the brushless ESC's. My ESC's take 3.7secs (3700 in the code). You may have to increase this value up to 10000 (10secs) depending on your own ESC to get it to exit safe mode. 2. Hold secondary microswitch to rev flywheels, then press or hold primary microswitch to fire. 2. Change throttle.write(92) to increase/decrease motor idling speed or turn them off. By default motors will spin at low speed to decrease spin up time. (Value depends on your motor / ESC) Change throttle.write(97) to change motor top speed and dart velocity. (Value depends on your motor / ESC) Change delay(90) and delay(100) to increase/decrease fire rate of solenoid. 4. When Microswitch is released, ESC PWM signal for flywheels & signal to MOSET gate for solenoid stops spinning/activating. 5. When ESC's lose signal from Arduino (when safety switch is on and Arduino powered off), the ESC's revert to safe mode and turn off motors.
Downloadable files
System Schematic - Clark3DPR
This is how it is all wired up. Pay close attention to diode and capacitor polarities. Drawn with AutoCAD.
System Schematic - Clark3DPR
System Schematic - Clark3DPR
This is how it is all wired up. Pay close attention to diode and capacitor polarities. Drawn with AutoCAD.
System Schematic - Clark3DPR
Comments
Only logged in users can leave comments