Electronic Project 37: A simple guide on how to make a control element for high voltage or high current loads using Power Transistor and Potentiometer

in utopian-io •  7 years ago  (edited)

What Will I Learn?

At the end of this tutorial:

♦ The readers will be able to create a controlling circuit for high voltage or high current loads like DC motors and incandescent lamp.

♦ The readers will be able to know how the circuit works.

♦ Learn to apply the circuit in the future electronic projects

Introduction

In this tutorial, we will create an electronic circuit that will control the high voltage or high current loads using the power transistor and a potentiometer. The potentiometer will control the current flow at the output of our microcontroller while the power transistor will provide the high voltage or high current output that is connected to the dc motor and incandescent lamp.

image.png

You can read more about Power Semiconductive Devices here

Requirements

Electronic Components

♦ Arduino Uno

♦ NPN Power Transistor

♦ LED

♦ Potentiometer

♦ DC motor

♦ Resistor

♦ Breadboard

♦ Connecting wires

Software

♦ Fritzing application

Difficulty

♦ Intermediate

Tutorial Contents

Using the fritzing software, we will create our circuit diagram, arduino codes and prototype using the breadboard

Part I. Schematic Diagram

So first let us construct our circuit diagram.

image.png

Select the electronic components needed for the circuit in the fritzing library. We need 1 arduino uno, 1 NPN power transistor, 6 resistors, 1 DC motor, 1 potentiometer and 3 LEDs.

image.png

Arrange the components before constructing the circuit.
In arranging the components, place all the components for the input side (left side) of the arduino and the components for the output side (right side).

At the input side of our circuit is the potentiometer that serves as the controlling element of the microcontroller’s output signal. While at the output side of our circuit, we have the power amplifier circuit with the power transistor and the external load circuit that is compose of the dc motor and the three leds.

image.png

Now let us construct our circuit diagram.
The potentiometer has three pins, one pin for the source voltage from the microcontroller, one for the input pin of the microcontroller (we use pin 1) and one for the ground terminal as shown in the figure below.

image.png

At the output side of our circuit, we have one output signal from pin 13 of the microcontroller that will be connected to the base resistor of the npn power transistor. This output signal is the triggering signal of the power transistor.

image.png

We have the high voltage or high current load circuit that is connected in series. The same current will flow through the dc motor and to the three leds.

image.png

The amplified output at the collector terminal of the power transistor will be connected to the external circuit load as the source current or voltage. It depends which source you want to use.

image.png

Now this is our final circuit diagram.

image.png

In order to control the input signal, manually adjust the potentiometer so that the input signal of the microcontroller will be limited. While at the output side, the transistor will allow us to control the circuit that’s carrying a high current or high voltage from the microcontroller. Please do extra careful when dealing this high voltage or high current loads.

image.png

When the arduino receives an input signal from the potentiometer through the pin A1, it will give an output signal in the pin 13 base from the programmed codes. This output is then fed to the base resistor of the power transistor to trigger the circuit.

image.png

Upon triggering the power transistor, it will give an amplified output signal that will drive the external load circuit. In the load circuit, you can use another source voltage that will be triggered by a relay. The dc motor and the three leds were connected in series so that same current will flow through this circuit.

image.png

Part II. Code

Now let us do programming of our Arduino uno.
Click on code to start.

image.png

The input pin for our microcontroller from the output of the potentiometer is the analog pin 1 and the output pin is 13.

int potPin = 1; //potentiometer  input pin
int resPin = 13; //output pin for our power amplifier circuit
int potValue = 0; //initial value store in the potentiometer  terminal 

image.png

void setup() {
pinMode (potPin, INPUT); //potentiometer output terminal as input value
pinMode(resPin, OUTPUT); //digital output signal to the power amplifier circuit for the external load
}

image.png

void loop(){
int potValue = analogRead(potPin); //read analog value from the potentiometer output
int resValue = map(potValue, 0 ,1023, 0, 255); //map the potentiometer value from 0 -255
digitalWrite(resPin, resValue); //give output at pin 13 to be amplified at the power amplifier circuit
}

image.png

Here are our arduino codes.

int potPin = 1; //potentiometer  input pin 
int resPin = 13; //output pin for our power amplifier circuit 
int potValue = 0; //initial value store in the potentiometer  terminal 
  void setup() { 
pinMode (potPin, INPUT); //potentiometer output terminal as input value 
pinMode(resPin, OUTPUT); //digital output signal to the power amplifier circuit for the external load 
} 
  void loop(){ 
int potValue = analogRead(potPin); //read analog value from the potentiometer output 
int resValue = map(potValue, 0 ,1023, 0, 255); //map the potentiometer value from 0 -255 
digitalWrite(resPin, resValue); //give output at pin 13 to be amplified at the power amplifier circuit 
} 

Part III. Breadboard

Click on the breadboard.

image.png

Arrange each component in the breadboard before connecting.

image.png

Now connect each component if you don’t know how to connect using breadboard just read my previous tutorial about how to construct a circuit in the breadboard

image.png

Application

The readers can create their own circuit in controlling high voltage or high current loads using power transistor like the example below.

link source

Curriculum

Here are my other tutorials for electronic projects.

ELECTRONIC PROJECTS

Tutorial 1

Tutorial 2

Tutorial 3

Tutorial 4

Tutorial 5

Tutorial 6

Tutorial 7

Tutorial 8

Tutorial 9

Tutorial 10

Tutorial 11

Tutorial 12

Tutorial 13

Tutorial 14

Tutorial 15

Tutorial 16

Tutorial 17

Tutorial 18

Tutorial 19

Tutorial 20

Tutorial 21

Tutorial 22

Tutorial 24

Tutorial 25

Tutorial 26

Tutorial 27

Tutorial 28

Tutorial 29

Tutorial 30

Tutorial 31

Tutorial 32

Tutorial 34

Tutorial 35

Tutorial 36



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution. It has been approved.

  • pls remove the philippines tag

You can contact us on Discord.
[utopian-moderator]

thanks @cha0s0000 ...done editting

Hey @rfece143 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x