{"id":24694418,"url":"https://github.com/schnebeck/attiny85-whitelight-controller","last_synced_at":"2026-04-14T00:31:23.080Z","repository":{"id":270581936,"uuid":"910814129","full_name":"schnebeck/ATtiny85-WhiteLight-Controller","owner":"schnebeck","description":"Lidl™ LIVARNO™ LED Light Mod - Saving, Fading, Shining","archived":false,"fork":false,"pushed_at":"2025-01-27T20:13:31.000Z","size":4551,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T03:14:37.195Z","etag":null,"topics":["arduino","attiny85","control","ir","lidl","livarno","mod","modification","platformio","pwm","remote","save","stettings","store","whitelight"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schnebeck.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-01T14:10:22.000Z","updated_at":"2025-01-31T07:53:09.000Z","dependencies_parsed_at":"2025-01-01T15:26:20.278Z","dependency_job_id":"a0d66d99-0514-4f7b-a20c-368696f1fcbf","html_url":"https://github.com/schnebeck/ATtiny85-WhiteLight-Controller","commit_stats":null,"previous_names":["schnebeck/attiny85-whitelight-controller"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnebeck%2FATtiny85-WhiteLight-Controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnebeck%2FATtiny85-WhiteLight-Controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnebeck%2FATtiny85-WhiteLight-Controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnebeck%2FATtiny85-WhiteLight-Controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schnebeck","download_url":"https://codeload.github.com/schnebeck/ATtiny85-WhiteLight-Controller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898458,"owners_count":20528341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","attiny85","control","ir","lidl","livarno","mod","modification","platformio","pwm","remote","save","stettings","store","whitelight"],"created_at":"2025-01-26T23:58:49.346Z","updated_at":"2026-04-14T00:31:23.042Z","avatar_url":"https://github.com/schnebeck.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LED Lighting Controller Modification\n\n\u003e ⚠️ WARNING - MAINS POWER SAFETY ⚠️\n\u003e ---------------------------------------\n\u003e Working with mains power is extremely dangerous and can result in serious injury, electric shock, or death.\n\u003e - **Disconnect all connections to mains power** before starting any work on this project.\n\u003e - This PCB does **not** provide galvanic isolation. Be aware that the low-voltage components connected to the circuit may be at mains potential.\n\u003e - Only proceed if you have adequate knowledge of electrical safety and experience working with mains-voltage systems.\n\u003e - Consider consulting a qualified electrician if in doubt.\n\u003e   \n\u003e **Proceed at your own risk.**\n\nThis project aims to enhance the functionality of a lighting unit originally produced by Lidl™'s LIVARNO™ brand (Type 0452602). The original unit uses an unbranded 8-pin microcontroller for control, which does not retain its settings when mains power is switched off. This project replaces the original processor with an ATtiny™85 microcontroller to add persistent storage of settings and maintain compatibility with the original IR remote control.\n![unmodified controller on pcb](doc/original.jpg)\n\n## Features\n\n- **IR Remote Control**: Full support for controlling the lighting unit via an NEC™ protocol-compatible IR remote control.\n- **Independent Control**: Adjust cold white and warm white LED strings independently.\n- **Brightness and Color Adjustment**:\n  - Smooth fading between color temperatures.\n  - Adjustable brightness levels.\n- **Persistent Settings**:\n  - Store color and brightness settings in EEPROM.\n  - Reload saved settings after power cycling.\n- **Night Mode**: Activate a low-intensity nightlight setting.\n- **Preset Support**: Quickly switch between predefined color and brightness presets.\n- **Timer**: Enable oder disable a 30min lights-off timer.\n\n## Hardware Requirements\n\n- **Microcontroller**: ATtiny85 running at 8 MHz with built-in EEPROM for setting storage.\n- **LED Channels**:\n  - Cold white LED string connected to PB1 (PWM output).\n  - Warm white LED string connected to PB4 (PWM output).\n- **Timer**:\n  - using WDT interrupt for 30 min timer  \n- **IR Receiver**:\n  - NEC-compatible IR receiver connected to PB2.\n\n## Pin Configuration\n\n| Pin | Function | Usage               |\n|-----|----------|---------------------|\n|  1  |   PB5    |                     |\n|  2  |   PB3    |                     |\n|  3  |   OC1B   | Warm white LED PWM  |\n|  4  |   GND    | 0V                  |\n|  5  |   PB0    |                     |\n|  6  |   OC1A   | Cold white LED PWM  |\n|  7  |   PB2    | IR receiver input   |\n|  8  |   Vcc    | +5V                 |\n\n## Key Functionality\n\n- **IR Commands**:\n  - Power toggle (on/off).\n  - Adjust brightness (increase/decrease).\n  - Change color temperature (colder/warmer white).\n  - Activate nightlight mode.\n  - Store and recall settings.\n  - Quickly set brightness levels (10%, 50%, 100%).\n  - Activate/deactivate 30 min lights-off timer\n\n- **Fading**:\n  - Smooth transitions between brightness levels and color temperatures.\n\n## Development Notes\n\n- **Microcontroller Programming**:\n  - The ATtiny85 is programmed using an ISP programmer.\n- **Development Board**:\n  - The project was developed using a Digispark ATtiny85 board for initial testing.\n- **PWM Configuration**:\n  - Timer1 is used for generating PWM signals with 8-bit resolution.\n- **IR remote control**\n  - Timer0 is used for analyzing NEC remote control codes.\n- **WDT interrupt**\n  - WDT generates aprox. every second an interrupt used for the timer funcion.  \n\n## How It Works\n\n1. **Startup**:\n   - The program initializes the ATtiny85, loads stored settings from EEPROM, and fades in the LED strings to the last saved state.\n\n2. **IR Command Processing**:\n   - The IR receiver decodes commands from the remote control, which are processed to adjust brightness, color temperature, or mode.\n\n3. **Persistent Storage**:\n   - Settings are stored in EEPROM to ensure they are retained after power loss.\n\n4. **PWM Control**:\n   - Independent PWM signals are generated for the cold and warm white LED channels, enabling precise brightness control.\n\n## Installation\n\n\n1. **Programming**:\n   - Flash the provided program onto the ATtiny85 using an ISP programmer and avrdude.\n\n2. **Hardware Setup**:\n   - Replace the original microcontroller with the ATtiny85.\n   - It is recommended to mount the ATtiny85 upside down. This orientation aligns Pin 3 and Pin 4 with the existing PCB traces for better compatibility.\n   - Connect Vcc, the LED strings and IR receiver input to the appropriate pins as described in the **Pin Configuration** section.\n\n3. **Testing**:\n   - Use the original IR remote control to verify functionality.\n\n![modified controller on pcb](doc/modified.jpg)\n\n## Acknowledgments\n\nThis project enhances the LIVARNO™ LED lighting unit by adding modern functionality while maintaining compatibility with its original design. The ATtiny™85 microcontroller provides an efficient and reliable solution for embedded systems with limited resources. This ReadMe.md-file creation was assisted by ChatGPT.\n\n## License\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnebeck%2Fattiny85-whitelight-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschnebeck%2Fattiny85-whitelight-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnebeck%2Fattiny85-whitelight-controller/lists"}