Awesome
Hacking IKEA TRÅDFRI
- Introduction
- TRÅDFRI modules
- Firmware analysis
- Development
- Other hacks
- Working safely
- Sources
- License
- Disclaimer
Introduction
The IKEA TRÅDFRI family of products provide you with several home automation solutions that interconnect using ZigBee Light Link. While the line-up initially only included lighting products, it includes power switches and wireless window blinds as well.
Many of the TRÅDFRI are quite simple. For instance, if we take a simple light bulb, it contains:
- Power supply
- LED driver
- IKEA TRÅDFRI module
The IKEA TRÅDFRI module is used in many of their products, and is actually a small piece of circuit board with a few GPIO pins exposed. These pins are then used to control the LED driver.
You can take out the board, and hook it up to your own lighting solutions. Or, you can flash it with your own firmware, for other purposes.
To find relevant products, I have compiled a list of IKEA TRÅDFRI products in PRODUCTS.md. A teardown of has also been provided for some products.
TRÅDFRI modules
So far, a few variations of the TRÅDFRI modules have been identified. They are all using microcontrollers manufactured by Silicon Labs. The modules that have been identified are:
- ICC-1
- ICC-A-1
- MGM210L
<img src="modules/ICC-1/images/front.jpg" alt="Front of IKEA TRÅDFRI module (ICC-1)" width="256"> <img src="modules/ICC-A-1/images/front.jpg" alt="Front of IKEA TRÅDFRI module (ICC-A-1)" width="256"> <img src="modules/MGM210L/images/front.jpg" alt="Front of IKEA TRÅDFRI module (MGM210L)" width="256">
Some other products, such as the line-up of remote controls, have a dedicated circuit board that integrate a microcontroller directly (i.e. no separate module board).
More details and pictures on these modules can be found in MODULES.md.
Firmware analysis
An analysis of some firmware versions encountered can be found in FIRMWARE.md.
Development
The ICC-1 and ICC-A-1 have a regular Cortex M4 and the MGM210L has a Cortex M33. These architectures are very common, and you can easily flash it with your a custom firmware. I've added some firmwares in the firmwares folder.
As a starting point for your own firmwar, you could take a look at this pull request for RIOT-OS. As a proof of concept, check out this YouTube video I made. In that video, I show how I control the LED connected via a serial console.
To get access to development tools for Silicon Labs, you can take a look at Simplicity Studio.
Other hacks
Some people have came up with alternative uses for the TRÅDFRI modules. Here are a few:
EZSP Zigbee coordinator
It is possible to load the Silicon Labs EmberZNet Zigbee coordinator firmware on an ICC-1 or ICC-A-1. This allows you to use the module to set-up your own ZigBee network.
MattWestb has provided a guide and firmware here.
ZigBee router
Several users have modified the TRÅDFRI routers to improve the performance, by adding an external antenna.
This applies to the ICC-A-1 modules only, but it should be very interesting if a the TRÅDFRI routers will use the newer MGM210L modules, because they offer a solder pad for an external antenna.
FLOALT brightness hack
zw has patched the firmware of his FLOALT LED panel to have an improved range of brightness levels. A guide to perform the firmware patch has been contributed here.
Shortcut Button "no double press" hack
Simon has patched the firmware of the E1812 shortcut button to disable the double press feature, getting rid of the 400ms delay on single presses.
DOOM
A version of DOOM was port to the IKEA TRÅDFRI MGM210L modules, including a custom contrller. The project is documented here and the source code can be found here.
Sources
I have gathered some information from the following sources:
- IKEA Trådfri hacking
- Trådfri: ESP8266-Lampen-Gateway
- Trådfri Zigbee Light Link module
- Trådfri Wall switch
License
See the LICENSE.md file (CC-BY-4.0).
Disclaimer
This page and its content is not affiliated with IKEA of Sweden AB.
The purpose of this project is to learn and improve using reverse engineering techniques. Use this information on your own risk.