A Li-Fi trans-receiver system based on STM32F4 Nucleo board. The system can control AC/DC power and finds application in smart homes.