Electrical Subsystem


Overview

We designed our circuitry to be simple, cost efficient, and easily replicable. Each robot consists of an IR LED, a visible laser pointer, two IR sensors, a bluetooth module, and an Arduino Uno r3 microprocessor. The IR LEDs and sensors interface with each other and the Arduino to make the robot shoot and react to being shot, the visbile laser helps the players see their robot shooting its laser, and the bluetooth module receives signals from the app and communicates them to the Arduino. Aside from the Arduino, the electronics per robot cost about $20. On top of this, we used an Adafruit motor shield to communicate commands from the Arduino to our motors. We also used nickel metal hydride batteries to provide additional current required by the visible lasers. Altogether, the total cost of electronics per robot is around $60-80, depending on where parts are purchased. Overall, it is a simple circuit that is explained below, and links to data sheets for the IR LEDs, IR sensors, and bluetooth module are included here as well.

Circuit

As shown in the schematic below, the Arduino provides ground for all five components included in the diagram, and it supplied 5V of supply current for the sensors and the bluetooth module. The laser and IR LED receive power from pins 8 and 3, respectively, such that they turn on when a user wants the robot to activate its laser. Both of these components also require a small resistor, 50 Ohms and 200 Ohms, respectively, to decrease the voltage going to the laser and LED to prevent electrical damage to the parts. The IR sensors send signals to the Arduino's analog pins 2 and 4 so it can process when the robot has been hit by a competitor's laser. The bluetooth module connects its TX and RX pins to the Arduino's pins 10 and 11 to ensure that the Arduino is receiving the voice commands coming from the app.

Components

Below are part numbers linked to data sheets for the IR LED, IR sensor, and Bluetooth module that we used. These parts can be replaced for others, but the system may need to be adjusted accordingly.

LTE-4208

TSOP-4830

HC-05 Bluetooth Module

Progression

The biggest change in our electrical sytsem throughout this project was switching from regular AA batteries to nickel metal hydride (NMH) batteries. The main difference between the two are that throughout their lifetimes, regular AAs discharge from 1.5V to 1.0V, while NMH batteries supply a relatively constant 1.2V for the duration of their lives, and NMH batteries can provide more current than regular AAs. When we began integrating the visible lasers to the circuit, most of the components stopped working. All components worked individually but through testing we realized that when we added the visible lasers, there wasn't enough current supply to power everything. Switching to NMH batteries swiftly solved this issue. Aside from this battery change, the circuit remained relatively unchanged throughout the project due to its simplistic design and effective functionality.