Microchip ATtiny1616
Rechargeable Task Desk Lamp
개요
A compact, USB-rechargeable desk reading lamp featuring a simple analog knob for direct lighting adjustment, built using low-cost off-the-shelf components.
시스템 아키텍처
- POWER_MGM → MCUPowerSupplies regulated operating voltage to the microcontroller
- USER_INPUT → MCUGPIOQuadrature phase signals and push button state sent to MCU GPIO/interrupt pins
- MCU → LED_DRIVERPWMPWM duty cycle signal to control LED brightness via MOSFET gate
- POWER_MGM → LED_DRIVERPowerHigh current battery power rail routed through MOSFET to the LED array
- LED_DRIVER → LED_LIGHTPowerSwitched power to drive the desk lamp LED array
자재 명세서(BOM)
| 부품 번호 | 유형 | 부품 | 제조사 | 패키지 | 수량 | 데이터시트 | 매칭 |
|---|---|---|---|---|---|---|---|
| MCP73831T-2ACI_OT | POWER | Microchip MCP73831 Linear Li-Ion Battery Charger & 18650 Cell Manages USB-C power input to safely charge a 1S Li-Ion battery and provides system power rail | Microchip Technology | SOT-23-5 | 1 | 매칭됨 | |
검토된 대체품 13개 보기projects.detail.aiVerified | |||||||
| ATTINY1616-MFR | MCU | Microchip ATtiny1616 Reads user input from the knob and outputs PWM signals to control LED dimming | Microchip Technology / Atmel | QFN-20 | 1 | 매칭됨 | |
검토된 대체품 10개 보기projects.detail.aiVerified | |||||||
| EC11E15204A3 | SENSOR | ALPS EC11 Rotary Encoder with Push-Button Provides user interface for step-less dimming adjustment and switch control | ALPS ALPINE CO., LTD. | Tray | 1 | 매칭됨 | |
검토된 대체품 11개 보기projects.detail.aiVerified | |||||||
| AO3400 | ACTUATOR | N-Channel Power MOSFET (e.g., AO3400) High-side or low-side switch driven by MCU PWM to dim the LED reading light | Luguang Electronic Technology Co., Ltd. | SOT-23 | 1 | 매칭됨 | |
검토된 대체품 8개 보기projects.detail.aiVerified | |||||||
| BXEN-30E-11M-3A-00-0-0 | ACTUATOR | High-CRI SMD LED Array for Desk Reading Provides task and desk reading illumination | Bridgelux | 1113 (2835 Metric) | 1 | 매칭됨 | |
검토된 대체품 14개 보기projects.detail.aiVerified | |||||||
조립 가이드
Procurement & Preparation
- Source and inspect all required electronic components including the MCP73831T-2ACI_OT battery charger IC, ATTINY1616-MFR microcontroller, EC11E15204A3 rotary encoder, AO3400 N-channel MOSFET, and BXEN-30E-11M-3A-00-0-0 high-CRI LED array, alongside a standard 18650 Li-Ion cell and a USB-C receptacle board.
- Prepare the workstation by organizing ESD-safe mats, configuring the soldering iron temperature to 350°C, and preparing lead-free solder wire with flux.
Hardware Assembly & Wiring
- Solder the Microchip MCP73831 charging IC, support capacitors, and the USB-C power input circuit onto the designated power management section of the main PCB, connecting VBAT, GND, and the regulated 3.3V power rails.
- Mount and solder the Microchip ATtiny1616 MCU and the ALPS EC11 rotary encoder onto the PCB, establishing the GPIO connections for ENC_A, ENC_B, ENC_SW, and system GND.
- Install the AO3400 N-Channel Power MOSFET acting as the LED driver switch, wiring its gate to the MCU's PWM output signal, its drain to the LED array cathode, and its source to system GND.
- Secure the 18650 Li-Ion battery holder to the chassis, connect its positive terminal to the MCP73831 output and negative to GND, and assemble the final mechanical housing around the lamp assembly.
Firmware Setup
- Connect an UPDI programmer (such as MPLAB Snap or a custom USB-UPDI adapter) to the ATtiny1616 programming pads on the assembled PCB.
- Compile and flash the firmware onto the ATtiny1616 using Microchip Studio or Arduino IDE, configuring the internal timer/counter peripherals to generate PWM signals based on quadrature decoding of the EC11 rotary encoder inputs.
Testing & Calibration
- Connect a USB-C power source to the lamp and verify that the MCP73831 properly charges the 18650 battery, monitoring the charge status indicator LED.
- Test the analog knob interface by rotating the EC11 encoder clockwise and counter-clockwise to verify smooth step-less dimming control, and press the push-button switch to test on/off toggle functionality.
문서
desk reading lamp
A compact, USB-rechargeable desk reading lamp featuring a simple analog knob for direct lighting adjustment, built using low-cost off-the-shelf components.
Design Overview
| Item | Details |
|---|---|
| Product Type | desk reading lamp |
| Key Functions | adjustable lighting via knob, USB rechargeable internal battery, task and desk reading illumination |
| Power Source | Li-Ion Battery |
| Connectivity | |
| Size | compact desk lamp with small footprint |
| Environment | indoor |
| Difficulty | Intermediate |
| Est. Time | 3-4 hours |
System Architecture
Power Topology: USB-C input (5V) powers the Microchip MCP73831 linear charging IC to charge the internal 1S 3.7V Li-Ion battery (18650). A low-dropout regulator (LDO) steps down the battery/USB voltage to 3.3V for the ATtiny1616 MCU and rotary encoder, while the LED array and MOSFET driver operate directly off the raw 3.7V battery/charging rail for optimal efficiency.
Module List
| Module ID | Type | Name | Function | Voltage |
|---|---|---|---|---|
| POWER_MGM | POWER | Microchip MCP73831 Linear Li-Ion Battery Charger & 18650 Cell | Manages USB-C power input to safely charge a 1S Li-Ion battery and provides system power rail | 3.7V |
| MCU | MCU | Microchip ATtiny1616 | Reads user input from the knob and outputs PWM signals to control LED dimming | 3.3V |
| USER_INPUT | SENSOR | ALPS EC11 Rotary Encoder with Push-Button | Provides user interface for step-less dimming adjustment and switch control | 3.3V |
| LED_DRIVER | ACTUATOR | N-Channel Power MOSFET (e.g., AO3400) | High-side or low-side switch driven by MCU PWM to dim the LED reading light | 3.7V |
| LED_LIGHT | ACTUATOR | High-CRI SMD LED Array for Desk Reading | Provides task and desk reading illumination | 3.7V |
Key Components
5/5 modules matched to real parts. See the BOM tab for the full component table.
Microchip MCP73831 Linear Li-Ion Battery Charger & 18650 Cell (MCP73831T-2ACI_OT)
MCP73831T-2ACI_OT is an exact match for the searched part number MCP73831T-2ACI/OT and corresponds directly to the MCP73
Microchip ATtiny1616 (ATTINY1616-MFR)
The candidate [ATTINY1616-MFR] is an exact match for the searched part number ATTINY1616-MFR and belongs to the correct
Build Summary
- Difficulty: Intermediate
- Estimated time: 3-4 hours
- Tools required: Soldering Iron, Solder Wire, Flux Pen, Digital Multimeter, UPDI Programmer, Wire Stripper
See the Build tab for the full step-by-step assembly guide.
Generated by YuanQi AI Design System · Query: I want to build a lamp that has a knob to adjust the lighting