Skip to main content

How to make USB operated light?


Material: One LED, 5mm size, one resistor of 300 Ohm, one USB Connector wire, and other tools like soldering iron, cutter, wire etc.



Steps
1-      Connect resistor one end to the longer pin(Anode) of LED with the help of solder (you can also connect them by twisting both the pins), Now we have two pins spare, one pin of resistor and another one short leg(Cathode) of LED.


2-      Now connect the resistor spare end to the red wire of USB cable, and LED's to the Black wire of USB cable. 





3-     Now connect the USB cable to Laptop or Desktop. 



Is it glowing?

Yes?

Great!

So we have glowing LED now,

but the question is, we choose the resistor of 100 Ohm, why? 

So we calculate the value.

There is a simple and most significant formula,  Ohm's Law.

According to Ohm's law
I = V/R,
R=V/I,
V= I*R

I= Current (A) (current flowing through the resistor),
V= Voltage (V) (voltage across the resistor),
R= Resistance (Ohm).

In our circuit, we know…
The voltage supply voltage = 5V.
Voltage across LED = 3V. (Normally LED 5mm runs on 3V).
Voltage dropped by resistance= 5-3=2V.
Current to be flowed through LED = 20mA = 0.020 Amp.
Resistance= ?
Resistance= V/I = 2/0.020 = 100 Ohm.

Comments

Popular posts from this blog

How to Make Automatic Room Light Controller Without Microcontroller

You must have noticed in some offices or hotels, when nobody is in gallery or washroom, the light remains OFF but when somebody enters the place, light switches ON automatically. In this post I am going to teach you how to make this circuit. Before going ahead I would like to tell you that this is VERY EASY circuit. For this circuit the material we need is… PIR Motion sensor General Purpose PCB - 5x5 cm. Transistor 2222N – 1 No. Relay 5V – 1 No. 1K/0.250W – 2 Nos. 10K/0.250W – 1 No. IN4007 – 2 Nos. LED 3mm – 1 No. Connector – 4 Nos. Few wires. Relay Circuit Concept : We can use any relay of 12V, 24V, 5V etc. but we have to consider power supply or battery we will use. Since 5V power supply is easily available and 9V battery can also be used for 5V output (after using 7805 regulator if needed). So I am using 5V relay. PIR sensor has three terminals, One for 5Vdc Second for Gnd (0V). Third for

How to drive high voltage/current load by small voltage signal from a microcontroller?

Sometimes we need to control or drive a high voltage and heavy current load by a small voltage signal. For example, if you want to control water motor with your microcontroller output. We know that microcontroller gives only 5v output which is not sufficient to drive a heavy motor. This circuit, about which this post is, is very-very useful for electronics engineer and hobbyist. So pay attention! For this circuit the material we need is… General Purpose PCB - 5x5 cm. Transistor KN 2222A (TO-92) - 1 No. Relay 5V – 1 No. 1K/0.250W – 2 Nos. 10K/0.250W – 1 No. IN4007 – 2 Nos. LED 3mm – 1 No. Connector – 4 Nos. Few wires. Tools. Concept: Weak signal triggers the transistor and transistor acts as a switch for the relay. You can use any relay of 12V, 24V, 5V etc. but we have to consider power supply or battery we will use. Since 5V power supply is easily available and 9V battery can also be used for 5V output (after using 7805 regulator if needed).

Parking Gate with Password Protected Entry | ElectroMech Lab | Arduino

Hello Friends, This project is for password/PIN protected Parking gate. This is very interesting project. I hope you like it. Material: Arduino UNO - 1 No. Servo Motor - 1 No. IR Sensor - 1 No. 4x4 Keypad - 1 No. 9V Battery - 1 No. Toy Car - As per your wish. 10 Kohm Resistor - 1 No. Sketch:  // This code is for password/PIN protected Parking Gate. #include <Keypad.h> #include <Servo.h> Servo myservo;  // create servo object to control a servo int exitSensor= 10;   // pin 10 is connected to out sensor, when vehicle is passed after toll crossing //******************************************************** keypad initialisation  ************************************ char* password = "1245"; // if this is changed then modification is needed in loop section validating the keys const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char keys[ROWS][COLS] = {       {'1', '2', '3', 'A'},   {'4', '5', '6',