0

$USD

$USD
PROJECTS micro:bit

micro:bit Missile Launcher

DFRobot Jun 11 2018 2306



Part needed

2 x 9G servo motor;
1 x micro:bit;
1 x micro:mate(breakout board);
1 x Pan tilt kit;
1 x Dual-axis XY Joystick Module;
1 x 2n2222 transistor;
1 x WLtoys Missile shooter;
Dupont cables;

Connections


Why I use the transistor?

The digit write signal is not strong enough to activate the trigger of the missile launcher.

How does it work?

The yellow and white wires are connected to the DC motor behind the turret. As the motor rotates, it will trigger the mechanism to release a missile. The missile is mounted onto a pan and tilt servo mount. The joystick position is mapped to the turning degrees of the servo.


The code

When running the program, you will find that when the power is supplied through the USB of the micro: bit, the power is not strong enough to drive the 2 servos. Just connect the power to the vin of the micro: mate instead.


Optional

Use the button of the joystick to fire instead of button A of the micro: bit. The connections will remain the same except we need to connect another cable from joystick sw to micro: mate pin 12 (green).



Check youtube video here.

*Project created by Mark NG.