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).

Difference between Bootloader & Firmware Update

Updating the bootloader and updating the firmware in a microcontroller are two distinct processes, each serving different purposes and involving different steps. Here's a breakdown of the differences: Bootloader Update Purpose : The bootloader is a small program that runs before the main application. It is responsible for initializing the microcontroller and loading the main application firmware. Updating the bootloader might be necessary to add new features, fix bugs, or improve the boot process.   Process : 1.       Enter Bootloader Mode : To update the bootloader, the microcontroller must be put into a special mode. This often involves setting specific pins, pressing buttons, or using a specific command through an existing firmware interface. 2.      Communication Interface : The bootloader update typically uses a specific communication interface such as UART, SPI, I2C, or USB. 3.      Programming Tool : A dedicated programming tool or soft