https://github.com/sepandhaghighi/usb-lamp
DIY USB Lamp
https://github.com/sepandhaghighi/usb-lamp
diy diy-electronics diy-project diy-solutions diy-tool electronics electronics-development electronics-projects
Last synced: about 1 month ago
JSON representation
DIY USB Lamp
- Host: GitHub
- URL: https://github.com/sepandhaghighi/usb-lamp
- Owner: sepandhaghighi
- License: cern-ohl-p-2.0
- Created: 2025-06-22T21:57:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T21:41:34.000Z (3 months ago)
- Last Synced: 2025-08-13T14:45:12.227Z (about 2 months ago)
- Topics: diy, diy-electronics, diy-project, diy-solutions, diy-tool, electronics, electronics-development, electronics-projects
- Homepage:
- Size: 707 KB
- Stars: 15
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💡 DIY USB Lamp
## 📝 Overview
A simple and customizable USB-powered LED lamp project for electronics enthusiasts, students, and makers. This guide walks you through building a USB-powered lamp from scratch using basic electronic components. The lamp runs on the standard 5V supplied by any USB port (e.g., from a computer, power bank, or wall adapter), making it a portable and efficient lighting solution.
Whether you're just getting started with electronics or looking to add a small lighting solution to your workspace, this project provides a rewarding and educational experience with minimal cost and effort.---
## 🔩 Hardware Components
| Component | Quantity | Notes |
|----------------------|----------|--------------------------------------|
| USB Type-A Male Plug | 1 | Or a USB cable for easier connection |
| LED | 1 | Choose based on your color preference|
| Resistor | 1 | See table below for suggested values |
| Switch | Optional | For manual control |
| Heat Shrink Tubing | Optional | For insulation and finish |
| Soldering Kit | - | For permanent assembly |
| Breadboard/Wires | Optional | For testing before soldering |---
## 🔌 Circuit
*Circuit Diagram*
*Circuit Schematic*
### Resistor Value Calculation
To calculate the appropriate resistor value:
$$R = \frac{V_{USB} - V_f}{I_f} = \frac{5 - V_f}{I_f}$$
Where:
- $$V_{USB}$$ = Supply voltage from the USB port (5V)
- $$V_f$$ = Forward voltage of the LED (depends on color)
- $$I_f$$ = Forward current (typically 5–20mA)Different LED colors have different forward voltage drops ($$V_f$$). Using Ohm's law, here’s a reference table for choosing resistors:
| LED Color | Approximate Vf (V) | Suggested Resistor (Ω) @15mA | Acceptable Range (Ω) @5–20mA |
|-----------|--------------------|-------------------------------|------------------------------|
| Red | 2.0 | 200 | 150 – 600 |
| Green | 2.2 | 180 | 140 – 560 |
| Yellow | 2.2 | 180 | 140 – 560 |
| Blue | 3.2 | 120 | 90 – 360 |
| White | 3.2 | 120 | 90 – 360 |> ℹ️ Use the **next higher standard resistor** if the calculated value is not available (e.g., use 200Ω instead of 197Ω).
### Online Simulation
Simulate and test the circuit online using Tinkercad.
### ⚠️ USB Current Limits
- **USB 2.0 port** provides up to **500mA**
- This circuit typically draws **15–20mA**
- You can safely power one LED with plenty of margin### ✳️ Parallel LEDs
> ℹ️ You can connect multiple LEDs in parallel, but each **must have its own resistor** to ensure proper current limiting.
> ⚠️ Never connect LEDs directly in parallel without individual resistors, and keep total current below USB limits (<**500 mA**).---
## 📷 Prototype Snapshot
*Prototype Snapshot 1*
*Prototype Snapshot 2*
---
## 🤝 Contributing
Feel free to fork the project and open pull requests. Bug reports, enhancements, and photos of your builds are welcome!
## References
1. [Circuits on Tinkercad](https://www.tinkercad.com/circuits)