Heavily inspired by #LIR2450 USB Charger and this video: