# USB LED Lamp Circuit ## Description Here is a simple USB powered lamp that can be used to light your desktop during power failures. The circuit operates from the 5 Volt available from the USB port. The 5V from the USB port is passed through current limiting resistor R2 and transistor Q1. The base of transistor Q1 is grounded via R1 which provides a constant bias voltage for Q1 together with D2. The diode D1 prevents the reverse flow of current from battery. C1 is used as a noise filter. Two white LED’s are used here for the lamp, you can also use a 2 V torch bulb instead of LED’s. LED D3 indicates connection with USB port. ## Project Details - **Owner:** tinoaja07 - **Created:** 9/5/2024 - **Last Updated:** 9/6/2024 - **Visibility:** Public ## Key Components ### U1 — [ESP32-WROOM-32D](https://www.flux.ai/vasyl/esp32-wroom-32d~7py.md) - Manufacturer Name: Espressif Systems - Manufacturer Part Number: ESP32-WROOM-32D - Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Microcontroller **Pins:** - 3.3V [pin 2] - AGND [pin 39] - CLK [pin 20] - CMD [pin 19] - EN [pin 3] - GND [pin 38] - GND [pin 15] - GND [pin 1] - IO0 [pin 25] - IO12 [pin 14] - IO13 [pin 16] - IO14 [pin 13] - IO15 [pin 23] - IO16 [pin 27] - IO17 [pin 28] - IO18 [pin 30] - IO19 [pin 31] - IO2 [pin 24] - IO21 [pin 33] - IO22 [pin 36] - IO23 [pin 37] - IO25 [pin 10] - IO26 [pin 11] - IO27 [pin 12] - IO32 [pin 8] - IO33 [pin 9] - IO34 [pin 6] - IO35 [pin 7] - IO4 [pin 26] - IO5 [pin 29] - NC [pin 32] - RXD0 [pin 34] - SD0 [pin 21] - SD1 [pin 22] - SD2 [pin 17] - SD3 [pin 18] - TXD0 [pin 35] - VN [pin 5] - VP [pin 4] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/tinoaja07/usb-led-lamp-circuit~a2](https://www.flux.ai/tinoaja07/usb-led-lamp-circuit~a2).* --- *Generated from [https://www.flux.ai/tinoaja07/usb-led-lamp-circuit~a2](https://www.flux.ai/tinoaja07/usb-led-lamp-circuit~a2)*