Have been looking for a nice small case for some customized IoT stuff (mains powered) and just today, I found some funny gadget at a local budget store. It's an automatic nightlight with two USB charging ports.

Gadget.png (248.31 KiB) Viewed 2264 times

I just guessed that there might be some empty space left and took the risk (5 euro) to dismantle the device and check.
Got to find a suitable screwdriver first because they have used some really awkward types in here. Did not match exactly but managed to get them out (and replace them later).

Time to customize this gadget because it has enough empty space to stuff in a Wifi module.

USB_Wifi_Project.png (1.62 MiB) Viewed 2264 times

1 - This is how it looks to start with. Enough empty space for an ESP-01 or Wemos D1 mini
2 - Drilled a hole for 5V power cables (might not even be needed as there seems to be some space left between the LED board
3 - Solder power cables to 5V at the safe low voltage side
4 - Used the glue gun to avoid loose cable ends
5 - Flexible plastic protractor that can be easily cut with scissors
6 - Create some protective pieces to safeguard ESP module from high voltage board
7 - Replaced the original screws (funny triangular type) with standard philips head types
8 - Stuffed in a Wemos D1 Mini ESP8266 board and the protection 'shields'

Now just let it run for a while, connected to mains to see how this goes.

Next step could be mounting an IR led and put it in the living room wall socket to remote control my TV and other devices.

Or maybe figure out the schematics on the LED driving control and migrate it to the ESP module to have a Wifi controlled nightlight.