Arduino Controls an Infrared Helicopter

Not rated 9,121

Circuit Image

The 2N3904 is an NPN transistor. When observing the flat face of the transistor, the left lead is the Emitter (pin 1 in the schematic), the middle lead is the Base (pin 2 in the schematic), and the right lead is the Collector (pin 3 in the schematic). One end of a 50 Ohm resistor is connected to the +5V pin on the Arduino. Alternatively, a larger resistor, such as a 100 Ohm resistor, can be used, connecting the other end to the Vin pin on the Arduino. This resistor is necessary to prevent damage to the IR LED. The IR LED can only handle a maximum current of 100 mA. Therefore, when using a 5V supply to drive the IR LED, it is essential to limit the current through the LED to less than 100 mA. This requirement leads to the calculation of resistance as R = 5V / 100mA = 50 Ohm. The nearest commonly available resistor is 47 Ohm.

The 2N3904 NPN transistor is a widely used component in electronic circuits, particularly for switching and amplification applications. In this configuration, it serves as a switch to control the operation of an infrared (IR) LED. The circuit operates with a +5V supply from an Arduino board, which is a common platform for prototyping electronic projects.

The Emitter (pin 1) is connected to ground, while the Base (pin 2) is driven by a control signal from the Arduino, allowing it to turn the transistor on and off. When the Base receives a high signal (typically 5V), it allows current to flow from the Collector (pin 3) to the Emitter, thus powering the IR LED connected in series with the 50 Ohm resistor.

The choice of a 50 Ohm resistor is critical to protect the IR LED from excessive current. Given that the IR LED has a maximum forward current rating of 100 mA, the resistor ensures that the current is limited to a safe level when the LED is powered. The calculation for the resistor value, R = V / I, confirms that a 50 Ohm resistor will limit the current to 100 mA when a 5V supply is applied. However, a 47 Ohm resistor, which is more readily available, can also be used as a substitute, providing similar current limiting characteristics while remaining within safe operational limits for the IR LED.

In summary, the circuit effectively utilizes the 2N3904 transistor to control an IR LED with appropriate current limiting, ensuring reliable operation and protection for the LED component.2N3904 is the NPN transistor. Looking at the flat face, the left lead is Emitter (pin 1 in schematic), the middle lead is Base (pin 2 in schematic), the right lead is Collector (pin 3 in schematic). Another end of 50 Ohm resistor to +5v pin on Arduino. (An alternative would be use a bigger resistor, say 100 Ohm, to replace the 50 Ohm one, and conn ect the other end to Vin Pin on Arduino. ) This resistor is to make sure we won`t burn the IR LED. The IR LED can only accept a maximum of 100 mA current, so if we use 5V to drive the IR LED, we need to make sure the current running through the LED is limited to less than 100 mA, which yields the resistance R=5V/100mA=50 Ohm. The nearest commonly-found resistor is 47 Ohm. 🔗 External reference