Code Monkey home page Code Monkey logo

mylamp's Introduction

MyLamp

Open-Source an AUKEY-LT-T6 RGB desktop lamp to make it better!

Aukey-LT-T6 Aukey-LT-T6-colors

I always thougt that this lamp is very nice (hardware wise) but lacking many features and with a crippled UX. So I took-on the challenge and here are the results!

A long TODO list yet (mostly software), but -at least- an already usable hardware base to keep going.

This is Open-Source/Creative Commons: enjoy!!

Reverse-Engineering

This is the work-in-progress found-out pinout of the board:

PCB-Top PCB-Bottom

Two main ICs:

  • An unknown (sanded) 5V microcontroller
  • An unknown (sanded) 5V touch sensor IC

Other ICs:

  • 78L05 - Voltage regulator (7-12V --> 5V)
  • PT4115 - High power LED dimmer (White LED driver)
  • SE2300 - N-Channel MOSFET (Red, Green & Blue LEDs driver)

Mysteries and TODO list:

I've done a fair amount of (re)search trying to find out what the unknown ICs are, and got some guesses (none definitive), but there are things that are beyond my knowledge/skills, like the TP2 touch wire (it's soldered to a copper disc sitting on the plastic of the bottom of the lamp ๐Ÿคทโ€โ™‚๏ธ) that goes directly into the microcontroller ๐Ÿ˜ณ๐Ÿค”, or what are the two additional lines that go from the touch IC to the micrcontroller, etc. If you know/find-out any of this, please contact me and let me know!!

BEWARE!!

  • PCB traces tear and snap-off very easily after desoldering the microcontroller (what you can already see in the assembly picture ๐Ÿคฆโ€โ™‚๏ธ).
  • Poking around while the transformer was still plugged in, I also managed to break (burn?) quite easily two of the SE2300 MOSFET, that I was (somehow) able to repair swapping them with scavenged equivalent ones from old note-book battery-packs circuitry.

New hardware

I used an ESP-12 (ESP8266 module) to substitute (and upgrade) the original microcontroller functionality:

ESP-12-schematic assembly

I will include here a complete Fritzing schematic in the future and some working details.

User manual

This new lamp does several new things passing through different stages:

  1. START: it flashes in red when you plug it into an AC outlet, indicating it's starting and entering the BOOT stage.
  2. BOOT: during boot-up it tries to connect to an OTA WiFi (lampsetup/lampsetup) that will allow you to upgrade the firmware. If it succeeds, the lamp flashes in orange and stays in this OTA update state until powered-off.
  3. CONNECTION: if the lamp has already been configured, it will connect to the saved WiFi network and proceed to the FINAL stage. If not, it will enter the SETUP stage.
  4. SETUP: if it's the first time you turn the lamp on (or the saved WiFi connection is not valid/available), it creates an open WiFi access point named WiFiLampSetup to which you can connect to (with your smartphone, tablet or computer) to setup your WiFi connection. This stage only lasts 120 seconds (two full minutes!): if nothing is done or you cancel the configuration, a new password protected WiFi access point will be created: MyLamp/12345678.
  5. FINAL: once the lamp is done intializing, it will flash in green indicating it's ready to be used.

NORMAL operation (FINAL stage)

  • Touch the base to turn on/off the lamp (to the last configured color).
  • Long-touch to turn on the high-power white-only light.
  • Go to http://mylamp.local to access the control App (*).

(*) The lamp must be connected to the same network as the device you want to use to access this portal. If the lamp wasn't able to connect to your network, you should connect to the lamp's WiFi network itself (MyLamp/12345678).

control-app

Code

All the development was done -for simplicity- using the Arduino IDE with the ESP8266 stack. You can find the ESP-12 (ESP8266 module) code in the code folder: all the gory details are there ๐Ÿ˜…๐Ÿ˜ฌ

This software uses the WiFiManager libray to configure the WiFi connection on-the-fly. This software uses the SPIFFs local storage of your ESP-12: use this plugin to upload the contents.

A lot can (should?) be done software wise: it's only a barely-minimun working base that -basically- allows you to select and save a color in a very efficient and direct way (it works in real-time!). It's necessary also some tunning, as the LEDs drivers don't work very well with all the PWM range (they are full bright above 50% already).

Acknowledgement

To Almu 20220601

LICENSE

This work is licensed under the GNU General Public License v3.0. All media and data files that are not source code are licensed under the Creative Commons Attribution 4.0 BY-SA license.

More information about licenses in Opensource licenses and Creative Commons licenses.

mylamp's People

Contributors

mgesteiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.