Project: Electronics Bash - Arduino #5 - Transistors and FETs


In this stream, we'll be looking at:

  • Using transistors and FETs, including:
    • What the heck are they?
    • How can they be used to drive: LEDs, lamps, motors, ETC
    • How to hook them up to an Arduino
  • Higher voltage inputs using resistor dividers

This is the space where I'll be posting code samples and circuit layouts sometime in advance of the stream, for those who want to follow along more directly. You can expect the code and formatting here to change up to a couple hours before the stream as the plan for the evening comes together.

Bipolar Transistors

This circuit will be used for the following code examples:

Blink

Literally just the blink example straight from the Arduino IDE:

Click here to view code on Github
This circuit will be used for the following code examples:

Blink

Literally just the blink example straight from the Arduino IDE:

Click here to view code on Github
This circuit will be used for the following code examples:

H-Bridge

This code controls the H-bridge circuit above. It will rotate the motor in each direction for 1 second in alternation.

Click here to view code on Github
This circuit will be used for the following code examples:

4 Digit 7-Segment Display

This code will drive a 4-digit 7-segment display wired (mostly) as above. Note: you can connect the PNP transistors and the current limiting resistors/cathodes to any 12 digital pins you like, but be sure to match the connections in your code. The pins in the code below do not necessarily match the diagram.

Click here to view code on Github

<< Return to all Electronics Bash Information