# mini flashlight attiny ## Description Flashlight controlled by attiny85. Still needs power switch/brightness control ## Project Details - **Owner:** tyler-s - **Created:** 5/30/2023 - **Last Updated:** 8/7/2023 - **Visibility:** Public ## Key Components ### D1 — [1W LED through hole](https://www.flux.ai/tyler-s/1w-led-through-hole~vu.md) - Purchase Url: https://www.amazon.com/gp/product/B087CDBWQ2/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 - Part Type: LED **Pins:** - A [pin 1] - H [pin 3] - K [pin 2] ### D2 — [1W LED through hole](https://www.flux.ai/tyler-s/1w-led-through-hole~vu.md) - Part Type: LED - Purchase Url: https://www.amazon.com/gp/product/B087CDBWQ2/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 **Pins:** - A [pin 1] - H [pin 3] - K [pin 2] ### Q1 — [BC817-40](https://www.flux.ai/jharwinbarrozo/bc817-40~09.md) - Manufacturer Part Number: BC817-40 - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811061725_ST-Semtech-BC817-40_C85078.pdf - Purchase Url: https://www.digikey.com/en/products/detail/micro-commercial-co/BC817-40-TP/1959413 - Manufacturer Name: ST SEMTECH - Part Type: Transistor **Pins:** - B - C - E ### SW1 — [CS1213AGF260 SMD Tactile Switch](https://www.flux.ai/tyler-s/cs1213agf260-smd-tactile-switch~ft.md) - Purchase Url: https://www.digikey.com/en/products/detail/cit-relay-and-switch/CS1213AGF260/16607763 - Part Type: Switch - Manufacturer Part Number: CS1213AGF260 - Manufacturer Name: CIT Relay and Switch - Datasheet URL: https://www.citrelay.com/Catalog%20Pages/SwitchCatalog/CS1213.pdf **Pins:** - P1 - P2 ### U1 — [ATTINY85-20SU](https://www.flux.ai/adrian95/attiny85-20su~t3s.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Microcontroller - Manufacturer Name: Microchip - Manufacturer Part Number: ATTINY85-20SU - Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2586-AVR-8-bit-Microcontroller-ATtiny25-ATtiny45-ATtiny85_Datasheet-Summary.pdf **Pins:** - ~RESET~/PB5 [pin 1] - AREF/PB0 [pin 5] - GND [pin 4] - PB1 [pin 6] - PB2 [pin 7] - VCC [pin 8] - XTAL1/PB3 [pin 2] - XTAL2/PB4 [pin 3] ### U2 — [XC6802A42XMR-G](https://www.flux.ai/vasy_skral/xc6802a42xmr-g~w9.md) - Manufacturer Name: Torex Semicon - Part Type: Integrated Circuit - Datasheet URL: https://datasheet.lcsc.com/lcsc/1810010011_Torex-Semicon-XC6802A42XMR-G_C160463.pdf - Manufacturer Part Number: XC6802A42XMR-G **Pins:** - ~CHG [pin 1] - BAT [pin 3] - ISEN [pin 5] - VIN [pin 4] - VSS [pin 2] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/tyler-s/mini-flashlight-attiny~7h](https://www.flux.ai/tyler-s/mini-flashlight-attiny~7h).* --- *Generated from [https://www.flux.ai/tyler-s/mini-flashlight-attiny~7h](https://www.flux.ai/tyler-s/mini-flashlight-attiny~7h)*