Team 21 - Electronics and Software

The main electronics for this project were a motor that used a 12V power supply to output 100 rpm, an Arduino connected to a motor shield, and a button. We used a modified code of the first joystick-controlled car robot we made. Whenever the joystick moved up in the Y-axis the motor would move forward, and if it went into the negative Y-axis it would go backward. With this code, we could manually move the gears to their starting positions. We also implemented these movements into a continuous code. With the press of the button, the motor would move forwards, and if the joystick was pushed into the positive X-axis, the motor would go in reverse. These last two inputs would last for a certain amount of time, allowing the mask to open and close with the press of a button.