Ivan Banha
banner
banha.bsky.social
Ivan Banha
@banha.bsky.social
Software Engineer. I work with TypeScript, React, Node.js stack. Learn Golang and tinker with electronic and microcontrollers when have free time.

Also, I like nature, 🗻 mountains and picking mushrooms in a forest.
Some time ago, I decided to buy and experiment with a Time-of-Flight (ToF) ranging sensor. I ordered it on AliExpress and ... received a screw instead of the sensor. 😅 Never buy anything from the "HH HangHeng Electronics Store" store.
#scam #aliexpress
January 21, 2025 at 7:00 AM
And the result 😄
November 15, 2024 at 4:33 PM
To flash the firmware, you need:
1. A soldering iron.
2. A laptop with #Windows.
3. USB-TTL converter based on #CH340G. Others may not work.
4. An app for flashing called ltchiptool.
5. Installed HAOS with the possibility to install add-ons.
6. Oscilloscope (optional) - just to see cool signals 😄.
November 15, 2024 at 4:33 PM
Now, some info about the module itself. It has 15 pins. The pins TP1 and TP2 are used for UART, TP3 and TP4 are used to power the module.

TP1: TX
TP2: RX
TP3: GND
TP4: +3.3V

TP12 - PWM. This pin controls current flow to the LED. It's named as PA14 in the config.
November 15, 2024 at 4:33 PM
So I decided to figure out if there is any alternative firmware which allows connecting the device to my own Home Assistant local server.

To achieve this, I had to disassemble the bulb and check what kind of microcontroller was used. Fortunately, I was lucky enough to find #Realtek #RTL8710BX
November 15, 2024 at 4:33 PM
I've always been interested in #IoT, but never had enough time to look into the topic. And now the project I've been working on for more than two years is completed, which means I have some spare time. So I decided to dive into the IoT world and experiment with Smart Home and a bulb 💡. 😄
November 15, 2024 at 4:33 PM
Also, I’ve got my new multimeter probes. On the left — old probes, on the right — new probes.
November 15, 2024 at 1:29 PM
Look what I’ve got 😄
November 15, 2024 at 1:18 PM
І мало не забув. Результат роботи 😜.
November 14, 2024 at 7:23 PM
Перед прошивкою треба ОБОВʼЯЗКОВО зробити бекап заводської прошивки на випадок якщо щось піде не так.

Прошивка збирається через #ESPHome плагін в Home Assistant OS (HAOS).

Процес прошивки описаний тут: docs.libretiny.eu/docs/flashin...
November 14, 2024 at 7:17 PM
На модулі є 15 контактів для підключення. Для прошивки використовуються контакти TP1, TP2, TP3, TP4.

TP1: UART TX
TP2: UART RX
TP3: Power -
TP4: Power + 3.3V
TP12: PWM - керує роботою LED.

Підключившись до них, можна прошити мікроконтролер та читати логи.
November 14, 2024 at 7:17 PM
Для цього зʼясувати що ж там за мікроконтролер. Розібравши лампу, зʼясувалось, що використовується мікроконтролер #Realtek #RTL8710BX. Після гугління знайшов для нього альтернативну прошивку від проєкту #LibreTiny. Лишилось тільки розібратися як прошити. Більше тут: docs.libretiny.eu/docs/platfor...
November 14, 2024 at 7:17 PM
Кілька років тому купив дві дешеві розумні лампи Tapo. Ними можна керувати зі смартфона під'єднавши до WiFi. Проте є один суттєвий недолік: лампою не можливо керувати якщо нема доступу до інтернету. Хоча лампа і смартфон все ще підключені до однієї мережі. Це максимально не зручно!
November 14, 2024 at 7:17 PM
Just signed a letter to Europa. 🚀🚀🚀 👨‍🚀
December 3, 2023 at 7:52 AM