Updated Xiaomi Mi Desk Lamp (markdown)

Michael Ingraham 2019-09-20 11:27:18 -04:00
parent a7f3d535e8
commit c1adf9cacb
1 changed files with 5 additions and 5 deletions

@ -13,7 +13,7 @@ At the bottom of the lamp stand there is also a 'Reset' button, which can be pre
## Configuration
Tasmota supports it directly as `Module "Mi Desk Lamp"`. Per default it's deactivated in the `my_user_config.h` you need to uncomment `#define ROTARY_V1` for it to appear as a module option in the UI.
Tasmota supports it directly as `Module "Mi Desk Lamp"`. This module is deactivated by default. You must add `#define ROTARY_V1` in your `user_config_override.h` and [compile](Flashing#flashing-and-compiling-from-source) the firmware for this module to be available as a selection option.
To configure it as `Generic`, here is the GPIO assignment:
- GPIO02: Button (`GPIO_KEY1`)
@ -98,7 +98,7 @@ As there is plenty of free space in the lamp stand, I left the wires long enough
The rest of the serial flashing process is [as usual](https://github.com/arendst/Sonoff-Tasmota/wiki/Hardware-Preparation), but if you want to make a backup of the original firmware, keep in mind that the flash size is **2 MBs**.
If you are re-flashing the original firmware, the flash size must be explicitely set to '2MB-c1', **the auto-detected '2MB' doesn't work**, so: `esptool.py write_flash --flash_size 2MB-c1 0x00000 xiaomi_desk_lamp.orig.bin`
If you are re-flashing the original firmware, the flash size must be explicitly set to '2MB-c1', **the auto-detected '2MB' doesn't work**, so: `esptool.py write_flash --flash_size 2MB-c1 0x00000 xiaomi_desk_lamp.orig.bin`
## Serial logging
@ -143,11 +143,11 @@ GPIO15 is and must be pulled up for boot selection, so its usability is somewhat
On the other hand, if you already soldered wires to VCC, GND and GPIO0 for serial
flashing, they are perfect for a DHT11 or DHT22 temperature+humidity sensor!
As the lamp has external power supply, and the leds are in the upper part of the lamp,
As the lamp has external power supply, and the LEDs are in the upper part of the lamp,
the temperature of the base is the same as of the ambient, and by its nature the lamp
is situated on your desk, so it's a perfect place for temp+humidity measurements.
If you want to place the sensor inside the lamp base, then you may need to remove some
material from one of the weight panels, and if you choose to place it on the outside
(eg. near the base), then a convenient and relatively hidden path for the 3 wires is
above the power jack, just enlarge the hole by 2 mm-s with a file.
(e.g., near the base), then a convenient and relatively hidden path for the 3 wires is
above the power jack, just enlarge the hole by 2 mm-s with a file.