0% found this document useful (0 votes)
42 views

5 Transistor Circuit

A transistor circuit using an Arduino is implemented to blink an LED. The circuit connects the LED cathode to ground through a 470 ohm resistor, with the anode connected to the Arduino's digital pin 4. A program is written to set pin 4 as an output and toggle it high and low in a loop, turning the LED on and off. Changing the delay values controls the duration that the LED remains on or off during each blink cycle.

Uploaded by

Jordan Gates
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

5 Transistor Circuit

A transistor circuit using an Arduino is implemented to blink an LED. The circuit connects the LED cathode to ground through a 470 ohm resistor, with the anode connected to the Arduino's digital pin 4. A program is written to set pin 4 as an output and toggle it high and low in a loop, turning the LED on and off. Changing the delay values controls the duration that the LED remains on or off during each blink cycle.

Uploaded by

Jordan Gates
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Implementation of a Transistor Circuit

TEAMS OF 2: A transistor is a semiconductor device that can be used as an “electrical switch” or


as an amplifier. We will learn more about how transistors work later in the class. Implement the
following circuit on your Arduino:
5V

470Ω

C
digital
output
B
Compare the pin locations of C, B
and E to the circuit diagram.
E
Be sure to point the SHORT leg of
the LED toward ground

Now, write a simple program to void setup() {


make the LED blink on and off. pinMode(4,OUTPUT);
}
To do this, make pin 4 go HIGH
and LOW in an infinite loop, and void loop() {
you choose the duration of the digitalWrite(4, HIGH);
blinks. delay(1000);
digitalWrite(4, LOW);
delay(1000);
}

Question: What is happening when you change the values of the pause command??????

Answer: The transistor is SWITCHING the LED on and off.

We will use transistors to activate a relays for switching solenoid valves and our fishtank heater
on and off. Now, let’s learn about how transistors work and more about semiconductors in
general.

You might also like